coslyk / moonplayer

Video player that can play online videos from youtube, bilibili etc.
https://coslyk.github.io/moonplayer.html
GNU General Public License v3.0
627 stars 93 forks source link

[Feature Request] Add features to support MPV options and Bilibili cookies #107

Open MrAru opened 3 years ago

MrAru commented 3 years ago

Is your feature request related to a problem? Please describe. I think it's worth considering the following two features for this great video player:

Given the different purposes for the users of the player, the options passed to MPV should be supported. This can give more customizability to advanced users. For instance, I'd like to add --hwdec=auto to enable hardware acceleration, or --fs=yes to make sure MPV starts with the full screen mode.

We all know that 大会员 is needed to watch the latest or the best quality videos / bangumi in Bilibili, so I think it must be helpful to meet this feature. (Maybe I should move this feature request to the plugin repo? I'm not sure.)

Describe the solution you'd like For the first feature above, a text input box can be added into Setting -> Videos page. The different options can be separated by semi-comma or enter key, e.g.,

--hwdec=auto;--fs=yes

or

--hwdec=auto
--fs=yes

Also, the Bilibili cookies can be inputed into anywhere, maybe a configuration file or integrate into the player itself.

coslyk commented 3 years ago

Cookies is not supported by the upstream ykdl project.