jvcleave / ofxOMXPlayer

OpenMax accelerated video player for openFrameworks on the Raspberry Pi 0-3. Does not work with RPI4
GNU General Public License v2.0
180 stars 61 forks source link

Jack output with `ofRPIVideoPlayer` #143

Closed xseignard closed 5 years ago

xseignard commented 5 years ago

Hello, Thanks for this addon! I have a small question: how to use jack output with the ofRPIVideoPlayer ? Because of the this line, it forces the HDMI audio output, so for now I replace the value in your addon, but it's not a good long term solution. Any idea for a cleaner solution ?

Regards Xavier

jvcleave commented 5 years ago

You could put everything in your own settings object and use openOMXPlayer

https://github.com/jvcleave/ofxOMXPlayer/blob/master/src/ofRPIVideoPlayer.cpp#L53

xseignard commented 5 years ago

Yes but doing so tends to break the goal of the ofRPIVideoPlayer being a (almost) drop-in replacement for the classic ofVideoPlayer.

Anyway, thanks for the tip! Regards