Skip to content
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

Player: Add video module Marquee and Logo #112

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sduponch
Copy link

@sduponch sduponch commented Apr 25, 2024

This Pull Request allow the usage of Marquee and Logo VLC Modules :
https://wiki.videolan.org/Documentation:Modules/logo/
https://wiki.videolan.org/Documentation:Modules/marq/

This sample code bellow display the meta data Title in bottom center of the current video for 10 seconds :

                case vlc.MediaParsedChanged:
                        ...
                        marquee, err := media.Meta(vlc.MediaTitle)
                        ...
                        p.SetVideoMarqueeString(vlc.VideoMarqueeText, marquee)
                        p.SetVideoMarqueeInt(vlc.VideoMarqueePosition, 8)
                        p.SetVideoMarqueeInt(vlc.VideoMarqueeOpacity, 200)
                        p.SetVideoMarqueeInt(vlc.VideoMarqueeTimeout, 10000)
                        p.SetVideoMarqueeInt(vlc.VideoMarqueeColor, 0xffc107)
                        p.SetVideoMarqueeInt(vlc.VideoMaqueeEnable, 1)

player must be playing a video in order to set filter, i don't know how to assert this yet

Best regards,
DUPONCHEEL Sébastien

@sduponch sduponch changed the title Player: Add video module Marquee and Logo setters Player: Add video module Marquee and Logo Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant