You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not working. Some API changes broke OSC scripts so they need to be updated due to newer versions of mpv (v0.37.0 and after).
please fix this. i really like your script. many thanks
The text was updated successfully, but these errors were encountered:
utils.shared_script_property_set("osc-margins",
string.format("%f,%f,%f,%f", margins.l, margins.r, margins.t, margins.b))
Replace it with:
if mp.del_property then
mp.set_property_native("user-data/osc/margins", margins)
else
utils.shared_script_property_set("osc-margins",
string.format("%f,%f,%f,%f", margins.l, margins.r, margins.t, margins.b))
end
Then find:
utils.shared_script_property_set("osc-margins", nil)
Replace it with:
if mp.del_property then
mp.del_property("user-data/osc/margins")
else
utils.shared_script_property_set("osc-margins", nil)
end
This will ensure compatibility for older and current mpv versions.
Not working. Some API changes broke OSC scripts so they need to be updated due to newer versions of mpv (v0.37.0 and after).
please fix this. i really like your script. many thanks
The text was updated successfully, but these errors were encountered: