HPlayer2
HPlayer2 copied to clipboard
using other player possibilities
Would it be possible to use c2play with hplayer2? could i do/make this my self if someone points met in the right direction?
I'm trying to run this on an odroid C4 but mpv is laggy because there is no hardware acceleration. the recommend players for odroid are c2play and kplayer
Hi, yes it would be possible, it has been build to be pluggable. To add c2play support you need to create a binding player module in core/players/ that module will inherit base.py and supercharge default methods with the one specific to c2play. You can copy-and-rename core/players/mpv.py to core/players/c2play.py and replace inside:
- class name -> will be C2playPlayer instead of MpvPlayer
- all the mpv logic should be replaced with c2play logic (i don't know how this one works, but for mpv we are using a subprocess to spawn the player process, then we communicate with it using IPC over Unix socket)
You can also check other players like core/players/omx.py or core/players/gst.py to check different ways to spawn and interact with a 3rd party player.
If you end up with something workable, feel free to PR, i'd be happy to add new player support to HPlayer2
Best,