Actionscript 3 :: AddCuePoint With Netstream?

Sep 2, 2010

Is it possible to add cue points using as3 and I will not be using FLVPlayback component.

I want my flv or netstream object to call a fucntion after 7 or 16 second or at any specified time during playing. i found addAsCuePoint the only way to do it.

If there is any other way to accomplish this task then i will not be using cue points..

View 1 Replies


Similar Posts:


Flash :: NetStream.Buffer.Full Not Fired After Call To NetStream.pause?

Jul 6, 2011

I'm making a small video players in AS3, and I've found that after calling NetStream.pause() or NetStream.togglePause(), no status messages are being fired any more.If I click the "pause" button while the video is buffering, I never get the Buffer.Full message.Here is some code:

_connection = new NetConnection();
_connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
_connection.connect(null);[code].....

View 1 Replies

ActionScript 3.0 :: Error On BitMapData.draw() After NetStream.pause() Then NetStream.seek()

Feb 25, 2010

I am working on an app that will take a snapshot of an rtmp stream of an archived video, save it to a file, and ExternalInterface the file name to the hosting page to javascript it up for display.

I actually have all pieces working great. The only time an error is thrown is when I pause the video, seek to somewhere, and then try to take a snapshot. Then there is a runtime error of:
SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: mySwf.swf cannot access rtmp://myFlashServer/myApp. No policy files granted access.I've seen post after post of suggestions and have tried them, but without success.

I have the crossdomain.xml and my FlashMediaServer security setup fine (it is actually working, except for this one glitch). It just seems to be the pause-then-seek-then-BitMapData.draw() combination which is creating issues.

Another weird thing: after the error is thrown, if I resume the stream and take a snapshot, it works flawlessly again.

View 5 Replies

ActionScript 3.0 :: Error: "NetStream.Play.StreamNotFound" While Playing Mp4 File Using NetStream Object?

Jan 7, 2010

I am using NetStream, NetConnection and Video object to play an mp4 file which is hosted over a web server using http.This is an AIR application and the relevant code is pasted below:

var url:String = <some http url>;
connect_nc = new NetConnection();
connect_nc.connect(null);

[code]........

View 0 Replies

Actionscript 3 :: NetStream.info, Getting Error #2154 "The NetStream Object Is Invalid"

Mar 20, 2012

In my application I have a video playing from a NetStream. Every second on timer I update a text label with statistics like stream.info.currentBytesPerSecond. The problem occurs when the NetConnection associated with this NetStream closes: the getter for stream.info throws

[Code]...

View 1 Replies

ActionScript 3.0 :: NetStream.Connect.Closed - Know Which NetStream Has Been Closed

Aug 2, 2010

A NetStatusEvent with info.code of "NetStream.Connect.Closed" is dispatched by NetConnection when a NetStream is closed. This seems kind of weird, shouldn't the NetStream dispatch the event? how do I know which NetStream has been closed if I have more than one running (which I do)? I need to know so I can cleanup the now dead stream.

View 1 Replies

ActionScript 3.0 :: How To Use Netstream

Aug 17, 2009

I want to create netstream obj which will connect to wowza server ?

View 3 Replies

ActionScript 2.0 :: Using Cue Points With NetStream?

Mar 9, 2010

I have a video with 2 embedded cue points (event). The video player uses NetStream and is NOT a FLV Playback component. I can trace them and see both name and time with this:

[Code]...

View 1 Replies

ActionScript 3.0 :: Use NetStream Or FLVPlayback?

Aug 22, 2010

I'm currently on a project where to build a site with with several video-clips being played and reached from a menu. The video-files will be in FLV-format.I've done some video solutions in flash a few years ago but this time it will be in CS5 (AS3) and I'm not sure which solution that will suite this project best.The video clips must run smooth and I guess we'll need some cuepoints and buffering to make the transitions from the user inputs smooth. I think they need some MovieClips on top the videopart as well for navigation/information.

Should I use the NetStream-way or use the FLVPlayback-way? I got some demo-video-files yesterday and I ran an example using the FLVPlayback-method and it showed up smoothly but is this the way to go?Why would you use either NetStream or FLVPlayback?

View 5 Replies

ActionScript 3.0 :: Add A Seekbar To My Netstream?

Nov 27, 2009

I'm trying to figure out how I can add a seekbar to my netstream.I have the duration of the flv through metadata and the current time of the stream, but I can't understand how I should connect them to pass a position to a seek handler. And allso to be able to drag the handler to positions in the stream.

View 1 Replies

Flex - Get The Name From A NetStream Object?

Dec 2, 2010

In a Flex NetStatusEvent of type NetGroup.MulticastStream.PublishNotify, you get the String name of the stream in e.info.name

The name is what the publisher specified in the .publish ("") method. But in a NetStatusEvent of type NetStream.Connect.Success, there is no such property. Instead, the whole NetStream object is available through e.info.stream

How the heck to you get something as basic as the name from the NetStream object? e.info.stream.name does not exist. I must be overlooking something very simple.

View 1 Replies

Flex :: Can't Mute A NetStream?

Apr 26, 2011

I'm creating a video chat app using Flash Media Server 4 and Flex, using RTMFP for peer-to-peer.No matter what I try, I cannot mute a user's NetStream. I tried receiveAudio(false) and that does not work. I tried capturing the stream SoundTransform and setting the volume of that to 0, that does not work.I tried setting the mx VideoDisplay volume to 0 and that does not work.I can set the alpha of the VideoDisplay, so its really strange that I cannot set the volume.BTW, I am not trying to mute the mic of the user who launched the app, that I can do. I'm trying to mute one of the other users stream in the Flex app, that way the app makes it possible to not hear people who are perhaps being offensive.

View 1 Replies

ActionScript 2.0 :: Preload SWF + Flv's NetStream

Oct 22, 2009

The code above is my standard preloader for swf, I use it since long time and its all working, I managed above the script another one that load the flv?s that I use in the array. The two are working but my need is that the container only start to play the module after all the flv?s have been loaded to the cache.

One thing to note is that in the second script the array is playing the flv?s when should be only load, I?ve try to give a ns.pause(); but if I do that the array dont get to the end of it.

View 9 Replies

ActionScript 3.0 :: NetStream Buffer In IE?

Oct 27, 2009

i've a very strange problem with a NetStream Buffer only in Internet Explorer (flash player version 10,0,32,18). When I connect to a netstream I use this:

var videoOpe:Video=new Video();
var stream="name live stream";
var nsOpe = new NetStream(nc); //nc is an active netConnection
nsOpe.bufferTime=1;
nsOpe.client=this;

[Code]...

View 1 Replies

ActionScript 2.0 :: Using Netstream From A Class?

Jan 28, 2010

I'm trying to play an FLV on a video instance on the stage called my_video. This works as frame code the timeline, but when I use it as a class it loads the video but gets stuck on the first frame.

Here is my code

Code:
private var my_video:Video;
private function loadVid(mc:MovieClip)
{

[Code].....

View 3 Replies

ActionScript 3.0 :: Set CuePoint To NetStream?

Feb 8, 2010

Currently I'm using a rtmp server to streaming a video (m4v format), and now I need to set a cuePoints to call this one.

The problem is,

I'm using a simple video playback with NetStream and NetConnection, till here its okay, the video is streaming correctly, now appears the necessity to show some graphics in middle of the video.

How can I set the cuePoint name? addCuePoint()? The simple video player support it?

View 1 Replies

Actionscript 2.0 :: Use Cue Points With NetStream?

Mar 9, 2010

I have a video with 2 embedded cue points (event). The video player uses NetStream and is NOT a FLV Playback component. [code]...

That action will also do the loadMovie, so I know the loadMovie part works. But since there are 2 cue points the loadMovie fires with each cue point... not what I had in mind.

I just don't know how to get the loadMovie to fire outside of that function. I've tried this[code]...

View 1 Replies

ActionScript 2.0 :: XML Cue Point With Netstream Flv

Jul 8, 2008

I have flv's in the new H264 codec which apparently cannot have meta data cue points embedded like you would using Flash video encoder. I'm using Netstream in a custom player. Any suggestions how I would go about using XML cue points with Netstream? How would the playhead time trigger a search of the xml file?

View 2 Replies

ActionScript 3.0 :: One Netstream To Many Videos?

Oct 20, 2011

Is it possible to connect one Nestream (live from FMS) to many Video objects? So all the video objects on the stage show the same netstream.

View 1 Replies

IDE :: Can't Get Netstream Buffer To Preload

Apr 8, 2010

I'm trying to make a preloader for the buffer for a 19MB video. I can trace everything, but the math won't do.

Preloading the video itself is no problem. But what I want is to make a xx% preloader for the buffer of this video.[code]...

View 4 Replies

ActionScript 3.0 :: AddASCuePoint With Netstream?

Aug 4, 2010

I am going to be upset if you cannot use addASCuePoint (or a similar method) with the netstream object.Ive done a bit of googling and that is what I am seeing. Apparently it only works with the FLVPlayback component, but I havent seen any official docs stating that. Anyone have experience with this?

View 3 Replies

ActionScript 3.0 :: Using The NetStream Class?

Aug 6, 2010

I have a few questions about the net stream class..Lets start with the first one I have a netStream class that is basically set to default property values I am loading a video file off the local hard drive.Now once this video starts playing, I get NetStreamEvents constantly firing.. extremely rapid pace.

NetStream.Buffer.Full
NetStream.Buffer.Flush
NetStream.Buffer.Full

[code]....

It just keeps filling up and then flushing itself, but the video plays smoothly so to the end users nothing is wrong..

View 1 Replies

ActionScript 3.0 :: Pass Netconnection To Netstream?

Apr 30, 2009

I should probably be refrencing a book rather than continueing to ask questions here but there are no books for AS 3.0 and flash media server. So this forum is my book i suppose any way here is what i have...I have 2 .as files one holding code for a netConnection and one for creating the netStream my problem is i need to pass the netConnection refrence from the netConnection.as file to the netstream....here is my failed attempt to do so I also get the following error message..ArgumentError: Error #2126: NetConnection object must be connected.

[Code]...

View 3 Replies

ActionScript 3.0 :: Multiple Instances Of Same FLV Using Netstream?

Aug 4, 2009

As you can see, after all the items in the Carousel have loaded, a function called fadeItemIn() is called which displays each of them one by one. I am looking to call a small "swoosh" particle effect flv I made in AfterEffects so that as each item tweens in, it instead looks like it is sparkling in from the left.

The problem I have is that using the code below, the swoosh.flv file tends to freeze before it finishes. In this case the swooshIn() function is called three times because there are three items being loaded into the Carousel.

I am wondering why the FLV freezes when multiple instances of it are loaded through AS3 using NetStream.

Code:

private function fadeItemIn(item:CarouselItem):void {
trace("fadeItemIn");
this.tweens.push(new Tween(item, "altitude", Regular.easeOut, item.altitude, 2.5, 0.50, true));

[Code].....

View 1 Replies

ActionScript 3.0 :: NetStream Instance With FLVPlayback

Oct 27, 2009

I want to utilize the FLVPlayback component so I don't have to create my own skins and the documentation says the FLVPlayback class "wraps" the VideoPlayer class and ALL the methods/props available in the VideoPlayer class are available to the FLVPlayback class, BUT I notice the FLVPlayback class doesn't inherit or subclass the VideoPlayer class and some of the methods/props for the VideoPlayer class generate errors when utilized by the FLVPlayback class.

In short, I want to take a NetStream instance that has the stream I want to utilize and force that on the FLVPlayback instance. I can get it to work with the VideoPlayer instance BUT NOT the FLVPlayback instance. I don't want to set the FLVPlayback instance's "source" property with a string as the documentation suggests, I want to do something like:

Code: flvPlaybackComp.attachNetStream(stream); how can I accomplish this? I've seen the "getVideoPlayer" method on the FLVPlayback class and thought that might be a "round about" way of controlling the underlying VideoPlayer instance, but haven't gotten that to work properly.

View 3 Replies

ActionScript 3.0 :: Convert From FlvControl To Netstream?

Mar 30, 2011

How hard is it to flip from using import fl.video.*; and flvControl to a netstream process?

View 1 Replies

ActionScript 3.0 :: SWF Crashs Due To Live Netstream

Aug 20, 2011

My video player keeps crashing. Works fine on pre-recorded video streams but when I try and connect to a live video stream it crashes. This is happening in the browser and in the Flash application. No idea how to debug. If I remove the live netstream the player works fine. Am I missing something with the setup for a live stream?

[Code]....

View 11 Replies

ActionScript 3.0 :: H.264 .mov And NetStream.seek Not Working?

Apr 6, 2009

When working with MOV files using the h.264 codec and AAC sound I am unable to get netStream.seek to work correctly. No matter what argument I pass to netStream.seek it will always seek to 0. I have this problem on both a legacy as2 and a newer as3 video player I have built. Regular flvs work perfectly on both players.

View 1 Replies

ActionScript 3.0 :: Deleting NetStream/NetConnections If Not Used?

Sep 18, 2008

Is it possible to write some code that would search to see if a NetConnection and a NetStream object exists in the scene, and if so to delete them (or *.close(); or whatever)? I would like to be able to 'see' (with traces) these 'non-visible' sorts of objects to have a better handle on when/how/where these things are created .The same goes for all of these *.addEventListener's that I keep creating all over the place in AS3.Is there a way to step through all these 'hidden' objects in a scene and get some sort of status on them?

View 7 Replies

Media Server :: NetStream Seems To Never Connect?

Jul 30, 2009

I'm trying to make an application that streams audio from an audio stream, but the NetStream seems to never connect. I don't have Flash Media Server.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved