Multimedia Guide and Reference

Telling the video player to play

So far, you have told the video player when to open, when to close, what to play and where to play it. But what about playing it?

Instead of making a number of connections to numerous buttons, you can use the motion buttons. Simply connect the self attribute of the video player to the player attribute of the motion buttons.

Tips
To make use of the intelligence built into the buttons, connect the stateChanged event of the player to the setEmphasis action of the buttons. This connection grays the appropriate buttons if a particular action cannot be performed. For instance, the rewind button grays if you are at the beginning of the file.

Now test your application and watch that video fly!


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]