How Can I close a video while playing in MATLAB GUI

6 views (last 30 days)
The following error I get it while running a code file
Reference to non-existent field 'aviobj'.
Error in final>CloseVideo_Callback (line 287) handles.aviobj
Error in gui_mainfcn (line 96) feval(varargin{:});
Error in final (line 42) gui_mainfcn(gui_State, varargin{:});
Error in @(hObject,eventdata)final('CloseVideo_Callback',hObject,eventdata,guidata(hObject))

Accepted Answer

Walter Roberson
Walter Roberson on 17 Feb 2013
After you assigned a value to handles.aviobj, did you use
guidata(hObject, handles)
to update the master copy of the handles structure?
  8 Comments
Walter Roberson
Walter Roberson on 17 Feb 2013
Make sure you use VideoReader with capital V and capital R, not lower-case R.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!