I am using <mx:VideoDisplay to display a video in my app @
http://opentube.info

the video is displayed within a tile window.

<mx:TitleWindow width="800" height="500" autoLayout="true"
layout="absolute" title="Video Viewer" showCloseButton="true" 
                xmlns:mx="http://www.adobe.com/2006/mxml";
                backgroundColor="#ffffff"
                verticalGap="0" horizontalCenter="0" verticalCenter="0"
                x="10" y="55"
                dropShadowEnabled="true"
                close="closeWindow()"
                xmlns:ns1="*"
                creationComplete="feedRequest.send()"
                xmlns:com="com.*"               
                >

my <mx:VideoDisplay code is as follows:
<mx:VideoDisplay id="myVid" height="350" width="450" bufferTime="5"
source="{rp2.currentItem.url}" autoPlay="true"
autoBandWidthDetection="true"/>
        <mx:HBox horizontalAlign="center" width="450">
            <mx:Button label="Play" click="myVid.play()"
cornerRadius="10" bottom="10" x="10"/>
            <mx:Button label="Pause" click="myVid.pause()"
cornerRadius="10" bottom="10" left="69"/>
            <mx:Button label="Stop" click="myVid.stop()"
cornerRadius="10" left="138" bottom="10"/>
            <mx:HSlider id="volume" snapInterval="0.01" value="5"
maximum="10"
                                change="myVid.volume = volume.value;" 
                                liveDragging="true" height="20" left="236" 
bottom="0" width="200"/>
        </mx:HBox>

the play/pasuse stop buttons throw "errors"

could someone advise me on how to "fix" it ?

Rohan
http://opentube.info

Reply via email to