MATLAB: Slider in Sync with Video display

MATLABslidervideo

Hello, I am having troubles with syncing a slider with the videos i have playing side by side. I have progress that syncs my slider with an edit box that displays a value, but i would need help to display the frame of the video at its time.
for my slider in sync with the edit box i have
% --- Executes on slider movement.
function sliderNum_Callback(hObject, eventdata, handles)
sliderVal = get(hObject,'Value')
assignin('base','sliderVal',sliderVal)
set(handles.editText,'String',num2str(sliderVal))
display(sliderVal)
how can i have this in sync with the video and to display certain frame in the edit box when i move the slider. (like a youtube slider, but maybe a lot more simple)
Any ideas/fix the code?
I am trying to learn, please help. I am using Matlab R2015a.

Best Answer

Have a look at videofig in the File Exchange
Related Question