ActionScript 3.0 :: Detect If A NetStream Video Is Live?

Jul 29, 2010

Is there something i can check to see if a NetStream Video is a live stream? I have a DVR app, need the player to snap to live point (if it is live - seek(100000) ? or start from the begining if a recorded video - Ideall a boolean if the stream is live or not...

View 9 Replies


Similar Posts:


Actionscript 3.0 :: Detect If NetStream Video Is Playing Or Not

Feb 11, 2010

I'm sure this is a simple question, but I just can't crack it. In my video player I want to detect if the current status is playing or paused. But I can't figure out where this info comes from. Is it a property of the ns object?

View 4 Replies

NetStream Class - How To Detect If Working Video Attached

Jul 31, 2011

I'm building a video chat in flash and everything works really well, except for the part where I'm trying to detect if the other user is sending a working video stream. There's a couple of reasons why the other user isn't sending video.
-The other user got no camera
-The other user got a camera, but the camera is currently being occupied by another application(Skype, Photo Booth, Google Talk, etc.)
-The other user got a camera but hasn't allowed the use of his/hers camera.
(Other unexpected problems I guess...)

So how do I detect if the stream I receive from the other user is a black stream(because of the reasons above) using the NetStream class? The closest thing I have came up with is by adding a timer that polls the currentFps() function from the stream I receive from the other user. But so far this seems pretty unreliable because I might get currentFps() == 0 and show an error because of this even though I actually got video from the stream in some cases. The reason for this is because I poll the API every 4 seconds for the currentFPS function and let's say at 00:00:04 I get "no video" according to the poll but at 00:00:05 the video kicks in, and therefor I need to wait until the next tick until the error message disappears

This is what my current poll looks like
function subscribingStatusPoll(e:TimerEvent):void {
if (subscribingStream.currentFPS == 0){
error.text = "No video found from the other user...
} else {
error.text = "";
}}

This is the only hack I that I can come up with to detect this, but this is unreliable and I actually would prefer a way to instantly detect if the stream I receive got a working video attached to 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

Detect Latency When Playing Live Video Streams From FMS?

Sep 25, 2010

Because of network latency,there will always be latency, how to know how many seconds the latency is with ActionScript?

View 2 Replies

Flex :: Detect When A Remote Client Has Started/stopped Streaming Video Over His NetStream With RTFMP ?

May 1, 2011

Am building a video chat application and i was wondering if there are any native events for the NetStream that fire,that can help in detecting when a remote client starts/stops streaming video over his outgoing stream (NetStream) to which the other client has subscribed over P2P/RTFMP in AS3 ?I maybe able to dispatch custom messages since the two clients are already connected, but i don't want to add the extra overhead.

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

Flash :: Catch StreamNotFound On A LIVE NetStream?

Nov 29, 2011

I have an FLEX application where I need to know if the LIVE stream on FMS exists when I do a NetStream.play();

Example:

var stream = new NetStream(nc);
stream.play("streamnotexists");

How can I pick the error on play how are trying to play a tream that not exists ?

View 2 Replies

ActionScript 3.0 :: Get Left-/rightPeak() From A Live Stream (NetStream)

Feb 11, 2009

I have a FMS and it works perfekt. What I try to build is a simple "player" for a website where I can listen to the livestream from my FMS. To connect to my stream works fine. But now i want to build a animated volume amplitude. It works with an mp3 who is on my FMS but not with the livestream. I think I found the problem why it does not work but not the solution.

I have following to connect to my livestream:

Code:
var nc:NetConnection = new NetConnection();
var ns:NetStream;
nc.connect("rtmpe://10.0.0.227/live");

[Code].....

Maybe I must create a new SoundChannel for my NetStream but I don�t know how!?

View 1 Replies

ActionScript 3.0 :: Can't Detect When Netstream FLV Stops

Sep 10, 2009

I want to detect when my FLV stops and jump to another video. How can I do this? My current code is: The first video plays fine, but it just stops when it is done.

// Setting up my netstream and playing my video
var nc:NetConnection = new NetConnection();nc.connect(null);var ns:NetStream = new NetStream(nc);ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);var vid:Video = new Video(320,

[Code].....

View 12 Replies

Media Server :: Publish Live Stream(H.264) To FMS(NetStream.Buffer.Empty)?

Feb 27, 2011

I am developing a C++ program to connect FMS via RTMP, and then publish a live stream I can't use FMLE here because I need collect the H.264 NALU from somewhere and forward them to the FMS.I write a demo app, which parses H.264 encoded FLV file, and send the VideoTag in the FLV as RTMP Message content for publishing.Finally, I make it run and I can see some frames of video!But the problem is: The video does not play smoothly and it just updates some frames.
Then I looked at the NetStream event and found that:Everytime when there is a NetStream.Buffer.Full event, the frame in the video is updated and display correctly But immediately there is another NetStream.Buffer.Empty event followed and the video is frozen.
 
[code]...

View 1 Replies

ActionScript 1/2 :: NetStream Video Control Button - Play Video Automatically

Jul 18, 2011

The stop button plays as expected. The play/pause button plays as expected. The issue is when you press pause which will cause the play button to appear, then press stop. the video automatically plays and it shouldn't. I have bolded the control button script for convenience.

[Code]...

View 1 Replies

ActionScript 2.0 :: Detect A Live Stream?

Sep 26, 2008

Code:
var nc:NetConnection = new NetConnection();
nc.connect("rtmp://flashmedia.NunyaBusiness.com/live/");
var ns:NetStream = new NetStream(nc);

[code]....

I am using the above code for a live stream. My quesiton is how do I detect whether there is content being streamed and if not, to show a "Coming Soon" movieclip? I know that a listener would do the trick, but I have no experience with listeners in AS2.

View 4 Replies

Media Server :: Detect If A Live Stream Is Running?

Jan 21, 2009

With the Flash Media Streaming Server (not the interactive version), is it possible to detect if a live stream is running? I want to show an overview of several live streams on one page. The ones that are not running should show as "offline". The others should show an online thumbnail. I don't want the visitors to have to go to all of the pages only to see that the stream is offline.

View 2 Replies

ActionScript 3.0 :: Video Skin Work And Play Video Locally And NOT Live?

Jul 31, 2009

Why does my swf's skin referenced by a simple component FLA work locally but NOT live? There's no AS3 in the component FLA. It's just a one-layer component referenced to the the FLV. When I test locally, IN FLASH CS4 ONLY, and click on "Animalia - Verse From the Zoo" the FLV and skin load and the video (source FLV - "Sequence01.flv") plays. But the same thing live only loads the swf for the FLV file area but NO SKIN. Try it yourself, please:Has anyone had this problem and knows the solution? All files are in the SAME FOLDER on the web server. I've tried every URL and path combination I can think of on the website. I've tried referencing the whole URL.

Yet whatever path combination I try, either nothing happens, or I just get the FLV box but no skin. Which is what's happening now. Publish settings are set to Flash Player 10 for all files. And I've tried the component SWF WITH and WITHOUT the fl.video package (import fl.video.*. No difference. Why does the skin load and play locally but not live? It's all AS3. No AS2. And it does not seem to be a "publish settings" issue as far as I can see. The relevant code in my API is:

var AnimalFLVLoader:Loader = new Loader();
AnimalFLVLoader.contentLoaderInfo.addEventListener (MouseEvent.MOUSE_DOWN,fAnimaliaVOn);
Animalia2.addEventListener(MouseEvent.MOUSE_DOWN, fAnimaliaVOn);

[code].....

View 9 Replies

Media Server :: Streaming Video Live With A Video Camera?

Sep 17, 2009

I am looking to broadcast live video and need a camera that is better than a simple webcam. It looks like they used to make video cameras that would register as webcams, but stopped making them.If you wanted to broadcast an event live, what would be a good camera to use?

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

Actionscript 2.0 :: How To Detect When Video Finished Playing To Play Next Video

May 31, 2010

How can I detect when a video has finished playing a.k.a stopped playing, so I can tell flash to play the next video in an array?

This is my code:

Code: Select allvar x:XML = new XML();
x.ignoreWhite = true;
var urls:Array = new Array();

[code]....

View 1 Replies

Actionscript 2.0 :: Detect When Video Finished Playing, To Play Next Video?

Aug 17, 2009

How can I detect when a video has finished playing a.k.a stopped playing, so I can tell flash to play the next video in an array?

This is my code:

Code: Select allvar x:XML = new XML();
x.ignoreWhite = true;
var urls:Array = new Array();
var desc:Array = new Array();

[Code]....

View 1 Replies

ActionScript 3.0 :: NetStream Detect Buffered And Not Already Buffered Places?

Sep 29, 2010

i have a video in which I can seek to unload parts (Pseudo-Streaming), the server return the video and it loads it from the requested second,the problem, i don't want to make a new request to the server if a part has already been buffered, here's what I have in mind, but can't achieve

Code:
if(netStream_has_been_download){
//Just run the seek() command

[code].....

View 1 Replies

Actionscript 3 :: Know How Much Of A Video Is Loaded By A NetStream?

Apr 5, 2012

I'm making a video player in AS3 and was wondering how to find out how much of the video is currently cached/buffered. I'm not sure what the correct terminology is, so I haven't been able to find it in the documentation.

NetStream.time gives me the current location of the video, so based on that I can display a progressbar.

Underneath the progressbar, I want to display how much of the video has been loaded already. How do I find this value?

View 1 Replies

ActionScript 3.0 :: Scale A NetStream Video?

Jun 23, 2010

It's a simple video player that opens a netStream which setups a client callback object onMetaData.The size is off when video is scaled.Example 1:

ActionScript Code:
trace("width: " + data.width, "height: " + data.height);
if(data.height > 240)

[code].....

View 0 Replies

Actionscript 2.0 :: Using Netstream To Load In A Video?

Aug 27, 2007

Using netstream to load in a video and have the buffer to basically load the entire video before it starts playing. So the video doesn't begin to play until the buffer is full but while the buffer is filling up, the cue points are being read and triggering actions.

View 4 Replies

Actionscript 3.0 :: Using External Swf AND Netstream Video?

May 28, 2010

my website contained some flv´s netstream. everything works fine!now i want to switch between some external swf and my netstream.. but it doessn´t work!.[code]

View 1 Replies

ActionScript 2.0 :: Flash Video: Detect End Of Video

Mar 5, 2006

using flash8 and i have a netstream object streaming progressive video... how do i detect the flv is complete? using buffer.flush doesnt work how i need as it flushes the buffer slightly before the video is finished.

View 2 Replies

ActionScript 3.0 :: Get Netstream Video Height And Width

Aug 20, 2010

I am new in AS3.I am using net stream video player with xml. How can i get videos dimension (Width and Height).if suppose i get the dimension of the video and i will change the video size with aspect ratio.

View 7 Replies

ActionScript 3.0 :: Netstream Flickers When Changing Video

Jul 28, 2011

I have a netstream object playing a video introduction

ns.play(video.flv)

and on another frame of my movie I have a menu, at which point I call

ns.pause()

and then depending on what the user clicks, the netstream opens a new video:

ns.play(video2.flv)

except I see a flicker from the previous video I had running. I've tried all sorts of things.

View 2 Replies

ActionScript 3.0 :: Video Class Vs. FLV Playback Using NetStream?

Sep 17, 2008

I am trying to load video using NetStream. I am able to do this by using the Video Class, but is it possible with the FLV Playback? I would like to add a seek bar so people can scroll the video if they want to.

I know the FLV Playback Component has this built in so I would use it BUT I can't load a stream to the FLV Playback, I can only set it's source. This works fine, but it doesn't allow me to unload it, the sound keeps playing, which is why I ended up using the NetStream instead.

So I have 2 questions. 1) Is it possible to load the NetStream to the FLV Playback component? 2) If not, how do I add the seek functionality to my Video Class?

View 2 Replies

Flash :: Netstream Play In The Middle Of A Video?

Jan 19, 2010

I'm using the netstream and video object to play a video in flash. Specifically a mp4 video.

What I'm trying to do is start playing the file from a specific position (Ex. 20seconds).

However with netstreamObject.seek(20) doesn't work unless the stream has been loaded past 20seconds. Is there a way to specify starting to load at 20s? Or any other way of accomplishing this?

View 5 Replies

ActionScript 3 :: Video Loaded Using NetStream Hangs

Jun 24, 2010

I'm loading flv file using Video and Netstream (trivial example from docs). On Flash player 10.1 everything works fine. On 10.0.2.54 everything stops on NetStream.Play.Start.

View 1 Replies







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