cyl0 / modernx Goto Github PK
View Code? Open in Web Editor NEWThis project forked from maoiscat/mpv-osc-modern
A modern OSC UI replacement for MPV that retains the functionality of the default OSC.
This project forked from maoiscat/mpv-osc-modern
A modern OSC UI replacement for MPV that retains the functionality of the default OSC.
The point is, timeline when you pause, covers all subtitles, is there a way to move it to the top of the window?
Currently running mpv 0.37.0, and I'm getting a "The shared-script-properties property is deprecated and will be removed in the future. Use the user-data property instead." warning if I use ModernX.
Heads up for the dev?
The file opens with something like play = '\239\142\170'
, I opened the file using vs code, how do I know its original icon?
If you have a really long title, it gets cut off kind of abruptly at the end. Is there a way we can reduce the default font size to mitigate the issue?
Or other solutions to display them.. i.e. Add "..." ellipses at the end, or a fade effect (i.e. browser tab titles), or dynamically reduce the font size so the full title fits the screen. Maybe even horizontally scrolling text if that's not too hard to implement.
while the video is paused, the window control buttons (from the osc) and the play button won't show that same darkening effect when you click them. It only works while the video isn't paused, is there any way to fix this? @cyl0
I'm using windows 10.0.19043.1526
Without a border (above), it’s somehow unusual, until I turned it on in the config. But with him, as if part of the video is not visible (?)
Here in this OSC is well implemented, mine. (but there are other problems) In general, I would like improvements in this direction, otherwise everything is super
UPD: Clicking on the sound icon does not work, you can not change the value
Provide following Information:
Open a video.
Being able to see the UI, to browse the video etc..
I cannot see anything.
Any help is appreciated.
mpv.conf: https://0x0.st/XouM.conf
scripts folder:
.confg/mpv folder:
In your fork, the osc doesn't show up with small mouse movements, it only shows up when hovering over the osc or title bar area. Can you confirm that its broken and how to fix? I tried minmousemove=0 but it didn't seem to work. 0 is the default value with stock osc: https://mpv.io/manual/master/#on-screen-controller-minmousemove
po5's GitHub account appears to have been deleted and their thumbfast repo deleted with it.
scroll to line 2517 in modernx.lua, replace
utils.shared_script_property_set("osc-visibility", mode)
with
mp.set_property_native("user-data/osc/visibility", mode)
MPV thumbnail script basically shows preview thumbnails when hovering over mpv's seekbar.
It does not work with MordenX and appears broken, which is believe is due to the fact that it replaces the built-in OSC, which conflicts with MordenX.
I just wanted to know if it was possible to somehow use this script with mordenX, or maybe add its functionality ?
Thank you !
With border enabled, when I resize the player, The OSC does not scale with the player.
This causes issue when I play any audio file with a very small interface all the buttons appear very small. This is not an issue in the upstream.
Sorry if there is an easy way to fix it, I don't not know enough about lua scripting.
How do I make osc to only show up when hovering on the bottom area of the screen? It's a standard behavior of the default mpv osc. Your script shows up osc when hovering mouse anywhere on the sacreen.
The upstream project few features like:
volume scroll bar
mute button
etc.
When will we get those features?
Hi there,
When we play videos, we want the controls autohide. But when playing audio files, there is no reason to hide controls, since we need buttons, sound title, album, etc... to be visible without moving the mouse.
Is there (or could be) an option to make the modernX ui don't hide when playing audio files?
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 MordenX so this behavior is replicated (or just that the OSC can be shown)? I use this in a HTPC setting with a IR remote, mouse hovering is unfortunately not an option.
I know it works just when pausing the video, but sometimes I want to see how much time is left without pausing, just with a discreet glance at the OSC.
@cyl0
Every time I run MPV.net after installing the script and load the player this occurs
any idea how to make them play nice mpv and mpv.net are not that much different from one another
Mplug is like a package manager but for mpv scripts.
Please add your script there (if already not there) and also installation instructions in manifest - https://github.com/Nudin/mpv-script-directory/blob/master/HOWTO_ADD_INSTALL_INSTRUCTIONS.md
Hey, I'm using MPV with https://github.com/cyl0/ModernX. But thumbnail seems not working I don't know why
[mordenx]
[mordenx] stack traceback:
[mordenx] mp.defaults:361: in function 'process_timers'
[mordenx] mp.defaults:530: in function 'dispatch_events'
[mordenx] mp.defaults:503: in function <mp.defaults:502>
[mordenx] [warnC]: mordenxat 0x7f
f90d142e80
[mordenx] [C]: at warn0 x7fmordenxf 90stack traceback:d1
41070
warn mordenx mp.defaults:361: in function 'process_timers'
[mordenx] Lua warnerr or:mordenx [st ring mp.defaults:530: in function 'dispatch_events' "
./config/scripwarnt smordenx/mo rde mp.defaults:503: in function <mp.defaults:502>n
x.lua"]:2125:warn a ttmordenxem pt [C]: at 0x7ff90d142e80 to
call globalwarn 'kmordenxill _ [C]: at 0x7ff90d141070animat
ion' (a nil value)
fatal mordenx Lua error: [string "./config/scripts/mordenx.lua"]:2125: attempt to call global 'kill_animation' (a nil value)
Please add a button for repeat forever like https://github.com/longtermfree/oscc
This works fine when there's playback, but if the video is paused the UI is always visible regardless of where the cursor is.
The default behavior is to show it whenever the cursor moves and I'm wondering if there's a way to make it only show when I hover over the OSC elements at the bottom. I apologize if there's an option for that already but I have read through the lua file multiple times but I couldn't anything related.
I am experiencing a problem on Mac OS Ventura. When I play any video via open
or double-click in Finder, it opens a new mpv instance. If I then hover over the timeline (and generate thumbnails, invoking thumbfast I suspect), the mpv icon will sort of stutter in the dock and then gets stuck there.
When I say "stuck", I mean that it works until I finish the video or quit, but then it stays open and won't quit unless I pkill
or Force Quit. The funny thing is it works fine and as expected if I run via mpv
, just not through open
or Finder. I am perplexed as to why this is happening... it seems to just sort of bug out when invoking thumbfast.
Here is a video of the issue: https://imgur.com/a/itxg5AP
I'm not sure if this is an issue with thumbfast or not, but I only have ModernX and and thumbfast installed and when I remove either of them this issue goes away.
Hopefully someone can help me resolve this annoying issue, but either way: thank you for reading.
I have placed thumbfast.lua in .config/mpv/scripts
I have placed thumbfast.conf in .config/mpv/script-opts
No config is changed.
When I move the mouse on the seekbar, it does not change the thumbnail. It shows a fixed image.
A couple new features were added in the original branch; hope we can see them here.
EDIT:
Also
maoiscat#40
maoiscat#41
first of all thank you for your script, i was just wondering if there's an option to change the width of the whole osc bar, something like https://iina.io/images/sc-sky.png or the one on stock osc of mpv layout=slimbox
This UI is awesome.
One thing I noticed is I tried using it with a playlist and the only way to select a new file was with previous/next buttons.
Could you add a library button, in case a playlist of files or iptv channels is added? Thank you
Hi, it seems that somehow the osc script broke along the way, affected host os are MacOS and Linux afaik
Tsubajashi/mpv-settings#19
The error looks like this on affected systems:
Any idea what's causing this?
Hi,
I'm very happy with the size of the UI but the timestamps are too small for me. Is there any way to change the font size for the timestamps without scaling the entire UI?
If not then can such an option be added (or point me to the right variables as I can't seem to figure out where to set the size)?
P.S. Thanks for the excellent script!
A button to toggle "Stay on top" off and on next to the "Stats" button on the right, would be a great addition for convenience sake.
Also, thank you for forking and maintaining this project.
It would be great if there was an icon to toggle playlist display when the skin detects that mpv-playlistmanager is loaded - next to the info/stats icon, for example.
Line 1777 in ccb54f7
should be val+val
for proper volume slider scaling
The original mpv-osc-modern has the volume icon; is there a way to enable that here in this fork?
I would like to request an option idlescreen that allows to disable the logo and the logo drag and drop text.
In mpv.net there is an option show-logo.
Users then have a choice if they want the mpv.net logo, the osc logo, or no logo.
It not only fixes the mpv.net logo overlap issue, but also overlap issues with many menu scripts:
https://github.com/CogentRedTester/mpv-file-browser
https://github.com/stax76/mpv-scripts/blob/main/osm.lua
Also, various bookmark and recent file menu scripts.
More info:
Thank you for your plugin!
However, using this plugin on MacOS (12.2.1 on M1 MBA) the special font for the buttons does not work:
[osd/libass] libass API version: 0x1502000
[osd/libass] libass source: tarball: 0.15.2
[osd/libass] Shaper: FriBidi 1.0.10 (SIMPLE) HarfBuzz-ng 4.0.0 (COMPLEX)
[osd/libass] Setting up fonts...
[osd/libass] Loading font file '/Users/mxsrm/.config/mpv/fonts/SamsungOne-700.ttf'
[osd/libass] Loading font file '/Users/mxsrm/.config/mpv/fonts/Material-Design-Iconic-Font.ttf'
[osd/libass] Loading font file '/Users/mxsrm/.config/mpv/fonts/SamsungOne-400.ttf'
[osd/libass] Using font provider coretext
[osd/libass] Done.
[osd/libass] fontselect: (SamsungOne-400, 400, 0) -> SamsungOne-400, 0, SamsungOne-400
[osd/libass] fontselect: (material-design-iconic-font, 400, 0) -> Material-Design-Iconic-Font, 0, Material-Design-Iconic-Font
[osd/libass] Glyph 0x78 not found, selecting one more font for (material-design-iconic-font, 400, 0)
[osd/libass] fontselect: Using default font family: (material-design-iconic-font, 400, 0) -> SamsungOne-400, 0, SamsungOne-400
[osd/libass] fontselect: (material-design-iconic-font, 400, 0) -> SamsungOne-400, 0, SamsungOne-400
[osd/libass] fontselect: (mpv-osd-symbols, 400, 0) -> mpv-osd-symbols-Regular, 0, mpv-osd-symbols-Regular
[osd/libass] Glyph 0x20 not found, selecting one more font for (mpv-osd-symbols, 400, 0)
[osd/libass] fontselect: Using default font family: (mpv-osd-symbols, 400, 0) -> SamsungOne-400, 0, SamsungOne-400
[osd/libass] fontselect: (mpv-osd-symbols, 400, 0) -> SamsungOne-400, 0, SamsungOne-400
Leading to this:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.