Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Getting an AVI to play automatically- Help Please

Subject: Getting an AVI to play automatically- Help Please

From: Emily Luckette

Date: 18 Apr, 2012 21:34:07

Message: 1 of 2

I am trying to get an AVI video to play automatically. When I use implay('filename.avi') or mplay('filename.avi') the movie view appears with the video but the user has to select the play button on the movie viewer. Is there any way to have the movie start playing without the user selecting the play button?

Thank you!

Subject: Getting an AVI to play automatically- Help Please

From: witek@mathworks.com

Date: 19 Apr, 2012 13:30:23

Message: 2 of 2

Hi Emily,

You can try the following:

h = mplay('rhinos.avi');
play(h.DataSource.Controls);

Beware that this syntax is not documented and subject to change.

HTH,

Witek


Emily Luckette <emily.luckette@gmail.com> wrote:
> I am trying to get an AVI video to play automatically. When I use implay('filename.avi') or mplay('filename.avi') the movie view appears with the video but the user has to select the play button on the movie viewer. Is there any way to have the movie start playing without the user selecting the play button?
>
> Thank you!

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us