Coder Social home page Coder Social logo

mpv-osc-modern's People

Contributors

maoiscat avatar yutsuten avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mpv-osc-modern's Issues

Chapters not showing

When hovering over a certain chapter, the name of the chapter is not displayed.

image
image

How can I assign the 'DEL' key (or any other) to show OSC?

With the default configuration of mpv, the DEL key toggles between the auto, always-on and always-off states of the OSC.

Is there a way to make the DEL key work with mpv-osc-modern so this behavior is replicated (or just that the OSC can be shown with a key press)? I use this in a HTPC setting with a IR remote, mouse hovering is unfortunately not an option.

I know it works when pausing the video, but sometimes I want to see how much time is left without pausing, just with a click of a button.

Pause button remain grayed out as long as i keep mouse on it

Pause button remain grayed out as long as i keep mouse on it

bug2

When i hit play (|>), it immediately change to pause (||) button. This is the expected behavior.

When i hit pause (||), it does not immediately change to play (|>) button. It grays out the pause button and wait till i remove the mouse from the pause button.

EXPECTED behavior of pause button is, when i hit pause (||), it immediately change to play (|>) button.

I have change line 1212 to if mp.get_property('pause') == 'no' then.

Logo is disproportional due to recent change in libass

Due to a recent change in libass, the mpv logo is out of proportion upon startup. It affected not only this theme but also the default osc. After I reported in #mpv-player/mpv#10710, mpv has fixed the issue in their osc, but this modern theme also needs adjustment. Please refer to the linked issue for more details.

1

script has error in mpv 0.38 and above; shared script property not supported anymore

mpv 0.37 only gave a warning, but mpv 0.38 removed the shared_script_properties property. From the release notes:

--- mpv 0.38.0 ---
...
- remove shared-script-properties (user-data is a replacement)
...

Because of this change, the modernx script now has a lua error Lua error: /etc/mpv/scripts/modernx.lua:2520: attempt to call field 'shared_script_property_set' (a nil value). The OSC doesn't appear anymore, and the script is therefore non-functional.

What's the best way to fix? A simple replacement of shared-script-properties with user-data in the script didn't work for me.

Beautiful OSC only one little tiny thing

Hello, i found your script by coincidence and i loved it
The only thing that i'm missing from it is the "skip_back/forward" to be the usual "skip to next/previous chapter" instead of +5/+60s, because i already have time skip on my mouse wheel, can you show me how?
Thank you in advance.

OSC (Seekbar) is not visible while seeking.

OSC (Seekbar) is not visible while seeking. It is visible only there is any mouse movement. but when I seek through keyboard seekbar is not visible. Plz help me with this.

play/pause icons switched

yo, it's probably because i have mpv set to auto-play when a file is launched, but now whenever a video is playing, the play (triangle) icon shows, and whenever it is paused, the pause icon shows (the two vertical lines).

Weird first page

I'm on windows 10 installed the video player works fine but the first page is goofy
Capture

'seekrange' option not working

In user_opts, seekrange = false does not seem to disable the seekrange overlay. Likewise with the seekrangealpha option, changing the transparency does nothing

Weird font behaviour on macOS Monterey

Hi! interesting script, really appreciate your work.

Now to the matter from the title - it seems to me like the font isnt rendering correctly, and just shows weird values.
CleanShot 2021-08-27 at 20 32 16
Do you know about that behaviour on macOS? or even, would you know a fix?

Thanks in advance!

Wondering how to adjust the height of the progress bar, thanks

In my workflow, I need to drag the progress bar frequently, but this progress bar is too thin.

I wanted to customize the height of the progress bar, but I searched for a long time and didn't find it anywhere.

Please tell me how to go about modifying it, thanks!

Not Reading ~/.config/mpv/script-opts/osc.conf

There are few configs https://github.com/maoiscat/mpv-osc-modern#configuration

None of these take effect.

Even title = '1234', does not work.

% mpv -v -v
...
[cplayer] Error parsing option profile-cond (option not found)
[cplayer] /home/ismail/.config/mpv/mpv.conf:153: setting option profile-cond='p["idle-active"]' failed.
[cplayer] Error parsing option profile-restore (option not found)
[cplayer] /home/ismail/.config/mpv/mpv.conf:154: setting option profile-restore='copy-equal' failed.

In specific cases cause memory leak

reproduce

  1. set script-opts-add=osc-visibility=always in mpv.conf and play music.
  2. set window minimized
  3. when playback changed from a music without cover art to one with cover art,click the window
  4. cover art would not show up and memory leak happens.Have to kill the program and unable to get a resultful log
    屏幕截图 2023-04-19 143743

Swapping pause/play buttons

Hi there!
Sorry I'm not familiar with lua scripts. Your theme is awesome.
Except when the media is playing, the pause button is set to 'play', and when the media is paused, it shows 'pause'.
I don't know if it is intentional or not, but can you tell me which parameters to edit to swap these buttons?
Thank you.

Material icon font won't load

Upon opening a video in mpv, I can see the following output in my terminal:

[osd/libass] fontselect: Using default font family: (mpv-osd-symbols, 400, 0) -> /usr/share/fonts/ubuntu-font-family/UbuntuMono-R.ttf, 0, UbuntuMono-Regular
[osd/libass] fontselect: Using default font family: (material-design-iconic-font, 400, 0) -> /usr/share/fonts/ubuntu-font-family/UbuntuMono-R.ttf, 0, UbuntuMono-Regular

Deleting .config/fontconfig/fonts.conf only changes Ubuntu to the Liberation font in the mpv output, and doesn't help with loading the Material font.

I have the Material-Design-Iconic-Font.ttf file installed in my /usr/share/fonts/ folder.

Here's what icons look like right now inside mpv:

scrot-2023-05-22_1684802504s

Add a LISENCE into this repo?

Hi, may I ask which LICENSE are you using in this repo? We are trying to follow RFC16. If upstream can't provide a valid LISENCE, I can't keep this package in ArchLinuxCN repo anymore.

Deadzonesize not working

When I try making the deadzonesize equal to 1 it doesn't work. The default osc works but not this osc.

May I get some help from you,about osc tweak?

I like the icon style of this theme, except the layout, because the space at the bottom is a bit high, I want to modify it to be similar to the usual web player layout and move the bottom menu down, can you tell me what key parts to modify?

Add option to toggle play/pause button

I don't know why the triangle button is now showing while playing, but it doesn't fit most people's intuition.

I know it's possible to modify the script to toggle, but adding an option to toggle them I think would be nicer.

Add volume control

It only lacks the volume control, with that included it has everything it needs.

Showing the full title on the OSC ...

Screenshot_1
showing the full title :

[Hi10][Dual-Audio]

how to make it show the full title ,lots of space is left but script somehow isn't using it for display.

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.