Using a QuickTime ActiveX control to load and play a movie file.
5 ビュー (過去 30 日間)
古いコメントを表示
I'm trying to implement the QuickTime activex control to enable video playback in a Matlab GUI. I am able to load a video, but the QTMovie object, which contains all the movie playback controls, doesn't seem to load correctly into the main activex control object.
m = figure('Position',[0 0 1080 630]);
h=actxcontrol('QTOControl.QTControl.1', [0 0 1080 630],m);
h.URL = 'C:\MyVideo.mov';
This loads the video ok, and the video plays if I set
h.AutoPlay = 'true';
However, if I interrogate the Movie property
get(get(h,'Movie'))
all I get is 1x1 struct array with no fields.
whereas I should get a QTMovie object containing various methods for controlling playback, such as
h.Movie.Play()
How to I obtain the QTMovie objects correctly?
I'm using R2012b 32bit.
Thanks Chris
0 件のコメント
回答 (1 件)
Image Analyst
2012 年 11 月 29 日
I have Quicktime but I don't see it as one of the ActiveX controls that can be installed. It doesn't show up in GUIDE when I try to add it. I think it's not compatible for some reason. They explained it to me once when I asked them why I couldn't add any OCX widget I wanted, but I forgot what they said. The gist of it was that not all ActiveX controls are able to be added for some reason.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で ActiveX についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!