Using a QuickTime ActiveX control to load and play a movie file.
2 次查看(过去 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!