I am editing the video.c file and am using wiringPi for the GPIO.
In order to loop I replaced 'break' with 'rewind(in)' after the if(!data_len) so this now looks like:
Code: Select all
if(!data_len)
rewind(in); //this makes the video seamless continuous looping The following code is inserted above the code above:
Code: Select all
pp = digitalRead(17);
if(ppp == 1 && pp == 0)
ilclient_change_component_state(video_render, OMX_StatePause);
if(ppp == 0 && pp == 1)
ilclient_change_component_state(video_render, OMX_StateExecuting);
ppp = pp;Mike