VideoDisplay

4 views
Skip to first unread message

Rohan Pinto

unread,
Jun 5, 2007, 11:17:14 PM6/5/07
to opentube
I got the video display partially working folks... still a few small
issues...

Currently i can play all videos... BUT. the play/pause/stop buttons
dont work..
also when i close the popup window, the video does not unload and the
audio continues in the background even if the window is closed... I
need to unload the video when a user closes a window...

I have crossposted this on flexcoders @ http://tech.groups.yahoo.com/group/flexcoders/message/76622

code as follows encapsulated in (<mx:TitleWindow ....):

<mx:VideoDisplay id="videoDisplay" height="350" width="450"
source="{video}" autoPlay="true"/>

<mx:Button label="Play" click="videoDisplay.play();"
cornerRadius="0" bottom="10" x="10"/>
<mx:Button label="Pause" click="videoDisplay.pause();"
cornerRadius="0" bottom="10" left="69"/>
<mx:Button label="Stop" click="videoDisplay.stop();"
cornerRadius="0" left="138" bottom="10"/>
<mx:HSlider id="volume" snapInterval="0.01" value="5" maximum="10"
change="videoDisplay.volume = volume.value;" liveDragging="true"
height="20" left="236" bottom="0" width="200"/>

demo url: http://opentube.info (click on any video thumbnail to load
the video...)

I have 2 issues.
1. the play/pause/stop buttons dont work...
2. when the user closes the Tilewindow, the video DOES NOT unload,
the audio still keeps playing...

please advise...

do jump in folks... and make some recommendations and pitch in...
please.... lets get this product out the door !!!
Rohan
http://opentube.info

Tim Geiges

unread,
Jun 13, 2007, 4:30:58 PM6/13/07
to opentube
I have recently written a similar project but proprietary for a
company, not sure why your play/stop/pause do not work based on above
sample something else is apparently affecting those, I'd have to look
at more of the code.

This line might help you with a video scrubber(seek)
<mx:HSlider id="position" height="5"
thumbPress="videoDisplay.pause()" slideDuration="0"
thumbRelease="videoDisplay.play()" change="videoDisplay.playheadTime =
position.value" value="{videoDisplay.playheadTime}" minimum="0"
maximum="{videoDisplay.totalTime}" x="198" width="225" />

also I am not sure why but when you click different elements like a
new video, you are reloading the whole app rather than hiding/showing
certain elements


On Jun 5, 8:17 pm, Rohan Pinto <r...@rohanpinto.com> wrote:
> I got the video display partially working folks... still a few small
> issues...
>
> Currently i can play all videos... BUT. the play/pause/stop buttons
> dont work..
> also when i close the popup window, the video does not unload and the
> audio continues in the background even if the window is closed... I
> need to unload the video when a user closes a window...
>

> I have crossposted this on flexcoders @http://tech.groups.yahoo.com/group/flexcoders/message/76622


>
> code as follows encapsulated in (<mx:TitleWindow ....):
>
> <mx:VideoDisplay id="videoDisplay" height="350" width="450"
> source="{video}" autoPlay="true"/>
>
> <mx:Button label="Play" click="videoDisplay.play();"
> cornerRadius="0" bottom="10" x="10"/>
> <mx:Button label="Pause" click="videoDisplay.pause();"
> cornerRadius="0" bottom="10" left="69"/>
> <mx:Button label="Stop" click="videoDisplay.stop();"
> cornerRadius="0" left="138" bottom="10"/>
> <mx:HSlider id="volume" snapInterval="0.01" value="5" maximum="10"
> change="videoDisplay.volume = volume.value;" liveDragging="true"
> height="20" left="236" bottom="0" width="200"/>
>

> demo url:http://opentube.info(click on any video thumbnail to load

Tim Geiges

unread,
Jun 13, 2007, 4:39:44 PM6/13/07
to opentube
you can try
videoDisplay.source=null;
to unload the video;

On Jun 5, 8:17 pm, Rohan Pinto <r...@rohanpinto.com> wrote:

> I got the video display partially working folks... still a few small
> issues...
>
> Currently i can play all videos... BUT. the play/pause/stop buttons
> dont work..
> also when i close the popup window, the video does not unload and the
> audio continues in the background even if the window is closed... I
> need to unload the video when a user closes a window...
>

> I have crossposted this on flexcoders @http://tech.groups.yahoo.com/group/flexcoders/message/76622


>
> code as follows encapsulated in (<mx:TitleWindow ....):
>
> <mx:VideoDisplay id="videoDisplay" height="350" width="450"
> source="{video}" autoPlay="true"/>
>
> <mx:Button label="Play" click="videoDisplay.play();"
> cornerRadius="0" bottom="10" x="10"/>
> <mx:Button label="Pause" click="videoDisplay.pause();"
> cornerRadius="0" bottom="10" left="69"/>
> <mx:Button label="Stop" click="videoDisplay.stop();"
> cornerRadius="0" left="138" bottom="10"/>
> <mx:HSlider id="volume" snapInterval="0.01" value="5" maximum="10"
> change="videoDisplay.volume = volume.value;" liveDragging="true"
> height="20" left="236" bottom="0" width="200"/>
>

> demo url:http://opentube.info(click on any video thumbnail to load

Reply all
Reply to author
Forward
0 new messages