-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow applications to add a custom/fallback title #500
Comments
Hi, thanks for checking out the Clapper project! 😄
Applications that "know" the title should use taginject element. Just create it from GStreamer element factory, fill its This way both ClapperGtk.TitleLabel and
In future ( A quick code snippet (python3) for reference: taginject = Gst.ElementFactory.make('taginject', None)
taginject.props.tags = "title=(string)\"Big Buck Bunny\""
taginject.props.scope = Gst.TagScope.GLOBAL
video.props.player.props.video_filter = taginject This functionality description is something probably worth adding to the Clapper API documentation 😅 |
Wow, thank you, that works flawlessly! I'm impressed that this can be solves in 4 lines of code (well, it translates to 13 lines in my case, but most of it is boilerplate). I wasn't aware that you could inject GStreamer elements using Clapper.Player:video-filter, especially since forgot that this is considered a “filter” in the GStreamer terminology. |
I'm currently working on adding an integrated video player to Televido using libclapper(-gtk). First of all, thank your for your great work making this possible!
Unfortunately, most of the media that is available via Televido doesn't provide a
title
tag. This means that ClapperGtk.Titlelabel can't be used to show a reasonable title and MPRIS just displays “Unknown Title”.As the video title is known from external data, it would be nice if Clapper.MediaItem:title was writable or if there was a different property to provide a fallback title if the media doesn't contain a
title
tag.The text was updated successfully, but these errors were encountered: