08-13-2022, 06:10 AM
无法正常使用视频插件,显示如下报错:
Code:
未定义函数或变量 'Video_4Ptr'。
出错 foodvideo (line 143)
Screen('PlayMovie', Video_4Ptr, 1.0);
Code:
% Really start to handle movie file in widget Video_4
Video_4_sMTime = 00/1000;
Video_4_eMTime = 9999999/1000;
[Video_4_mPtr,Video_4_mDur, ~,Video_4_ImgW, Video_4_ImgH] = Screen('OpenMovie',winIds(1), fullfile(cFolder,'Joe.mp4') );
Screen('SetMovieTimeIndex', Video_4_mPtr, Video_4_sMTime); % skip the first n seconds
Screen('PlayMovie', Video_4Ptr, 1.0);
Video_4_dRect = makeImDestRect_APL(Video_4_fRect, [Video_4_ImgW, Video_4_ImgH], 0);