[flexcoders] VideoDisplay - video is playing, but without audio
I use VideoDisplay to play videos in my Flex app. The videos are hosted in our local web server. The size of the video is around 10MB to 30MB. I need to play 60 to 80 videos throughout the app. The videos are playing fine, but the audio is missing after playing some videos - not reproducible all the time, but if that happens, all audio stops playing till the end of the app. What could be the issue? any idea? Thanks, Joy
Re: [flexcoders] VideoDisplay - video is playing, but without audio
One of our projects has suffered from a similar issue. We're streaming audio from Flash Media Server, and sometimes the audio will cut out - we still get cue points embedded in the audio, the NetStream object doesn't register any errors, and the rest of the app acts like the audio ends at the right time. We also have a recording aspect to our project, and when the audio cuts out, sometimes it will cut back in after we record something. We've really only noticed this problem when running the app on Windows 7 -- and it's more prevalent when the computer is connected via wireless. Have you noticed any similar patterns in your app? -Brian On Wed, Mar 3, 2010 at 10:30 PM, joyh2002 joyh2...@yahoo.com wrote: I use VideoDisplay to play videos in my Flex app. The videos are hosted in our local web server. The size of the video is around 10MB to 30MB. I need to play 60 to 80 videos throughout the app. The videos are playing fine, but the audio is missing after playing some videos - not reproducible all the time, but if that happens, all audio stops playing till the end of the app. What could be the issue? any idea? Thanks, Joy
[flexcoders] VideoDisplay smoothing and autoPlay
Well I've followed countless examples to add smoothing to flex by extending VideoDisplay, but for some reason setting the autoPlay to be false doesn't change the videoDisplay autoPlay. Anybody have any ideas? import flash.display.DisplayObject; import mx.controls.VideoDisplay; import mx.controls.videoClasses.VideoPlayer; import mx.managers.IFocusManagerComponent; public class SmoothVideo extends VideoDisplay implements IFocusManagerComponent { public var smoothing:Boolean=false; public var deblocking:int=0; public function SmoothVideo() { super(); } override public function addChild(child:DisplayObject):DisplayObject { var video:VideoPlayer = VideoPlayer(child); video.smoothing=smoothing; video.deblocking=deblocking; return super.addChild(child); } } }
Re: [flexcoders] VideoDisplay smoothing and autoPlay
Ok I see in the original mx.controls.VideoDisplay it checks autoplay and either plays or loads the video -- however why can't I override this function? private function autoPlaying():void { if (_source) { // Start playing or loading. if (_autoPlay) play(); else load(); // Seek to playheadTime now if specified. if (!isNaN(_playheadTime)) { asCuePointIndexResetPending = Boolean(_playheadTime = 0); videoPlayer.seek(_playheadTime); } } } On Aug 6, 2009, at 8:39 AM, grimmwerks wrote: Well I've followed countless examples to add smoothing to flex by extending VideoDisplay, but for some reason setting the autoPlay to be false doesn't change the videoDisplay autoPlay. Anybody have any ideas? import flash.display.DisplayObject; import mx.controls.VideoDisplay; import mx.controls.videoClasses.VideoPlayer; import mx.managers.IFocusManagerComponent; public clas s SmoothVideo extends VideoDisplay implements IFocusManagerComponent { public var smoothing:Boolean=false; public var deblock ing:int=0; public function SmoothVideo() { super(); } override public function addChild(child:DisplayObject):DisplayObject { var video:VideoPlayer = VideoPlayer(child); video.smoothing=smoothing; video.deblocking=deblocking; return super.addChild(child); } } }
[flexcoders] VideoDisplay rewind
Hi all, Does anyone have a cool way to rewind a video using the VideoDisplay Object? thanks and many cheers percy k
[flexcoders] VideoDisplay
Hello, VideoDiplay is not displaying the video. I have try .mp4, .flv, .avi and .swf files. I have a black square. Could you send me the minimum basic code to display a video ? Thank you, Christophe,
[flexcoders] VideoDisplay and virtual keys
Hello Coders, I'm wondering if anyone has experience with using the VideoDisplay object to connect to an FMS server. The problem i'm facing is that i'm using virutal keys and thus need to be able to connect to an app on the server and not simply the media. Hope this makes sense... cheers percy
[flexcoders] VideoDisplay Object
Hi People,I'm resizing video display object in my app and the video itself isn't being resized...just the component...how can i change the size of the video itself. percy
[flexcoders] VideoDisplay play/pause button
To make a simple play / pause button I bind the selected state of the button to the playing property of the VideoDisplay component. This works fine with progressive video, but for some reason when using streaming video the binding does not work correctly. Most of the time it does not set the selected state when the playing property changes. Anyone know why or how to fix this?
Re: [flexcoders] VideoDisplay Object
Hi percy, I used its width and height property and everything resize fine... --- On Fri, 9/5/08, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: From: [p e r c e p t i c o n] [EMAIL PROTECTED] Subject: [flexcoders] VideoDisplay Object To: flexcoders@yahoogroups.com Date: Friday, September 5, 2008, 12:07 PM Hi People,I'm resizing video display object in my app and the video itself isn't being resized...just the component... how can i change the size of the video itself. percy
Re: [flexcoders] VideoDisplay Object
So am i. I made it smaller and the video itself stays the same size but the component shrinks and displays scrollbars Percy Sent via BlackBerry by ATT -Original Message- From: Mario Falomir [EMAIL PROTECTED] Date: Fri, 5 Sep 2008 12:12:40 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] VideoDisplay Object Hi percy, I used its width and height property and everything resize fine... --- On Fri, 9/5/08, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: From: [p e r c e p t i c o n] [EMAIL PROTECTED] Subject: [flexcoders] VideoDisplay Object To: flexcoders@yahoogroups.com Date: Friday, September 5, 2008, 12:07 PM Hi People,I'm resizing video display object in my app and the video itself isn't being resized...just the component... how can i change the size of the video itself. percy
Re: [flexcoders] VideoDisplay Object
You are using the Flex 3 VideoDisplay component ? Weirdit works fine with me.. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute initialize=init(event) mx:VideoDisplay x=146.5 y=157 width=395 height=258 id=videoObj/ mx:Script ![CDATA[ import mx.events.SliderEvent; private var iniW:Number; private var iniH:Number; private function init(e:Event):void { iniW = videoObj.width; iniH = videoObj.height; try { videoObj.source = http://localhost/surf.flv;; } catch (e:Error) { output_txt.text = e.message; } sizeSlider.addEventListener(SliderEvent.CHANGE, resizeVideo); } private function resizeVideo(e:SliderEvent):void { var nw:Number = iniW + (sizeSlider.value * 25); var nh:Number = iniH + (sizeSlider.value * 25); videoObj.setActualSize( nw, nh ); } ]] /mx:Script mx:HSlider x=264 y=131 id=sizeSlider liveDragging=true minimum=0 maximum=20 snapInterval=1/ /mx:Application --- On Fri, 9/5/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] [EMAIL PROTECTED] Subject: Re: [flexcoders] VideoDisplay Object To: flexcoders@yahoogroups.com Date: Friday, September 5, 2008, 4:04 PM So am i. I made it smaller and the video itself stays the same size but the component shrinks and displays scrollbars PercySent via BlackBerry by ATTFrom: Mario Falomir mario_falomir@ yahoo.com Date: Fri, 5 Sep 2008 12:12:40 -0700 (PDT) To: [EMAIL PROTECTED] ups.com Subject: Re: [flexcoders] VideoDisplay Object Hi percy, I used its width and height property and everything resize fine... --- On Fri, 9/5/08, [p e r c e p t i c o n] percepticon@ gmail.com wrote: From: [p e r c e p t i c o n] percepticon@ gmail.com Subject: [flexcoders] VideoDisplay Object To: [EMAIL PROTECTED] ups.com Date: Friday, September 5, 2008, 12:07 PM Hi People,I'm resizing video display object in my app and the video itself isn't being resized...just the component... how can i change the size of the video itself. percy
Re: [flexcoders] VideoDisplay Object
Is more easy for anyone to help you if you post part of your attempt and we see how we could help. Regards Igor Costa www.igorcosta.org On Fri, Sep 5, 2008 at 7:42 PM, Mario Falomir [EMAIL PROTECTED]wrote: You are using the Flex 3 VideoDisplay component ? Weirdit works fine with me.. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute initialize=init(event) mx:VideoDisplay x=146.5 y=157 width=395 height=258 id=videoObj/ mx:Script ![CDATA[ import mx.events.SliderEvent; private var iniW:Number; private var iniH:Number; private function init(e:Event):void { iniW = videoObj.width; iniH = videoObj.height; try { videoObj.source = http://localhost/surf.flv;; } catch (e:Error) { output_txt.text = e.message; } sizeSlider.addEventListener(SliderEvent.CHANGE, resizeVideo); } private function resizeVideo(e:SliderEvent):void { var nw:Number = iniW + (sizeSlider.value * 25); var nh:Number = iniH + (sizeSlider.value * 25); videoObj.setActualSize( nw, nh ); } ]] /mx:Script mx:HSlider x=264 y=131 id=sizeSlider liveDragging=true minimum=0 maximum=20 snapInterval=1/ /mx:Application --- On *Fri, 9/5/08, [EMAIL PROTECTED] [EMAIL PROTECTED]* wrote: From: [EMAIL PROTECTED] [EMAIL PROTECTED] Subject: Re: [flexcoders] VideoDisplay Object To: flexcoders@yahoogroups.com Date: Friday, September 5, 2008, 4:04 PM So am i. I made it smaller and the video itself stays the same size but the component shrinks and displays scrollbars Percy Sent via BlackBerry by ATT -- *From*: Mario Falomir mario_falomir@ yahoo.com *Date*: Fri, 5 Sep 2008 12:12:40 -0700 (PDT) *To*: [EMAIL PROTECTED] ups.com *Subject*: Re: [flexcoders] VideoDisplay Object Hi percy, I used its width and height property and everything resize fine... --- On *Fri, 9/5/08, [p e r c e p t i c o n] percepticon@ gmail.com*wrote: From: [p e r c e p t i c o n] percepticon@ gmail.com Subject: [flexcoders] VideoDisplay Object To: [EMAIL PROTECTED] ups.com Date: Friday, September 5, 2008, 12:07 PM Hi People,I'm resizing video display object in my app and the video itself isn't being resized...just the component... how can i change the size of the video itself. percy -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] VideoDisplay play/pause button
Try to put your control on control. Like that mx:VideoDisplayObject id=vid/ button click=vid.play();/ button click=vid.pause();/ Regards Igor Costa www.igorcosta.org On Fri, Sep 5, 2008 at 4:14 PM, sleekdigital [EMAIL PROTECTED] wrote: To make a simple play / pause button I bind the selected state of the button to the playing property of the VideoDisplay component. This works fine with progressive video, but for some reason when using streaming video the binding does not work correctly. Most of the time it does not set the selected state when the playing property changes. Anyone know why or how to fix this? -- Igor Costa www.igorcosta.com www.igorcosta.org
[flexcoders] VideoDisplay autobandwidth and FMS3
I am looking for examples of using the autobandwidth property of Flex's VideoDisplay and FMS3's new support for automatically calculating bandwidth. Anyone done this?
[flexcoders] videoDisplay and squished video...
Hey - I'm pulling in a number of brightcove videos into flex using the videoDisplay class. For some reason, flipping through 68 different videos, some seem to squish and I can't figure out why. I might have to flip to the netstream classes but has anyone seen this before?
Re: [flexcoders] videoDisplay and squished video...
What's curious is that both squished and unsquished videos are returning that they're 512 wide in videowidth On Jun 25, 2008, at 3:43 AM, grimmwerks wrote: Hey - I'm pulling in a number of brightcove videos into flex using the videoDisplay class. For some reason, flipping through 68 different videos, some seem to squish and I can't figure out why. I might have to flip to the netstream classes but has anyone seen this before? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo ! Groups Links
[flexcoders] VideoDisplay component DCP
Thanks. Just a followup. Will I be able to issue commands to the camera from the VideoDisplay component? Thanks
[flexcoders] VideoDisplay: why does play restart buffering after load?
I'm trying to avoid using VideoDisplay's default buffering and loading/playing videos manually. For some reason, calling load and then play sometimes makes the player start buffering again from the very beginning. I assume this is caused by one of the booleans sourceChanged or closeCalled not being reset by the load, but since they are private, I can't access them. Does anyone know a way around this? I think I'm on my fourth attempt at changing buffering because I keep hitting brick walls with the player... Any advice would really be appreciated. Thanks!
Re: [flexcoders] VideoDisplay lies about bytesLoaded
Hi Dennis, I would just listen for progress event of the videodisplay component and get my bytesLoaded/bytesTotal from that. It has always worked correctly for me. Nayan On Apr 19, 2008, at 8:56 PM, Dennis Falling wrote: I'm using a changewatcher to observe the bytesLoaded attribute of a videoDisplay and update the UI accordingly. This works well most of the time, but once during each of the longer videos, bytesLoaded will jump, then continue loading. bytesLoaded / bytesTotal: 3186688/4971903 4971903/4971903 -- wrong 1900544/4971903 4247552/4971903 4971903/4971903 Does anyone know what could be causing this? Is there a better way to do this than using a changewatcher? Thanks.
[flexcoders] VideoDisplay lies about bytesLoaded
I'm using a changewatcher to observe the bytesLoaded attribute of a videoDisplay and update the UI accordingly. This works well most of the time, but once during each of the longer videos, bytesLoaded will jump, then continue loading. bytesLoaded / bytesTotal: 3186688/4971903 4971903/4971903 -- wrong 1900544/4971903 4247552/4971903 4971903/4971903 Does anyone know what could be causing this? Is there a better way to do this than using a changewatcher? Thanks.
[flexcoders] VideoDisplay intelligent buffering?
Are there any tricks to make the VideoDisplay's buffering work a little better? The default behavior of simply waiting a number of seconds isn't ideal because if it's a short video, this may be too long, and if it's a long video, this may be too short. If anyone has come up with a good way of handling this, I'd love some advice. Thanks!
[flexcoders] VideoDisplay throws Error: Cannot call reconnect on an http connection.
Hello, I have a form where the user can select videos to play on a VideoDisplay. Everything works just fine, except if the user changes videos too fast. When that happens, sometimes it's thrown the error Error: Cannot call reconnect on an http connection. I don't know what's causing this, neither how to solve me. Any suggestion? Thanks, João Saleiro www.riapt.org www.webfuel.pt
Re: [flexcoders] VideoDisplay throws Error: Cannot call reconnect on an http connection.
hi, the error is because of, while u streaming a video from the server and u make fast oneafter another request to the server for different video.. the way u can achive is that u may need to clear the video before making new request. refer below link u wil get complete idea and hope it may solve u r porb. http://blog.flexexamples.com/2008/01/15/clearing-the-video-on-a-flex-videodisplay-control/ João Saleiro wrote: Hello, I have a form where the user can select videos to play on a VideoDisplay. Everything works just fine, except if the user changes videos too fast. When that happens, sometimes it's thrown the error Error: Cannot call reconnect on an http connection. I don't know what's causing this, neither how to solve me. Any suggestion? Thanks, João Saleiro www.riapt.org www.webfuel.pt -- View this message in context: http://www.nabble.com/VideoDisplay-throws-%22Error%3A-Cannot-call-reconnect-on-an-http-connection.%22-tp15404591p15406121.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] VideoDisplay over RTMP - Not possible?
Hi I've run into a seemingly common problem of setting videoDisplay source to an rtmp stream. I get the following exception as soon as the video-display's play is triggered: ArgumentError: Error #2126: NetConnection object must be connected. at flash.net::NetStream/construct() at flash.net::NetStream() at VideoPlayerNetStream()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\controls\videoClasses\VideoPlayer.as:2882] I found the following URL that refers to a race condition: http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/ I tried their monkey patch, but was still not able to get around the problem. Tracing through the Flex code I found a very interesting snippet of code in NCManagerConnectClient.onBWDone which invokes an onConnected method passing a net-connection object that is not actually connected. This continues to the VideoPlayer.ncConnected method which tries to connect the stream on the net-connection object that is not actually connected. Possible Solution: Dont use VideoDisplay for RTMP, build your own? Cheers tracy
Re: [flexcoders] VideoDisplay over RTMP - Not possible?
U don't need to start from scrath , i hv once seen such component developed on net. Google may help. On Feb 1, 2008 3:59 PM, YOGESH JADHAV [EMAIL PROTECTED] wrote: exactly, VideoDisplay Sucks, use Video Object and add it to panel ( if u want same looks of videodisplay ) On Feb 1, 2008 3:13 PM, polestar11 [EMAIL PROTECTED] wrote: Hi I've run into a seemingly common problem of setting videoDisplay source to an rtmp stream. I get the following exception as soon as the video-display's play is triggered: ArgumentError: Error #2126: NetConnection object must be connected. at flash.net::NetStream/construct() at flash.net::NetStream() at VideoPlayerNetStream()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\controls\videoClasses\VideoPlayer.as:2882] I found the following URL that refers to a race condition: http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/ I tried their monkey patch, but was still not able to get around the problem. Tracing through the Flex code I found a very interesting snippet of code in NCManagerConnectClient.onBWDone which invokes an onConnected method passing a net-connection object that is not actually connected. This continues to the VideoPlayer.ncConnected method which tries to connect the stream on the net-connection object that is not actually connected. Possible Solution: Dont use VideoDisplay for RTMP, build your own? Cheers tracy -- Regards, Yogesh -- Regards, Yogesh
Re: [flexcoders] VideoDisplay over RTMP - Not possible?
exactly, VideoDisplay Sucks, use Video Object and add it to panel ( if u want same looks of videodisplay ) On Feb 1, 2008 3:13 PM, polestar11 [EMAIL PROTECTED] wrote: Hi I've run into a seemingly common problem of setting videoDisplay source to an rtmp stream. I get the following exception as soon as the video-display's play is triggered: ArgumentError: Error #2126: NetConnection object must be connected. at flash.net::NetStream/construct() at flash.net::NetStream() at VideoPlayerNetStream()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src\mx\controls\videoClasses\VideoPlayer.as:2882] I found the following URL that refers to a race condition: http://www.jlacivita.com/2007/11/14/race-conditions-in-flex-videodisplay/ I tried their monkey patch, but was still not able to get around the problem. Tracing through the Flex code I found a very interesting snippet of code in NCManagerConnectClient.onBWDone which invokes an onConnected method passing a net-connection object that is not actually connected. This continues to the VideoPlayer.ncConnected method which tries to connect the stream on the net-connection object that is not actually connected. Possible Solution: Dont use VideoDisplay for RTMP, build your own? Cheers tracy -- Regards, Yogesh
[flexcoders] VideoDisplay inconsistent behavior, it gets Stuck
Hello Guys I am working on a Flex Media application. I am sending Flv path through Javascript. Everythings is working fine. But, suppose, if i send a fake flv url it throgh an Exception connectionerror and after then it gets stuck e.g. after connectionerror if i am trying to pass a proper flv path it does not trigger ready event or any exception Any Ideas ? -- Regards, Nadeem Manzoor
[flexcoders] VideoDisplay inconsistent behavior, it gets Stuck
Hello Guys I am working on a Flex Media application. I am sending Flv path through Javascript. Everythings is working fine. But, suppose, if i send a fake flv url it throgh an Exception connectionerror and after then it gets stuck e.g. after connectionerror if i am trying to pass a proper flv path it does not trigger ready event or any exception Any Ideas ? -- Regards, Nadeem Manzoor
Re: [flexcoders] VideoDisplay inconsistent behavior, it gets Stuck
First I was going to say you have to put that in a try..catch block, except accessing an invalid URL won't throw the exception in a way the try..catch can work with. Can you add an event listener to your FLV loader similar to this post? http://www.kirupa.com/forum/showthread.php?p=1957547#post1957547 It's from quite a while ago so I don't know if it will be of much help... Michael Nadeem Manzoor wrote: Hello Guys I am working on a Flex Media application. I am sending Flv path through Javascript. Everythings is working fine. But, suppose, if i send a fake flv url it throgh an Exception connectionerror and after then it gets stuck e.g. after connectionerror if i am trying to pass a proper flv path it does not trigger ready event or any exception Any Ideas ? -- Regards, Nadeem Manzoor
Re: [flexcoders] VideoDisplay inconsistent behavior, it gets Stuck
Thanks for reply. It is really useful to use try catch but in my case it doesn't work, so here is my question Is it possible to check a URL is valid before even loading the file? for example i get an flv path from Web service, before setting this path as a source of Video Display component, i want to check whether the file exists or not But i don't want to load that file. When i got a confirmation that the file exists, i will pass that URL to VideoDisplay Component. So Guys is that possible or is there any other technique ? On 11/28/07, Michael Wills [EMAIL PROTECTED] wrote: First I was going to say you have to put that in a try..catch block, except accessing an invalid URL won't throw the exception in a way the try..catch can work with. Can you add an event listener to your FLV loader similar to this post? http://www.kirupa.com/forum/showthread.php?p=1957547#post1957547 It's from quite a while ago so I don't know if it will be of much help... Michael Nadeem Manzoor wrote: Hello Guys I am working on a Flex Media application. I am sending Flv path through Javascript. Everythings is working fine. But, suppose, if i send a fake flv url it throgh an Exception connectionerror and after then it gets stuck e.g. after connectionerror if i am trying to pass a proper flv path it does not trigger ready event or any exception Any Ideas ? -- Regards, Nadeem Manzoor -- Regards, Nadeem Manzoor
[flexcoders] VideoDisplay smoothing
I saw a post on the cookbook beta about smoothing the VideoDisplay but unfortunately it doesn't work out of the box. There's a call to videoPlayer.smoothing which obviously doesn't exist. After removing that, event extending VideoDisplay and using the _smoothing property, it doesn't smooth the video. Has anyone gotten this to work, and how did you manage to do it? thanks! jon
[flexcoders] VideoDisplay volume problem
I am having an issue with a VideoDisplay. It seems to ignore any volume setting I set. I have tried to set it to 0 at many different places and times in my code and every single time I can still hear the audio when the video starts. Has anyone else had this issue? Does anyone have a workaround? Thanks, Paul
[flexcoders] VideoDisplay over RTMP w/ autoRewind
Hi everyone, I'm having the following problem and thought I would throw this out there to see if someone has also had it and maybe found a solution. Even a confirmation that someone else has had it would let me know I haven't done anything too crazy. Anyway, I'm trying to play an FLV video over RTMP (not a live stream) with the following code: mx:VideoDisplay id=videoPlayer bufferTime=1 width={this.width} height={this.height - 20} x=0 y=0 autoPlay=false autoRewind=true autoBandWidthDetection=false maintainAspectRatio=true / I am setting the source of the video in AS, but the problem I am having is when the stream finishes playing, it acts as though it rewinds real quick and jumps to the end. It is as if the stream is cached and the video display thinks it is still playing, so it jumps to the end right after it rewinds. Maybe the RTMP server is still sending data at the end of the stream? Anyway, I have a YouTube similar play button overlay and controls attached to this video display, so it ends up looking like it just messes up at the end of the video and goes back to the end. What's more wierd is it does it over again if you keep waiting. This only happens with RTMP; works perfect with an FLV on the server via HTTP, local files, etc. Any ideas? Thanks in advance and I'll look forward to answering more questions than I'm asking in the future, Mike. P.S. I'm sorry if some my messages have been coming in twice. It appears that sending an email to flexcoders@yahoogroups.com won't post my message.
[flexcoders] VideoDisplay bug?! How to extend to change a private variable?
Hi, I would normally spend more time trying to work this out first, but I'm under a bit of pressure... There appears to be a bug in the VideoDisplay code. vid.close() = within the videoDisplay a private variable called closeCalled is set to true. vid.play() = the closeCalled variable is set to be false in the play function. Fine, but: vid.close() = closeCalled=true vid.load() = loadVideo() vid.play() = if (closeCalled==true) {loadVideo()} So if you load in the video this variable is not reset to false. This means that the video gets loaded twice; once when the video is loaded and once when the video is played... Anyway, all this is besides the point... I just want to know how to get around this. I've tried this: package libraries.utility { import mx.controls.VideoDisplay; public class NewVideoDisplay extends VideoDisplay { //private var closeCalled:Boolean = false; public function NewVideoDisplay() { super(); } override public function load():void { super.load(); closeCalled = false; } } } but naturally I cannot access the private variable closeCalled. How do I go about doing this? Thanks in advance Bill
Re: [flexcoders] VideoDisplay volume problem
Hi David, the problem is based on the conditional in the VideoDisplay function set volume... I had to track this down and found a temporary workaround.. package com.iahh.teaser.ui { import mx.controls.VideoDisplay; public class IAHHVideoDisplay extends VideoDisplay { public function IAHHVideoDisplay() { //TODO: implement function super(); } override public function set volume(value:Number):void { // change value by just a touch to trick the super class into taking it. super.volume = value+0.1*Math.random(); } } } I created a subclass that I have tied into my mxml file using a new namespace and just override (overrode) the volume setter. it does the trick for me. btw, the random is needed to insure that you can set the same value, like 0 at every new source attachment. cheers, Julian On Mar 9, 2007, at 7:57 PM, David Gassner wrote: Using the VideoDisplay component, it seems that setting the volume property doesn't have any effect. For instance: mx:VideoDisplay id=video volume=0/ results in playing the video, but the sound is still there. I've also tried setting the volume to 0 just before playing, and even calling SoundMixer.stopAll(), but I can't seem to turn the sound off. Any ideas? Thanks, David
[flexcoders] VideoDisplay volume problem
Using the VideoDisplay component, it seems that setting the volume property doesn't have any effect. For instance: mx:VideoDisplay id=video volume=0/ results in playing the video, but the sound is still there. I've also tried setting the volume to 0 just before playing, and even calling SoundMixer.stopAll(), but I can't seem to turn the sound off. Any ideas? Thanks, David
[flexcoders] VideoDisplay help
do you know how can access the onMetaData, from VideoDisplay component. i use the VideoDisplay to play a stream flv file from a FVS, and i have problem with this component from Flex on buffering percent left from 100%, and with metadata :( i search for information on doc's flex, googleing on the net... but don't find a userful article or tutorial in this way: VideoDisplay + streaming file from FMS. thx ~ ~~ ( John - Lost in Design ) ~ ~ - Original Message From: Tom Chiverton [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, March 2, 2007 3:20:54 PM Subject: Re: [flexcoders] Re: MenuBar Question (Relating to Styles) On Friday 02 Mar 2007, nextadvantage wrote: Try setting the menu bar color: to white in the style explorer and you will see that it changes the bar color text to white and the drop down text to white making it un-readable. Aaron Even if you change the background color to be not-white ? :-) Play with it till you get something you like. -- Tom Chiverton Helping to authoritatively integrate high-end eyeballs On: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com
Re: [flexcoders] VideoDisplay help
I'm afraid the metadata is missing in the VideoDisplay component, or better yet, they forgot (?) a piece of code in the VideoDisplay class. [Event(name=metadataReceived, type=mx.events.MetaDataEvent)] and [Bindable(metadataReceived)] You can listen to the metadataRecieved event through actionscript though, without modifying the VideoDisplay.as (which isn't a good idea anyways) videoInstance.addEventListener(metadatReceived, metadataReceivedHandler) uses: mx.events.MetadataEvent; But the MetadataEvent class does not have a static property for metadataReceived. Well it does, but's it's put under the mx_internal namespace :( mx_internal static const METADATA:String = metadataReceived; Not sure why Adobe didn't make metadata public and bindable.. regards, Muzak - Original Message - From: john [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, March 02, 2007 4:21 PM Subject: [flexcoders] VideoDisplay help do you know how can access the onMetaData, from VideoDisplay component. i use the VideoDisplay to play a stream flv file from a FVS, and i have problem with this component from Flex on buffering percent left from 100%, and with metadata :( i search for information on doc's flex, googleing on the net... but don't find a userful article or tutorial in this way: VideoDisplay + streaming file from FMS. thx
[flexcoders] VideoDisplay won't load first frame
I have a VideoDisplay component, and I've declared it's 'source' properly, I also do a myVidDisplay.load() when the component hits creationComplete. I have autoPlay disabled, you need to hit a play button to initiate the myVidDisplay.play() call... Unfortunately, the first frame of the video refuses to load and I am left with a blank screen. Any ideas? Thanks, Brian Dunphy
Re: [flexcoders] VideoDisplay won't load first frame
Try calling myVidDisplay.load() in the 'ready' event handler instead of the 'creationComplete' event handler. regards, Muzak - Original Message - From: klumikaze [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, February 12, 2007 4:17 PM Subject: [flexcoders] VideoDisplay won't load first frame I have a VideoDisplay component, and I've declared it's 'source' properly, I also do a myVidDisplay.load() when the component hits creationComplete. I have autoPlay disabled, you need to hit a play button to initiate the myVidDisplay.play() call... Unfortunately, the first frame of the video refuses to load and I am left with a blank screen. Any ideas? Thanks, Brian Dunphy
[flexcoders] VideoDisplay Help
Hoping someone out there will be able to help me with this. The VideoDisplay component uses a VideoPlayer object, which doesn't seem to exist in Actionscript 3. How can it be used in the VideoDisplay component, and how can I use it? I am writing an app and want to have the ability to play a flv frame by fram, or jsut to a frame and know the current frame. All of this funtionality is provided by the VideoPlayer object, but can't be used in Actionscript 3. When I finally figured out that the calss didn't actually exist anymore, I started looking for something else and came across the MovieClip object which provides all the same functionality. Problem is I can't find anyway to load an flv, I tried using Netstream and such, adding to a Video object and trying to add that to the MovieClip but can't seem to make it work. Any Suggestions?
Re: [flexcoders] VideoDisplay playheadTime problem
I had the same problem.I traced the videoDisplay.bytesLoaded and videoDisplay.bytesTotal.I noticed that if all the bytes had been loaded then u can forward the videofreely, other wise, the videoDisplay only forward 5or6 frames. 2006/8/9, bal_ketan [EMAIL PROTECTED]: I have a VideoDisplay component on my page. I need a forward functionality for the video. When i click on forward button it should go to the last frame of the video and stop there. Heres my code: myVideo.playheadTime = myVideo.totalTime; myVideo.validateNow(); myVideo.pause(); // not using stop since it will go to frame zero. When i click on forward it just goes 5 or 6 frames ahead and then pauses. If i remove the pause statement and keep clicking then it just goes on jumping 5 - 6 frames ahead and starts playing from there. Can anybody help pls. ? Ketan. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] videodisplay no bitrate match follow up
I lost the original post but I thought this might help whoever it was, or someone else. I was going nuts trying to figure out why I couldn't get even the example videodisplay code to show my flvs when they were on the server. I kept getting this no_bitrate_match 1001 error with the compile. The fix that I found is here: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19439 hth Impudent1 LeapFrog Productions -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] VideoDisplay and Flash 8 skin components
Is it possible to use the skins from the Flash 8 designer skin components with a flex VideoDisplay, or do the different versions of actionscript prevent this? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] VideoDisplay playheadTime problem
I have a VideoDisplay component on my page. I need a forward functionality for the video. When i click on forward button it should go to the last frame of the video and stop there. Heres my code: myVideo.playheadTime = myVideo.totalTime; myVideo.validateNow(); myVideo.pause(); // not using stop since it will go to frame zero. When i click on forward it just goes 5 or 6 frames ahead and then pauses. If i remove the pause statement and keep clicking then it just goes on jumping 5 - 6 frames ahead and starts playing from there. Can anybody help pls. ? Ketan. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] VideoDisplay control
Can we write to the playheadTime property of the VideoDisplay control in Flex to jump forward or backward during play mode of the .flv video? I can assign a new value to this property, but then the playing of the .flv doesn't seem to jump correctly. Or is there a right way to jump section when playing .flv video? Thank you -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] VideoDisplay extendable ?
Hi im tryingt to extend the VideoDisplay flex component, however im trying to work out how to inherit its NetConnection properties, obviouslly its using it, but i cant work out where ? let me know. Daniel -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] VideoDisplay Problems
I've discovered that if you load an invalid source into the VideoDisplay it will no longer work even if you change the source to a valid one later and will get the Error:1000 if you try to issue a Play() command. Might be a clue on how to work around your video problems. And of course if anyone has a way make a VideoDisplay work after it has been corupted with an invalid path I would be interested in hearing it. -Adam I am having this same problem, but I am just playing videos off my local computer. I have a listBox with several items in it. When you selct on of the items it loads a new video into my VideoDisplay component. Some times it has an error, other times it does not. I think it is a sync issue, but I am not sure how to solve it. Anyone make any progress on this issue? Error: 1000: No bitrate match at mx.controls.videoClasses::VideoPlayer/seek() at mx.controls::VideoDisplay/::autoPlaying() at mx.controls::VideoDisplay/set source() at VideoSelection/videoSelectListFunc() at VideoSelection/__videoSelectList_change() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::mouseUpHandler() at mx.controls::List/mx.controls:List::mouseUpHandler() --jason --- In flexcoders@yahoogroups.com, Bhavin Padhiyar bhavin_kp@ wrote: hi abdul, Actually problem is that videodisplay is not accepting source value when I host application to remote server. Even I set crossdomain policy on server. Is there any security problem or what ?? Abdul Qabiz abdul.qabiz@ wrote: Have you set hardcoded value for the bitrate? -abdul On 6/21/06, Bhavin Padhiyar bhavin_kp@ wrote: hi Tom It is givinging me error of no bitrate match Error: 1000: No bitrate match at mx.controls.videoClasses::VideoPlayer/play() at mx.controls::VideoDisplay/play() at Support/::toggle() at Support/___Button1_click() Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] VideoDisplay Problems
Kill it. It's possible to get corrupted MovieClips, so I'm sure if you pass garbage data into something and it can't filter it out, your best bet is to make a new one. Try using a catch for the 1k error, and if so, remove it from the display list, remove it's listeners, and delete the mofo. Then, create a new one. - Original Message - From: alpharythms [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, July 18, 2006 6:18 PM Subject: [flexcoders] VideoDisplay Problems I've discovered that if you load an invalid source into the VideoDisplay it will no longer work even if you change the source to a valid one later and will get the Error:1000 if you try to issue a Play() command. Might be a clue on how to work around your video problems. And of course if anyone has a way make a VideoDisplay work after it has been corupted with an invalid path I would be interested in hearing it. -Adam I am having this same problem, but I am just playing videos off my local computer. I have a listBox with several items in it. When you selct on of the items it loads a new video into my VideoDisplay component. Some times it has an error, other times it does not. I think it is a sync issue, but I am not sure how to solve it. Anyone make any progress on this issue? Error: 1000: No bitrate match at mx.controls.videoClasses::VideoPlayer/seek() at mx.controls::VideoDisplay/::autoPlaying() at mx.controls::VideoDisplay/set source() at VideoSelection/videoSelectListFunc() at VideoSelection/__videoSelectList_change() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::mouseUpHandler() at mx.controls::List/mx.controls:List::mouseUpHandler() --jason --- In flexcoders@yahoogroups.com, Bhavin Padhiyar bhavin_kp@ wrote: hi abdul, Actually problem is that videodisplay is not accepting source value when I host application to remote server. Even I set crossdomain policy on server. Is there any security problem or what ?? Abdul Qabiz abdul.qabiz@ wrote: Have you set hardcoded value for the bitrate? -abdul On 6/21/06, Bhavin Padhiyar bhavin_kp@ wrote: hi Tom It is givinging me error of no bitrate match Error: 1000: No bitrate match at mx.controls.videoClasses::VideoPlayer/play() at mx.controls::VideoDisplay/play() at Support/::toggle() at Support/___Button1_click() -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] VideoDisplay and getting metadata
mx:VideoDisplay metadataReceived=setMetaData(Object).../this works and I'm able to receive the event, but there's no docs on the tye of event object sent back and what I can work with etc. Does anyone have sample code I can look at? setMetaData gets called but all I see for the trace is [class Object]. If I try to take a look at the info property, it's nullThanks!-- John Grden - Blitz -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.