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


Similar Posts:


ActionScript 3.0 :: MOV Files - NetStream.Seek Not Working Correctly

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 flv work perfectly on both players.

View 1 Replies

Actionscript 3 :: Netstream.seek() Not Working For MP4 Videos In Flash

Mar 11, 2011

I am implementing a video player in Actionscript and I need to be able to define the starting play time for the videos. Netstream.seek(pos) works for flv files but fails for H.264 files (the player starts playing the video from the beginning). Anyone knows what might be the problem? (I am using Netstream for this instead of adding a parameter with the starting time when I call the Netstream.play method because I don't have Flash Media Server).

View 2 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 :: NetStream Seek Based On Previous Flv

Apr 15, 2009

I have a series of movie clips (flv's). All are the same movie clip of a rotating object but it's different colour in each clip.When one clip is playing and I click to play another, I would like the clicked movie clip to start playing from the same position at which the previous clip was at. So if a clip had played for 3 seconds and I click a different clip, I would like it to seek and play from 3 seconds instead of 0.[code]Can anyone tell me how I would go about tracking the data of how many seconds of a clip has played?My guess is that it will either be metadata or NetStatusEvent related.

View 4 Replies

Flash :: Start Or Seek To Sub-second Intervals With NetStream?

Jan 20, 2010

I am working on a Flash Video player and am implementing the ability to start a video at x time within the span of an FLV (served from FMS). I am able to start it x seconds into a stream without any issue using

netStream.play(source, startTime);

but as far as I can tell, it only supports seconds. I am looking to be able to give a start time (or even a seek time if that is supported) in milliseconds, or really anything more precise than whole seconds.

Anyone know of any way to achieve this even by monkey patching the fl classes?

View 1 Replies

ActionScript 3.0 :: When Netstream.time Updated / When Seek?

Feb 17, 2009

The problem is that I have an fla video player that uses the netstream class in order to pull a stream (mp4 h264), I've tried this with a few different mp4 files and they all behave the same..Basically, when I goto seek to a position, say 10 seconds into a 300 second mp4, the movie buffer goes blank and my readout of the current time I can see climbing from around 7 seconds and keeps going all the way to the end.. almost as if the seek command is trying to find a keyframe where it can resume from..I'm using http (not rtmp), and thus streaming directly from naive http.After awhile I decided to use the FLVPlayback component, set the source to the same, and it read in some initial metadata.. when I try the movie with the FLVPlayback component I can pause, seek resume to any position without problem, at first I was thinking the problem might have been http related but if the FLVPlayback component works then I'm a little stuck..Also note that I've checked the seekpoints of the movies and there are TONS of them, so the seek command should be able to find a nearby seekpoint to where I suggest.

View 7 Replies

Flash :: NetStream.seek() For Mp4 To Exact Position Not Keyframe?

Jul 26, 2010

It seems seek() on mp4 file seeks to the closest keyframe (seekpoint). Is it possible to seek to exact position in between of keyframes?

View 2 Replies

Actionscript 3 :: Can't Scrub Through FLV Using Netstream.seek() After FLV Finishes Loading

Oct 27, 2010

I'm trying to play an FLV using the Netstream class - standard stuff, really using nothing more complex than things you can find in the help files. I've created a control panel with a bar you can use to click and drag and scrub through the video.

Exporting to Flash Player 9, it's working fine and I can scrub through the video, but only while the FLV is still loading. As soon as it hits 100% the scrubbing (using Netstream.seek()) becomes incredibly unresponsive, almost to the point of crashing the player.

I've killed all ENTER_FRAMES, removed all unnecessary listeners and nullified everything I can think of but something massively resource-intensive seems to be kicking in as soon as the load finishes.

Has anyone ever seen this? I've never come across this and can't find anything similar across assorted forums.

Code below but I don't think the mouse-move drag actions are the problem! Fine in the Flash CS4 IDE, broken in the browser.

// Drag
private function dragVideo(e:MouseEvent):void {
// Match the x position of the dragger to the x position of the mouse
videoControls.progressBar.dragger.x = videoControls.progressBar.barInner.mouseX;

[Code]......

View 1 Replies

ActionScript 3.0 :: NetStream.seek() Not Seeking To Start Of Video On Mobile

Nov 4, 2011

I have a "video on demand" video that I'd like to seek at any point of the video. It's playing on a Motorola Xoom tablet. I can seek to the beginning of the video when the playhead is near the beginning. However, if I the playhead is towards the end of the video and I attempt to seek to the beginning of the video, the video seeks many seconds after the start of the video. I thought this might be a buffering issue, so I set inBufferSeek to true, but I still have the same issue.

View 2 Replies

Media Server :: Netstream.seek - Parameter Gets Updated And Drops Backs After Update

Jun 18, 2010

I am using OSMF v1.0 along with FMS 3.5.3 and flash player 10.1. Whenever i do a seek, lets say to a time 't'. Netstream.time gives me an incorrect result which is more than 1.5*t (varies). So if i seek to 100, i get netstream.time as approx. 160. I also noticed, 'NetStream.info.VideoBufferLength' goes very high (from around 3-4 to 50-60) just before the Netstream.time parameter gets updated and drops backs after update.

View 1 Replies

Can't Trigger "NetStream.Seek.InvalidTime" Event?

May 13, 2009

I made an interface that laods a FLV video (as far as I know this is progressive download as I'm not using any Flash Media server or whatever).The point is that I added a Button on the stage with the following code:

on (release) { _root.stream_ns.seek(15);  }

I also have a event catcher like this in the main timeline:

stream_ns.onStatus = function(infoObject:Object) {  if (infoObject["code"] == "NetStream.Seek.InvalidTime") {  _root.text_display = "Not loaded yet";  }}

[code].....

View 8 Replies

FLVPalyback Seek Not Working Http Stream?

Jun 6, 2009

Using the FLVPlayback skins in CS4 (ActionScript 2.0).  When I play the swf and the video is local, everything works great.  When I switch everything to stream from http server, everything works except the seek bar handle doesn't move as the movie plays.  It just stays at the beginning.  I can manually move the seek bar handle and it does scrub the video but when I stop, the movie will play from that location and the seek bar handle just sits where I left it.

View 1 Replies

Media Server :: Seek Or Start Playback Offset Not Working On Big Flv's

Dec 12, 2010

I try to start a FLV (created with soundbooth cs5) at a certain point of time using ns.play('video', 33000) or even just ns.seek(33000);
 
The FLV is about 9 hours long.
 
How do I make this work ? And why is it not working?

View 7 Replies

Professional :: CuePoints Not Working Properly Netstream?

Jul 15, 2010

Im trying to get cuepoints working on an old as2 project.I have a netstream video component and want the cuepoints embedded in the FLV to trigger buttons to appear. I have embedded them as Event Cuepoints. 
 
ns.onCuePoint = function(infoObject:Object){    trace(infoObject.name);    if(infoObject.name == "CP1") {         trace("yes working");    }}; 

[code]...
 
This shows all of the cuepoints within the FLV. I cant figure out how to change the code to trigger actions WHEN the FLV hits a Cuepoint.

View 2 Replies

ActionScript 3.0 :: NetStream Play Complete Still Not Working?

May 2, 2008

Hoped this would ave been fixed in as3 but this event does not always get triggered. Seems to be related to the encode. Anyways I would like to see others approach to this issue.

Currently I have place a condition in the NetStream.Play.Stop event to check if the ns.time is > the duration-1;

[as]
if (ns.time > duration-1){
playing = "complete";
}
[as]

I have noticed this does even work consistantly unless I change it to ns.time > duration-2.

View 1 Replies

ActionScript 2.0 :: NetStream.Buffer.Empty Not Working?

Jun 25, 2009

I have 9 videos in a gallery. Each one gets displayed in a custom video component. When you navigate to watch a new one a new NetStream is setup.I have 2 problems. Basically if you don't watch the video right to the end and when you select and watch a new one:1. a "buffering video" movieclip does not display correctly (or at all) indicating that NetStream.Buffer.Empty isn't working properly (maybe its referencing the previous movie ???).2. when the next movie is buffered and starts you hear a little split second glitch of sound (which sounds like its from the previous movie).

both these problems seem to indicate that in some way the previous movie is still lingering around and in some way needs to be 'flushed' away so that on the next movie the code to display the 'buffering video' message works properly and you don't get this legacy remnant of sound for a split second.At the beginning of the code for each movie I have placed:

ns.pause();
player.clear();
ns.close();

[code]........

View 0 Replies

ActionScript 3.0 :: [Q] FMS2 NetStream Publish Not Working?

Jul 28, 2007

I am trying to create a simple online recording via FMS2

Here is my coding:

Code:

NetConnection.defaultObjectEncoding = ObjectEncoding.AMF0;
var nc:NetConnection = new NetConnection();
var ns:NetStream;

[code].....

WHen I try to record a video via my cam (click the button "btnRec"), ... no error message comes up, but there is no FLV file (it should be "videoName.flv") has been generated in rtmp://localhost/test ?

View 2 Replies

ActionScript 2.0 :: F8 Play / Pause Clip Not Working With NetStream

Feb 6, 2009

I've got a play/pause movie on my timeline to control an FLV via NetStream. The idea is to switch from a play symbol to a pause symbol, but it's not working.[code]Clicking on the clip will start and stop the flv just fine, but the symbol switch doesn't happen. When I take out the ns code, just to check and see if the switch will actually work, there's no problem.What am I doing wrong? How can I get my clip to change from a play to a pause symbol?

View 1 Replies

Media Server :: NetStream.Play.StreamNotFound Not Working?

Aug 3, 2011

I would like to have the possibility to detect when NetStream is not working (i.e. the name used in initialization can't be found on the server side). The StreamNotFound doesn't work at all. I've read that it's the fault of the Flash Media Server, which automaticaly creates new stream, if it cannot be found (of course it's an empty stream - what is wrong from my point of view). Is it true? If yes, can I disable it on the server side, so I could easily detect if the stream name is correct?

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

Media Server :: Sending MetaData With NetStream.send Is Not Working?

May 2, 2010

I'm trying to send metaData from client to FMS server when recording Webcam video and have implemented sending of metaData as stated on Adobe's help page at: http:[url]....

However when I play the recorded video from FMS, my custom metaData properties trace "undefined".I can trace default metaData properties such as duration or videocodecid successfully,but not my custom properties such customProp,width or height. Here is part of my code that is related to the issue: private function

ncNetStatus(event:NetStatusEvent):void  [code].....

View 21 Replies

Flash :: Videochat Netstream SoundTransform Not Working For Volume Control?

Jan 3, 2012

I have a video chat application where there can be 6 participants. What I would like to do is give the option to each publisher to control their own stream's volume. The code I have looks like this.

[global]
private var volumeTransform:SoundTransform;
[In the init method where ]
outgoingStream = new NetStream( nc );

[Code]....

A possible solution can be this : Calibrate the slider and set the microphone gain, a gain of zero effectively is mute and a gain of 100 is full volume.

View 1 Replies

Professional :: RTMP Netstream NOT Working With Latest Version Of Flash Player?

Aug 26, 2010

Let me preface this by saying: This is definitely a bug either with latest Adobe Flash Player or the streaming Media Server (in this case Real Helix):In the latest version of the Flash player (10.1.82.76) Code that worked  previously in version 10.1.53.64 does not work now. This is basic code to connect to an RTMP server (Real Helix) using Netstream class. NOW the video does not even display and there is no error message . THIS ONLY OCCURS in a BROWSER . Also I am using swfobject to display the flash and I tried with latest version and the old 1.4.1 version.

private function init():void  video = new Video();    NetConnection.defaultObjectEncoding = ObjectEncoding.AMF0; nc = new NetConnection(); nc.client = this;

[code].....

View 2 Replies

Media Server :: Client-side NetStream Webcam Publishing To FMS 4.5 Not Working?

Dec 2, 2011

I'm trying to create a simple application that streams the webcam to FMS 4.5 (running on a Windows 7 machine), and then displays the published stream locally. Here's my code:

import flash.net.NetStream;
import flash.media.Video;
import fl.video.FLVPlayback;
import flash.events.NetStatusEvent;

[Code]...

All traces in the event handlers show the NetConnection connecting successfully, and the netstream publishing successfully. However, I get no video output from this. I've confirmed this using the sample video player in FMS 4.5 as well. There is also a weird traffic pattern reported in the FMS Admin console.There is some traffic (~4K) when the NetStream first publishes, but after that there is no activity.

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

Use Seek() In Flowplayer With An FLV File?

Nov 16, 2009

Is it possible to use Flowplayer (flowplayer.org) and the seek() function with an FLV file?

View 3 Replies







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