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


Similar Posts:


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.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

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 :: SoundMixer.stopAll(); Affecting NetStream  Event.info.code - Bug?

Sep 10, 2009

I'm loading and progressively streaming an F4V Video using pure actionscript code (No playback component used) and after the video begins streaming I place a MUTE button on the stage that when clicked executes the SoundMixer.stopAll(); instruction.
 
When the movie completes playing I use the following code to monitor the NetStream state changes and place a NEXT button on the stage when the video finishes.
 
When the video completes there is a NetStream event.info.code issued - "NetStream.Play.Stop"

[Code]...

View 2 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

ActionScript 3.0 :: How To Access Netstream Object Of Video

Jun 18, 2009

I am doing video.attachNetstream(ns) in the videoContainer's parent movieclip. How do I access the netstream object of the video inside the container. Basically, I want something like this : video.getNetstream(). Does any equivalent exist?

View 0 Replies

ActionScript 3.0 :: Closing Or Removing A Netstream Object

Jun 25, 2009

I have problem closing or removing a netstream object. the object is created in a class I wrote. that class is added to a sprite object. when I remove the sprite which the netstream is a child of the netstream still plays. I know I can use close() to close the netstream but the problem is that the object that removes the sprite does not know that there is a netstream object in the sprite.

View 2 Replies

ActionScript 3.0 :: Close A Netstream In A Loader Object?

Jul 20, 2009

I'm working on my portfolio, and I'm having a bit of trouble. I'm loading a custom made video player SWF into my main SWF, and it works well so far, but the NETSTREAM doesn't close when I remove the child after I return to the main menu, and the audio keeps going.

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

Media Server :: Error: Failed To Execute Method (NetStream)

Oct 29, 2010

I've googled this and come up empty. All I am trying to do is create a netstream and assign a group to it like so:
 
var netstream;
var groupSpec;
groupSpec = new GroupSpecifier("foo");
trace("groupSpec: "+ groupSpec);

[Code]...

If I remove the groupSpec optional parameter I successfully connect the NetStream. According to the docs [on this page] I should be able to identify a GroupSpecifier in the NetStream constructor.
 
Is this a bug? Is there another way to do this?

View 8 Replies

ActionScript 2.0 :: CS3 When Netstream Start Want An Object To Be Removed From The Stage?

Aug 12, 2010

I have two FLV files playing on the stage. The main FLV is instance is: MyVideothe 2nd is MyVideo2I have imported the videos using the wizard. The 2nd video is just a movie I created in Affter Effects that says...loading please wait....this is a really nice video and I don't want it to just use a standard preloader. Anyway, the goal is when the playback for "MyVideo" begins I would like "Myvideo2" to = visible = false;I have tried this many different ways and have been unsuccessful. I am obviously a newb at this. Also, does anyone know where I can get a list of all available eventListener actions...etc?

//var nc:NetConnection = new NetConnection();
//connection_nc.connect();
//var stream_ns:NetStream = new NetStream(connection_nc);

[code].....

View 1 Replies

Media Server :: Get The MetaData As Usual With NetStream Object?

May 14, 2011

I'm trying to get the metaData as usual with NetStream object from FMS but in RTMFP protocol but doesn't work.However, with RTMP my code (which is coming from onMetaData example in livedocs)it works.
 
Is it need any special metchod/properties to get the metadata with rtmfp ?

View 2 Replies

Flash :: Connect To Multiple Netstream In The Same Video Object?

Oct 16, 2011

Is it possible to have a same Video object ( and perhaps StageVideo) connected to multiple NetStream's objects? It's videoconferencing app, in which all members can speak ( So multiple audio sources) but should not hear themselves (that's why I don't join them in a single stream).

That's what I tried:

ns = new NetStream(nc);
ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
ns.client = this;
ns.play(streamName1);
ns2 = new NetStream(nc);

[Code]...

View 1 Replies

ActionScript 3.0 :: Detecting Audio In Netstream Object / Video

Jan 20, 2012

The task seems easy: I am loading a video via a netsream object (could be FLV or an h264 mp4) and I would need to check if this video has audio available (otherwhise sound control objects should be disabled or become hidden).

View 3 Replies

ActionScript 2.0 :: Video Object - Adding Cue Points To NetStream?

Feb 16, 2009

I have a video object inside a flash file. I am using NetStream to attach a video to the video object. How can I add cue points to the video ? Should I add a cue point to the video object or to the NetStream ? (I am using Flash 8.)

View 3 Replies

ActionScript 3.0 :: Error #1069: Property OnPlayStatus Not Found On Flash.net.NetStream

Jul 24, 2009

i am trying to create an MP3 player using AS3. when i competed my server-side and client-side coding i ran it. MP3 plays not more than 5 seconds and there occures a reference error.(ReferenceError: Error #1069: Property onPlayStatus not found on flash.net.NetStream and there is no default value.). what are the reasons for that errors? can i overcome it?

View 2 Replies

AS3 :: Flash - Detect NetStream Events With Video Object (not Component)

Jan 11, 2010

I have created a FLV video player using the AS3 flash.media.Video object (not the FLV playback component) and I am trying to listen for meta events and Cue Points embedded in the FLV video but I am not receiving any when I trace the movie. The cue points are not being created dynamically, they are in the FLV video.

Video embed code:
// Initialize net stream
nc = new NetConnection();
nc.connect (null); // Not using a media server.

[Code]....

Is there anything I am missing have wrong to capture events from my net stream?

View 2 Replies

Flash :: Use One NetStream Object To Feed Two Video Objects Simultaneously?

Oct 27, 2010

I'm trying to attach a single NetStream Object to two separate Video objects instead of pulling redundant streams from the server. The expected behavior would be for both Video's to display the same content. However, it seems that the last video I attach the NetStream to is the only Video that will display the content.Has anyone else run into this? I'd rather not go to the inelegant steps of using BitmapData to clone pixels if I don't have to.

View 2 Replies

ActionScript 3.0 :: Attach Only Simple Object Data Type To Netstream

Aug 18, 2009

I want to attached simple object data type which is holding string to netstream object. i dont want to attached any audio video data. only simple text data want to add in netstream obj.

View 0 Replies

ActionScript 2.0 :: Video Paused When Loading Via NetStream Object Within A Function

Apr 1, 2006

I'm having a problem loading an FLV file via the NetStream object.

The following is on frame 1 of my root timeline:

Code:
loadMovieClip();
function loadMovieClip():Void {
// Create new NetConnection object

[Code]....

The code is EXACTLY the same, except it isn't within a function, yet the latter example plays the video correctly, and the first example doesn't.

View 2 Replies

Flash :: NetStream Object Buffer Fails To Fill And Video Just Freezes?

Nov 22, 2011

I have a Net Stream object that I am using to stream video from an Amazon Flash Media Streaming service.The video makes a connection and plays fine but randomly it seems to just freeze and the only way to get it to work again is to re-establish the connection. I have tried to put other videos in that amazon bucket as well and they seem to play fine. this happens when it is in .FLV form and .mp4 format.

I have set the buffer time to be 5 seconds and i watch the output of the buffer to see the % of full it is. when the problem occurs the buffer 5 goes from 100 to 0 and then it throws a Buffer fail error (i'm using OVP framework).I have come to the conclusion that it is either a video encoding problem or perhaps there is a firewall issue that blocks the data from getting through.

View 1 Replies

Flash - AS3: Invalid Bitmap - Error #2015: Invalid BitmapData

Sep 23, 2011

I am trying to run the following function where car is a movieclip:

[Code]....

View 1 Replies

'netstream' Error Message "Adobe Flash Tried To Play A Live Or Recorded Stream That Does Not Exist"

Oct 13, 2010

I'm just trying to figure out this error message that comes up when I am importing a video into flash. It says: 'NetStream.Play.StreamNotFound: Adobe flash tried to play a live or recorded stream that does not exist. Source can't be found'

View 2 Replies

Flash :: Streaming - Generate A "NetStream.Play.StreamNotFound" Error While Play?

Mar 2, 2011

I used NetStream.play("invalid-live-stream-url") to play an invalid live stream. The other arguments are using default, e.g. start = -2, len = -1.

The menu says that when we use the default "start" and "len" to call "NetStream.play", "Plays the live stream until it is no longer available. If a live stream of the specified name is not found, Flash Player plays a recorded stream until it ends."

However, I do not have a recorded stream on the server that has the same name as the live stream, and I did not get the expected "NetStream.Play.StreamNotFound" error.

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

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







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