How to hide video title when playing it?

  1. Open the Debug Console.

    https://docs.ankiweb.net/#/misc?id=debug-console

  2. Execute the following code to create mpv.conf in %APPDATA%\Anki2 with title= (or border=no).

    import os
    from aqt import mw
    from aqt.sound import mpvManager
    print('Title:', mpvManager.get_property('title'))
    with open(os.path.join(mw.pm.base, 'mpv.conf'), 'a') as f:
        f.write('{}={}\n'.format("title", ""))
    # restart mpv to apply new settings
    mpvManager.shutdown()
    print('Title:', mpvManager.get_property('title'))
    

    https://mpv.io/manual/master/#options-title

    Alternatively, to hide the title bar and make the video window to be borderless.

    import os
    from aqt import mw
    from aqt.sound import mpvManager
    with open(os.path.join(mw.pm.base, 'mpv.conf'), 'a') as f:
        f.write('{}={}\n'.format("border", "no"))
    # restart mpv to apply new settings
    mpvManager.shutdown() 
    print('Border:', mpvManager.get_property('border'))
    

    https://mpv.io/manual/master/#options-border

  3. Close the Debug Console once you see the output (in a few seconds).

4 Likes