[flexcoders] What exactly is an "illegal cue point", how do I fix?
I'm getting an error that says: "illegal cue point: Time must be number and/or name must not be undefined or null". Here is the line that sets the cue points. pubVideo.cuePointManager.setCuePoints(actionVideo[0]) I've checked the actionVideo array and all entries have a valid time and name. However, there are some times that are the same. I thought they might be the problem so I add .1 to the time so there are no duplicates and it still gives the same error. This error occurs in: getCuePointIndex(cuePointArray:Array, closeIsOK:Boolean,time:Number, name:String,start:Number, len:Number):Number And here the time is NaN and name is null. Are there any rules about setting cue points that I should know about that might give this error? Many thanks!
[flexcoders] How do I connect to a live h.264 stream?
I'm streaming with the Flash Media Encoder and want to test the h.264 stream but I don't know how to set up the player or URL. I've tried rtmp://myserver/app/livestream (which works with regular encoding). Thanks, sr
[flexcoders] Re: Example of writing metadata in synch with video?
Actually, I was a little confused on both. I'm using cue points but the article I referenced was talking about the ability to do a similar thing with metadata. However, it appears that it was using the Flash Media Encoder to do it. Very good links btw, thanks! Steve --- In flexcoders@yahoogroups.com, "greg h" <[EMAIL PROTECTED]> wrote: > > Hi sr, > > Can you provide more details on your requirement? > > For instance, metadata embedded in the FLV? Or ActionScript cue points? > > For ActionScript cue point, the amazing Peter deHaan has put up these three > Flex examples (Note: the first two links have the generated swf running > below the code): > http://blog.flexexamples.com/2007/08/09/dynamically-creating- actionscript-cue-points-from-flashvars-received-from-the-html- container/ > > http://blog.flexexamples.com/2007/08/12/dynamically-creating- actionscript-cue-points-from-flashvars-loaded-using-the-httpservice- tag/ > > http://blog.flexexamples.com/2007/07/29/creating-actionscript-cue- points-with-the-videodisplay-control/ > > > For a brief intro on embedded cue points, see this section in the docs > (Flash CS3 docs, but it is all the same with Flex): > http://livedocs.adobe.com/flash/9.0/main/0561.html > > *Please post back regarding whether the above answers your question, and if > you find it helpful :-)* > > Best regards, > > g >
[flexcoders] Re: Example of writing metadata in synch with video?
I should have also said that I've seen the example with Flash CS3 but I'm using Flex Builder 3 and can't figure out how to modify it to make it work. In the program I'm using to write the metadata, I have: private function sendMetadata(oData:Object):void { // this function called multiple times nc.call("sendDataEvent",null,oData); } In the main.asc I have: Client.prototype.sendDataEvent = function(oData) { this.newStream = Stream.get("myStream"); this.newStream.send("onDataEvent",oData); trace('here'); // shows in log }; In the player application I have: public function onDataEvent(event:MetadataEvent):void { trace('here'); // hit once with the starting metadata } Thanks for any advice or direction, sr --- In flexcoders@yahoogroups.com, "stephendricketts" <[EMAIL PROTECTED]> wrote: > > Does anyone know where I can find an example of writing custom metadata > so it's linked to the timeline of a video? > > Much appreciated, > > sr >
[flexcoders] Example of writing metadata in synch with video?
Does anyone know where I can find an example of writing custom metadata so it's linked to the timeline of a video? Much appreciated, sr
[flexcoders] Best approach for playback of live session with remote shared objects?
I have an application that records live audio/video and throughout the session data is changed in remote shared objects which trigger certain events. Different people will change the information in the shared object at different times. I'd like to playback the video and have the information in the shared objects trigger the same events in synch with the .flv. I'm thinking I will just timestamp the information that goes into the shared and store it in a database. Then during playback just make the same changes to the shared object again based on the video's position. I'm new to Flex and wondering if there isn't a better way. Any ideas would be very much appreciated. Thanks, sr
[flexcoders] Change position and size of a VideoDisplay Component?
Can anyone tell me how to reposition a VideoDisplay component? I can find the height and width but don't know how to access the x, y. Thanks, Steve
[flexcoders] Re: Changing video sources in the middle of the... er.. stream
Is there an example of a way to have a video display without using the VideoDisplay component? Maybe that would work here. sr --- In flexcoders@yahoogroups.com, Simon Bailey <[EMAIL PROTECTED]> wrote: > > Oh sorry didnt realise you were using VideoDisplay, sorry never use or > used that component.. > > :S > > On 2 Sep 2008, at 22:21, stephendricketts wrote: > > Actually, I thought about that but found that the VideoDisplay didn't > have that as a method so I found an example that used: > > import mx.core.mx_internal; > > In the program I wrote... > > pubVideo.mx_internal::videoPlayer.clear(); > pubVideo.attachCamera(cam); > > But that didn't have any effect on the VideoDisplay display. Don't > know if I did that right but nothing yelled at me. ;-) > > sr > > --- In flexcoders@yahoogroups.com, Simon Bailey wrote: > > > > At a very quick glance, have you tried: > > > > videoObj.clear(); > > > > before assigning and attaching you NetStream to the video Object? > > > > Cheers, > > > > Simon > > > > newtriks.com > > > > On 2 Sep 2008, at 21:43, stephendricketts wrote: > > > > I have a FB3 application that streams live video to a number of > users > > and periodically needs to change whose sending video. The > > application pretty much has to work this way. > > > > Let's call the person that's sending the video the "host". > > Periodically they will switch hosts and let another user become the > > host and send their video. This works except when the video > > is "taken" the users see the new video source, but the video that's > > displayed on the new host's videoDisplay is a still picture of the > > first host. > > > > Can anyone point me to how this switching should be done?... or be > > willing to plow through my code and see where I've screwed up? It's > > been simplified as much as I can so it makes (some) sense. > > > > Any direction greatly appreciated! > > > > Steve > > > > Here's a condensed version of the code. I should also add, this is > > the same program for all users. The host is only a host because they > > were on first: > > > > 1. Initial Host connection: > > > > if(nc.connected){ > > nsPublish = new NetStream(nc); > > nsPublish.attachAudio(Microphone.getMicrophone()); > > nsPublish.publish("LS","live"); > > cam = Camera.getCamera(); > > if (cam != null) { > > nsPublish.attachCamera(cam); > > pubVideo.attachCamera(cam); > > addChild(pubVideo); > > } > > } > > > > 2. Initial User Connection: > > > > if (nc.connected){ > > pubVideo.source = rtmpPath + "/" + rtmpSession + "/LS"; > > } > > > > // At this point everyone is seeing what they should. > > --- > > 3. User Takes Control: > > > This is the same routine as was used when the host initially > connected > > --!> > > > > if(nc.connected){ > > nsPublish = new NetStream(nc); //Initializing NetStream > > nsPublish.attachAudio(Microphone.getMicrophone()); > > nsPublish.publish("LS","live"); > > cam = Camera.getCamera(); > > if (cam != null) { > > nsPublish.attachCamera(cam); // THIS SEEN ON ALL OTHER CONNECTIONS > > pubVideo.attachCamera(cam); // THIS NOT WORKING, STILL PICTURE!? > > addChild(pubVideo); > > } > > } > > > > live="true"/> > > > > So, the stream is really being published as everyone can see and > hear > > the new host. It's just on the new host's display they are seeing a > > still picture of the first host. Seems simple, but... > > >
[flexcoders] Re: Changing video sources in the middle of the... er.. stream
Actually, I thought about that but found that the VideoDisplay didn't have that as a method so I found an example that used: import mx.core.mx_internal; In the program I wrote... pubVideo.mx_internal::videoPlayer.clear(); pubVideo.attachCamera(cam); But that didn't have any effect on the VideoDisplay display. Don't know if I did that right but nothing yelled at me. ;-) sr --- In flexcoders@yahoogroups.com, Simon Bailey <[EMAIL PROTECTED]> wrote: > > At a very quick glance, have you tried: > > videoObj.clear(); > > before assigning and attaching you NetStream to the video Object? > > Cheers, > > Simon > > newtriks.com > > On 2 Sep 2008, at 21:43, stephendricketts wrote: > > I have a FB3 application that streams live video to a number of users > and periodically needs to change whose sending video. The > application pretty much has to work this way. > > Let's call the person that's sending the video the "host". > Periodically they will switch hosts and let another user become the > host and send their video. This works except when the video > is "taken" the users see the new video source, but the video that's > displayed on the new host's videoDisplay is a still picture of the > first host. > > Can anyone point me to how this switching should be done?... or be > willing to plow through my code and see where I've screwed up? It's > been simplified as much as I can so it makes (some) sense. > > Any direction greatly appreciated! > > Steve > > Here's a condensed version of the code. I should also add, this is > the same program for all users. The host is only a host because they > were on first: > > 1. Initial Host connection: > > if(nc.connected){ > nsPublish = new NetStream(nc); > nsPublish.attachAudio(Microphone.getMicrophone()); > nsPublish.publish("LS","live"); > cam = Camera.getCamera(); > if (cam != null) { > nsPublish.attachCamera(cam); > pubVideo.attachCamera(cam); > addChild(pubVideo); > } > } > > 2. Initial User Connection: > > if (nc.connected){ > pubVideo.source = rtmpPath + "/" + rtmpSession + "/LS"; > } > > // At this point everyone is seeing what they should. > --- > 3. User Takes Control: > This is the same routine as was used when the host initially connected > --!> > > if(nc.connected){ > nsPublish = new NetStream(nc); //Initializing NetStream > nsPublish.attachAudio(Microphone.getMicrophone()); > nsPublish.publish("LS","live"); > cam = Camera.getCamera(); > if (cam != null) { > nsPublish.attachCamera(cam); // THIS SEEN ON ALL OTHER CONNECTIONS > pubVideo.attachCamera(cam); // THIS NOT WORKING, STILL PICTURE!? > addChild(pubVideo); > } > } > > > > So, the stream is really being published as everyone can see and hear > the new host. It's just on the new host's display they are seeing a > still picture of the first host. Seems simple, but... >
[flexcoders] Changing video sources in the middle of the... er.. stream
I have a FB3 application that streams live video to a number of users and periodically needs to change whose sending video. The application pretty much has to work this way. Let's call the person that's sending the video the "host". Periodically they will switch hosts and let another user become the host and send their video. This works except when the video is "taken" the users see the new video source, but the video that's displayed on the new host's videoDisplay is a still picture of the first host. Can anyone point me to how this switching should be done?... or be willing to plow through my code and see where I've screwed up? It's been simplified as much as I can so it makes (some) sense. Any direction greatly appreciated! Steve Here's a condensed version of the code. I should also add, this is the same program for all users. The host is only a host because they were on first: 1. Initial Host connection: if(nc.connected){ nsPublish = new NetStream(nc); nsPublish.attachAudio(Microphone.getMicrophone()); nsPublish.publish("LS","live"); cam = Camera.getCamera(); if (cam != null) { nsPublish.attachCamera(cam); pubVideo.attachCamera(cam); addChild(pubVideo); } } 2. Initial User Connection: if (nc.connected){ pubVideo.source = rtmpPath + "/" + rtmpSession + "/LS"; } // At this point everyone is seeing what they should. --- 3. User Takes Control: