• Welcome!
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Title: 无法正常使用视频插件
Threaded Mode
#1
Photo 
无法正常使用视频插件,显示如下报错:

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);


Attached Files Thumbnail(s)
       
 
Reply
#2
(08-13-2022, 06:10 AM)zzz Wrote: 无法正常使用视频插件,显示如下报错:

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);
一个小bug,下次更新解决,在你的程序中把Video_4Ptr改为Video_4_mPtr就可以了。
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)