Filter löschen
Filter löschen

Using a QuickTime ActiveX control to load and play a movie file.

5 Ansichten (letzte 30 Tage)
Christopher
Christopher am 29 Nov. 2012
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

Antworten (1)

Image Analyst
Image Analyst am 29 Nov. 2012
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.

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by