필터 지우기
필터 지우기

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

조회 수: 5 (최근 30일)
Christopher
Christopher 2012년 11월 29일
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

답변 (1개)

Image Analyst
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.

카테고리

Help CenterFile Exchange에서 ActiveX에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by