Multimedia Guide and Reference

Telling the video player what file to play

Connect the object attribute of the label part to the aFileName attribute of the aboutToOpenWidget-openFile connection. The openFile: action immediate loads a video file. Thus, when the next action, like play, occurs in the player, the video file loads.

If you don't want to immediately load the file, use the fileToLoad attribute.

If you want the video to play in the video playback window, connect the videoWindow attribute of the video playback window to the videoPlaybackWindow attribute of the video player. If you do not want to play the video in a specific window, do not connect the videoPlaybackWindow attribute; the player creates a default desktop window and plays the video there.

Tips
When the video player closes, its attributes are set to nil. So, if you close the video player while a scene is still up and then reopen it, the video will not play in the video playback window. This is because VisualAge triggered the video playback window connection already and can't fire it again. A solution is to write a simple script that recreates this connection.


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