After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 591561 - Allow specific YouTube videos to be opened
Allow specific YouTube videos to be opened
Status: RESOLVED OBSOLETE
Product: totem
Classification: Core
Component: YouTube plugin
unspecified
Other All
: Normal enhancement
: ---
Assigned To: General Totem maintainer(s)
General Totem maintainer(s)
: 631660 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-08-12 13:09 UTC by Paul Wise
Modified: 2018-05-24 10:35 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Paul Wise 2009-08-12 13:09:24 UTC
It would be nice if the YouTube plugin could sort by the same options as the YouTube site (Newest, Oldest, View Count, Rating, Relevance).
Comment 1 Philip Withnall 2009-08-12 13:58:46 UTC
I'm not so sure this is necessary. The YouTube plugin isn't meant to be a replacement for going to YouTube in your browser; it's meant to be a simple way to browse for videos. Adding those sorting options will take valuable space away from the rest of the interface, and most of them won't be particularly usable anyway, since (for example), the interface doesn't display upload dates, view counts or ratings.

Is there a better argument for including it than just "it would be nice"? Thanks.
Comment 2 Paul Wise 2009-08-13 03:48:30 UTC
The main use for it is finding the video you are after. Most YouTube stuff is in no way unique even though I generally want a specific video. By switching between sorting options you can sometimes find the video more easily. I guess really this points to lack of an "Open YouTube URL" menu item more than the sorting options.
Comment 3 Philip Withnall 2009-08-20 22:10:37 UTC
A way of opening specific YouTube videos would be better, and has been requested a few times already.
Comment 4 Bastien Nocera 2009-09-03 16:14:51 UTC
If there is a way to get the actual file's URL from the webpage, then we could:
- "create" a new URI scheme (say youtube:)
- epiphany/the browser would pass us youtube://www.youtube.com/path/to/video
- in totem-pl-parser, we could transform this URL into the URI to the FLV file, using libgdata if necessary
- open and play the video

Or we could add the ability for plugins to handle specific URI schemes. In totem-object, we emit a signal with a retval:
gboolean (*handle_uri) (Totem *totem, const char *uri);

If any of the plugins are interested in overriding the loading, they can process the URI, and give us one back.

The second option is cleaner, but would still need to be async'ified.
Comment 5 Paul Wise 2009-09-03 16:17:40 UTC
Some implementations of YouTube id to .flv/.mp4 URL:

http://clive.sourceforge.net/
http://code.google.com/p/cclive/
http://bitbucket.org/rg3/youtube-dl/wiki/Home
Comment 6 Paul Wise 2009-09-03 16:24:06 UTC
I wonder if the URL mapping stuff belongs in the lower layers like GStreamer?
Comment 7 Bastien Nocera 2009-09-03 16:50:25 UTC
(In reply to comment #6)
> I wonder if the URL mapping stuff belongs in the lower layers like GStreamer?

The only thing this would be able to do is send a redirect to Totem with the real video URL. So Totem would indeed start playing the video, but the YouTube plugin wouldn't know anything about it, and you wouldn't see the related videos, etc.
Comment 8 Paul Wise 2009-09-04 03:16:16 UTC
Hmm, if GStreamer did the URL redirection, totem would still know the youtube URL (since it sent it to GStreamer) so it could still pass that to the youtube plugin, right?

I talked to the cclive author about turning it into a shared library. He said he was planning to write a C++ library with a C API, but doesn't have the time to do it at the moment. He said the --emit-csv option in clive and cclive would be useful to video downloader plugins in the meantime and that the epiphany video downloader extension uses it:

http://blauebirke.wordpress.com/
Comment 9 Bastien Nocera 2009-09-04 12:50:59 UTC
(In reply to comment #8)
> Hmm, if GStreamer did the URL redirection, totem would still know the youtube
> URL (since it sent it to GStreamer) so it could still pass that to the youtube
> plugin, right?

Yes, but that probably wouldn't help that much...
Comment 10 Paul Wise 2009-09-17 13:15:15 UTC
Forwarding a mail from the cclive author:

On Thu, 2009-09-17 at 15:36 +0300, Toni Gundogdu <legatvs@gmail.com> wrote:

> I couldn't tell if the totem folks had gone forth with something
> regarding your feature request. I'm in the process of writing a
> library with a C API for querying video links from Youtube and
> similar websites. How well this would suit the totem requirements
> is beyond me, though.
> 
> The initial release should take place by the end of this month,
> although they may want to wait out for 0.2.0.
Comment 11 Paul Wise 2009-10-06 00:17:28 UTC
Forwarding a mail from the cclive author:

The discussed library is now available for scrutiny. It isn't quite a "cclive-in-a-shared-library" but should help the cause nonetheless. cclive is planned to switch to use this library eventually.

Home: http://quvi.googlecode.com/
Repo: http://repo.or.cz/w/quvi.git
Docs: http://quvi.googlecode.com/svn/docs/html/index.html
Comment 12 Philip Withnall 2010-10-08 08:17:32 UTC
*** Bug 631660 has been marked as a duplicate of this bug. ***
Comment 13 antistress 2010-11-17 16:17:52 UTC
FWIW, it seems that DownloadHelper Firefox extension (1) works with YouTube and Dailymotion even if Flash plugin is not installed. Maybe it can be helpful to get the video url from a YouTube page ?

(1) https://addons.mozilla.org/fr/firefox/addon/3006/
Comment 14 antistress 2010-11-17 16:26:17 UTC
Oops(In reply to comment #13)
> FWIW, it seems that DownloadHelper Firefox extension (1) works with YouTube and
> Dailymotion even if Flash plugin is not installed. Maybe it can be helpful to
> get the video url from a YouTube page ?
> 
> (1) https://addons.mozilla.org/fr/firefox/addon/3006/

Caution : i've just noticed this is not free software
Comment 15 Bastien Nocera 2011-02-26 02:31:40 UTC
Totem can open specific videos in a number of websites, when totem-pl-parser is built with libquvi support. If the YouTube plugin was extended, it'd look for videos being opened, and get the information to load up related videos from there.
Comment 16 antistress 2011-06-26 02:09:43 UTC
About the project to create a new URI scheme to pass either the name or the url of the video to totem-pl-parser (passing only the name would be great to me and maybe less complex than having to deal with the url ?) : this seems a must have to me (it would create a lot of opportunities to use Totem for YouTube videos) whereas it also seems to be quite complex/time cosumming.

Isn't it the kind of work that could be proposed for a GSoC ?
Comment 17 GNOME Infrastructure Team 2018-05-24 10:35:20 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/totem/issues/28.