Thanks for your response! I have actually implemented something like the method you both mentioned. I created two methods, one in the ofxOMXPlayerEngine that was able to change the speed of the video, and also one in the ofxOMXPlayer that just passes the arguments to the ofxOMXPlayer newly implemted method. The method was called changeVideoPlayback and it took an argument (double) that determined the video speed (0.5 or 2.0). In the code shown below, I called my newly created method in the testApp.c, and it worked as intended, except it could only change the video speed initally and wasn’t able to change it while it was already playing. Where should I implement this method to be able to change the video speed during playback?
string videoPath = ofToDataPath("../../../video/test1.mp4", true);
//Somewhat like ofFboSettings we may have a lot of options so this is the current model
settings.videoPath = videoPath;
settings.useHDMIForAudio = true; //default true
settings.enableTexture = true; //default true
settings.enableLooping = true; //default true
settings.enableAudio = true; //default true, save resources by disabling
//settings.doFlipTexture = true; //default false
//so either pass in the settings
omxPlayer.changeVideoPlayback(2.0) //This is the new function implemented
//or live with the defaults
ofSetupOpenGL(1280, 720, OF_FULLSCREEN);
ofRunApp( new testApp());
I believe ofRunApp(new testApp()) is what starts the video. So i am not sure where i should implement the method I created.
Thanks for your help