GNOME Bugzilla – Bug 751445
playbin: try to auto-load subtitles
Last modified: 2018-11-03 11:38:28 UTC
As a result of the discussion in bug #745292, this patch enables the same functionality but in the playbin itself.
Created attachment 306006 [details] [review] playbin: try to auto-load subtitles If suburi is not set, and the media uri protocol is file, a file with same name as the media file but with subtitle extension is looked. If it is found, it is used as suburi.
Not sure if this shouldn't rather stay an application decision.
(In reply to Sebastian Dröge (slomo) from comment #2) > Not sure if this shouldn't rather stay an application decision. Or perhaps a new GstPlayer API?
(In reply to Philippe Normand from comment #3) > (In reply to Sebastian Dröge (slomo) from comment #2) > > Not sure if this shouldn't rather stay an application decision. > > Or perhaps a new GstPlayer API? I would say that it should either be totally transparent as implemented in this patch or implemented by applications, I do not think extra API should be added for that. Is anyone against that patch? It sounds pretty useful to me.
Playbin unconditionally setting the suburi itself would have side effects, you don't always want to do that, like in WebKit for instance.
Same as Philippe, I don't think this should be done automatically. There should be API for this to opt-in into this behaviour, and it closely relates to loading other external resources. Edward had some plans for that in playbin3, IIRC also API proposals.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org'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.freedesktop.org/gstreamer/gst-plugins-base/issues/197.