Coder Social home page Coder Social logo

Comments (1)

mrJean1 avatar mrJean1 commented on July 28, 2024

Take a look at the cocoavlc.py example, specifically the method AppVLC._VLClogo on line 568.

Here is a copy of that method. The logostr argument is the file name of the logo image.

    def _VLClogo(self, logostr):
        # add a video logo image, example "... -logo
        p = self.player
        g = vlc.VideoLogoOption  # Enum
        # <https://Wiki.VideoLan.org/Documentation:Modules/logo>
        _g_int = p.video_set_logo_int
        _g_int(g.logo_enable, 1)
        _g_int(g.logo_position, 0)  # FIXME: 0 == vlc.Position.center.value
        _g_int(g.logo_opacity, 128)  # 0-255
        # _g_int(g.logo_delay, 1000)  # millisec
        # _g_int(g.logo_repeat, -1)  # forever
        p.video_set_logo_string(g.logo_file, logostr)

from python-vlc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.