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


Similar Posts:


ActionScript 3.0 :: How To Prevent Choppy Video Playback (NetStream)

Nov 6, 2008

What is best practice for buffering video playback? To prevent choppy playback? Using NetStream etc...

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

ActionScript 2.0 :: Syncing A Flv Through 2 Playback Components Or Netstream?

Feb 11, 2009

Trying to play an flv in a mc at 100% on one layer while playing the same flv at 200% on a layer behind it.

I am wanting to load the flv in once, check it has loaded and then play both instances at the same time.

I tried this:

// Create a NetConnection object
var netConn:NetConnection = new NetConnection();
// Create a local streaming connection
netConn.connect(null);

[Code].....

View 1 Replies

Media Server :: Got NetStream.play.stop Before It Reaches End Of Playback

May 23, 2011

i have application that streams videos from fms .i try to play video of 240 seconds, but when playback reaches 180 seconds i got NetStream. play. stop . it happens regularly at the same time.why does it happen? is it encoding of the video??

View 4 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 3.0 :: FLVPlayback.complete - Play The Video Files With The Playback Component In Each Of The Frames Where The Video Was

Apr 26, 2010

I am wanting to play a number of movie clips and flash produced video clips. On the main timeline I have a frame for each clip I want to play. In that frame is a flash movie that contains the video that I have embedded onto the timeline for the movie. The filesize for this project is massive and I am struggling to work on the file. I want to be able to play the video files with the playback component in each of the frames where the video was.

[Code]...

View 5 Replies

Flash :: Video Contrast In Video Poor In Dreamweaver Playback

Oct 4, 2009

I am using Flash Professional 8 and Dreamweaver 8 to maintain a website. I have just started using flash to show video highlights from high school football games which I record. Using iMovie I export the video as quicktime file and then import to flash to convert to a flash video file to post on the web site. The video coming out of iMovie has very good contrast and the quicktime movie has the same good contrast. When looking at the file in Flash the contrast changes dramatically. I becomes washed out. I am using Max OX 10.6 operating system.

View 2 Replies

ActionScript 3.0 :: Embedded Video And External Video With Playback Component

Nov 9, 2010

I have trouble in choosing between external video with playback component and embedded video . I have tried adding video to dynamic page and everything is perfect .This video I have imported using the option File ->import video -> external video with playback component. If I try to execute flv on another system , the video is not playing eventhough it is in library.

So, I have imported video using the option of embedded video and this worked fine on another systems as it embeds video. The video plays for only 2 min 54 sec. I have compressed the bit rate to how much ever I can in premier pro. It resulted in reducing the size of the file but still I see the video occupying more than 3500 frames in the timeline. I feel this is not optimal.

View 1 Replies

IDE :: Video Streaming - Loaded An External Video With Playback Component?

Feb 18, 2010

I have loaded an external video with playback component in Flash CS4.

Now the question is do I need to add streaming script or not?

View 2 Replies

Flex :: Playing A Large/long H264 File With NetStream Takes A LONG Time To Begin Playback?

Aug 1, 2010

I'm trying to play a 10 minute long video (h264/mp4) which is 39MB in size, after I call stream.play(fileURL) it doesn't start playback until its loaded around 12-16MB of the file (many many seconds later), I finally get onMetaData at this point too. Why doesn't it begin playback right away, or at least w/in a couple seconds? What can cause this bloated lead in time?

View 2 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 3.0 :: Video Playback - 60 Seconds Video To Start Playing After 40 Seconds Have Been Downloaded

Jul 19, 2010

1) I want a 60 seconds video to start playing after 40 seconds have been downloaded - to do that I set the NetStream.bufferTime to 40 seconds and retrieve "NetStream.Buffer.Full" event causing the video to really start playing. This step is OK.

2) However, the "NetStream.Buffer.Full" causes data to stop downloading. So the remainder of the video begins to download no sooner than after the 40 seconds have been played. This step is my issue. Can anyone tell me how to avoid this unintended effect? (i.e. playing a video and downloading data at the same time?)

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

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

Actionscript 3 :: Open A NetStream Using Video In IOS Package?

May 9, 2011

I am using Flash Pro CS5.5 to create a video player for the iPad. I can get it to work locally, but when I test it on the iPad, it cannot open the video file. The video file is included in the package file. Is there a trick to referencing a video in the package? Here's what I am trying:

var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
ns.play("myvideo.mp4");

View 1 Replies

Actionscript 3 :: Stop Video And Detach NetStream?

Oct 5, 2011

i have video streaming from the server, and later on i want to add another one just side by side. thats all good, i done that. Now my problem comes when i want to remove video. I manage to remove it from display, but i can hear that video is still playing in the background. So how do i can stop streaming that video?here is my code for setting up the video:

ns = new NetStream(connection);
ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
ns.play(item[1].toString() + ".flv");

[code]....

View 1 Replies

ActionScript 2.0 :: Attach Video And Audio From One Netstream To Another?

Oct 21, 2007

just wondering if it is possible to play an FLV and attach the video from that netstream to another and publish it to FM2.

is there a a way to attach video and audio from one netstream to another?
i have tried everything so far that i know of. when i think its attaching and publish it, i see nothing. publshing my cam and mic work flawlessly.

here's my code:

Quote:

nec = new NetConnection();
nec.connect(null);
nes = new NetStream(nec);
nes.play("http://testbox/transformers.flv");

[Code]....

View 1 Replies

ActionScript 3.0 :: Creating Netstream Video Player?

Jan 23, 2009

if someone knew the as 3 netstream code to play a video,

also would anyone happen to know if it's possible to show the time of a video being played w/ netstream?

View 0 Replies

ActionScript 3.0 :: Netstream Load Only A Minute Of Video

Feb 4, 2009

I need help creating a video player which will load only 60 seconds of video from an external flv file which can be of any length (more than 60 seconds). I am able to play only 60 seconds of video but the player buffers the entire video which results in loss of bandwidth.

View 0 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 :: 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

ActionScript 3.0 :: Adjust Volume In NetStream Video?

Jun 13, 2007

I would like to ask, how can I adjust the volume for the video playback ? here is the code

Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
video.attachNetStream(ns);

[Code]...

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







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