ActionScript 3.0 :: OnFI Handler For NetStream Timecode

Aug 31, 2010

We are sending a multiple streams from FMLE to FMS, and then playing them with NetStream instances. We could have several streams playing on the same flash canvas. The idea is to use ActionScript to synchronize the playback of these streams using embedded system timecode from FMLE, so all the camera angles are playing at the same place in the stream. However if we use the onFI handler to receive timecode data we see one of the streams reporting valid timecode, and the other seems to get 'stale', reporting the same infoObj.st value for multiple onFI events.

Example: NS2 is great:
NS2 20:14:19.215
NS2 20:14:19.246
NS2 20:14:19.277
NS1 20:14:07.443
NS2 20:14:19.324
NS1 20:14:07.443
NS2 20:14:19.355 ... etc

However NS1 traces out like this with stale data:
NS1 20:14:07.990
NS1 20:14:07.990
NS1 20:14:08. 52
NS1 20:14:08.443
NS1 20:14:08.443
NS1 20:14:08.443
NS1 20:14:08.443
NS1 20:14:08.443
NS1 20:14:08.443
NS1 20:14:08.443
NS1 20:14:08.443
NS1 20:14:08.443
NS1 20:14:08.443
NS1 20:14:08.443
NS1 20:14:08.443
NS1 20:14:08.474
NS1 20:14:08.506
NS1 20:14:08.552
NS1 20:14:08.943
NS1 20:14:08.943
NS1 20:14:08.943
NS1 20:14:08.943
NS1 20:14:08.943
NS1 20:14:08.943
NS1 20:14:08.943

All FMLE /FMS instances are configured identically - either stream will decode valid timecode it played on its own - just not while both are running in the same stage!

View 1 Replies


Similar Posts:


ActionScript 3.0 :: NetStream Was Unable To Invoke Callback OnFI?

Jul 29, 2010

Getting this output from the following code, video streams OK but fills the output log with.Error #2095: flash.net.NetStream was unable to invoke callback onFI
 
var nc:NetConnection; var ns:NetStream; var nsPlayer:NetStream; var vidPlayer:Video;
function init() { nc = new NetConnection(); nc.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus); nc.connect("rtmp:///video");}
function onNetStatus (event:NetStatusEvent):void {    trace(event.info.code);     switch(event.info.code){ case "NetConnection.Connect.Success":    displayVideo();    break;    }}

[code]...

View 1 Replies

Flash :: Add Such A Handler, The NetStream Client Doesn't Function As It Did Before?

Nov 2, 2010

I'm trying to add a custom callback handler to a NetStream client in a p2p application. The problem is, when I add such a handler, the NetStream Client doesn't function as it did before. It seems the NetStream.client object is changed. I know the default object is this. But changing the client to this doesn't solve the problem.The remoteControlStream, is the incoming stream. And the localControl stream is the stream being publishedThis is the localControlStream that's being send by the peer, and received as remoteControlStream:

private function initLocalControlStream():void{
localControlStream = new NetStream(nc, NetStream.DIRECT_CONNECTIONS);
localControlStream.addEventListener(NetStatusEvent.NET_STATUS, localControlHandler);
localControlStream.publish(myPeerID+"control");[code]...

The onPeerConnect method of the localControlStream doesn't get called when I connect when the above handler is added. When I remove the that handler, the onPeerConnect method gets called.

View 1 Replies

Flex :: Flash - NetStream With GroupSpecifier Not Sending Handler?

Nov 20, 2010

I have a simple video/chat application built in FLEX. I've created a groupSpecifier,netGroup and a NetStream for the different functionalities. NetGroup is mainly used for the messaging (Posting) and keeping track of the users who enter.NetStream is (or would be used) to control some functions like "start video, stop video" for everyone under the same group.The most important functions I will post on here. The first is setupGroup.

private function setupGroup():void{
var groupspec:GroupSpecifier = new GroupSpecifier("vid"+GROUP_ID+"_sid_"+SESSION_ID);
groupspec.serverChannelEnabled = true;

[code].....

View 1 Replies

ActionScript 3.0 :: Main.swf Event Handler - Close NetStream In Impoted Swf

Nov 26, 2010

I import a external SWF into a UILoader, the SWF contains a netStream that I need to close from a Main.swf event handler, slideShow_btn. Basically from Main.swf when/if slideShow_btn event happens I need to check and close the nsStream in videoplayer.swf Here are my event handlers in Main.swf

[Code]...

View 3 Replies

Media Server :: Adding Custom Callback Handler To NetStream Client

Nov 2, 2010

I'm trying to add a custom callback handler to a NetStream client in a p2p application. The problem is, when I add such a handler, the NetStream Client doesn't function as it did before. It seems the NetStream.client object is changed. I know the default object is this. But changing the client to this doesn't solve the problem. The remoteControlStream, is the incoming stream. And the localControl stream is the stream being published. This is the localControlStream that's being send by the peer, and received as remoteControlStream:

private function initLocalControlStream():void{
localControlStream = new NetStream(nc, NetStream.DIRECT_CONNECTIONS);
localControlStream.addEventListener(NetStatusEvent.NET_STATUS, localControlHandler);
localControlStream.publish(myPeerID+"control");
var localControlStreamClient:Object = new Object();
[Code] .....

The onPeerConnect method of the localControlStream doesn't get called when I connect when the above handler is added. When I remove the that handler, the onPeerConnect method gets called. Obviously the problem is the NetStream.client.

View 1 Replies

ActionScript 2.0 :: Creating Timecode For An Flv

Jul 26, 2010

I've done a six minute video and posted it as an flv/swf for the client to review. I'm using a the standard video player component that comes with Flash. I'm working with AS2. Actually, there's nothing else in the swf except for the video.What I need to do has have a simulated time code box in the corner that starts and stops on the push of the play button of the flv.

View 0 Replies

IDE :: FLVPlayback Display Timecode?

Mar 12, 2007

I am streaming video from a flash server. I am using the FLVPlayback Component. Is it possible to display the time code?

View 9 Replies

ActionScript 3.0 :: Turn Timecode Into Milliseconds?

May 18, 2010

How would you go about turning timecode into milliseconds. My timecode is in xml and comes in as a string. Timecode examples:

00:20
00:45
01:10

My end result is to call a nsStream.seek( milliseconds );

View 5 Replies

ActionScript 3.0 :: Timecode On Video Player?

Mar 24, 2009

Is there anyway to get a timecode into a video player withoutusing netconnection/stream (i.e. using the flv playback componentand captioner?)

View 5 Replies

ActionScript 2.0 :: Convert Timecode To Seconds?

Sep 2, 2009

I need to convert timecode to seconds!

The timecode would be in HH:MM:SS:MS (eg. 00:01:07:00).

I need to determine how to take that timecode and convert it to seconds which in the above example would equal 67.

View 4 Replies

Media Server :: Get Embeded Timecode From HTTP Stream?

Jul 25, 2011

i am wondering is it possible to get embeded timecode from HTTP Stream?Flash Media Live Encoder contains a special built-in handler, onFI, that subscribing clients can use in their ActionScript code to access timecode information. The following client-side ActionScript code shows how to get timecode information using the onFI handler. The object ns is the NetStream object. You can get timecode and system date and time information, if timecode and system date and time were embedded in the stream, by accessing the tc, sd, and st properties of the info object that is passed as an argument to onFI():i am using this onFI method succesfully with netStream object when i am getting stream from RTMP.is it possible to get somehow same results with HTTP Streaming (f4m and osmf)

View 3 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 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 :: Adding Timecode, Pre-roll To Flash Video Player?

Aug 19, 2009

I've been constructing a flash video player from scratch using tutorials online, and I cannot figure out how to add a timecode (elapsed time/total time) or a way to have a pre-roll video. I'm using flash cs4 and AS3.

View 1 Replies

Media Server :: Embed Timecode When Publishing Live Video And Render It When Watching?

Oct 4, 2010

I've managed to publish video now: ns.attachAudio (mic);ns.attachCamera (cam);ns.publish ("name","record"); But without time information.

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

CS3 : Loading Movie With SWF Handler?

Aug 2, 2009

I'm using an SWF handler to load my pages(MovieClips) into the Main Movie. I'm using Actionscript 2.0. My problem is when I click the button the swf is loaded into the handler but my actionscript is not executing its _x axis move.(graphics should slide in from the right), Here is the code I have applied to the sliding graphic:

//OLD SKOOL
xTargetOSM = 30;
OSM.onEnterFrame = function() {

[code]....

-this code works when the SWF is played alone, but fails when it is loaded into the SWF handler in my main movie.

View 1 Replies

ActionScript 2.0 :: Statement Must Appear Within On Handler?

Jan 29, 2010

I have been asked by a local web development company to code some flash banners for use with there banner ad site they are doing. I have been sent a banner to add the actionscript and also the actionscript as well. What I have is a fla doc with a button that covers the whole banner. Then on the banner I have this actionscript:-

this.masterButton_but.onRelease = function(){ if (root.Hyperlink != null){ getURL(root.Hyperlink); }else if(root.clickTag != null){ getURL(root.Hyperlink); }else{ getURL("http://www.greatrun.org/Events/Event.aspx?id=3"); } }

When I test it the compiler errors and says in the description "Statement must appear within on handler".

View 1 Replies

ActionScript 1/2 :: Statement Must Appear Within On Handler

Mar 12, 2009

I keep getting the "statement must appear within on handler" error when I try to add a gotoAndPlay event to my button...

View 3 Replies

ActionScript 1/2 :: Statement Must Appear Within On Handler?

Mar 20, 2012

I am getting

Symbol=page5, layer=Layer 1, frame=1, Line 1Statement must appear within on handler my action in actionscript is
 
getURL("http:url.....)

View 5 Replies

Asp.net :: Cannot Get Session In Generic Handler

Nov 5, 2010

I am now using FancyUpload (flash upload) to allow user to upload files in a small project. I use Generic Handler to handler in server when user uploads his file, but I'm getting error:
Can't get session in Generic Handler (.ashx) when using Firefox or Chrome etc except IE
I read so many solution and finally found out that Flash has some bug that can't send cookie in Firefox or Chrome except IE. Maybe I can check the session in Flash before it's start to send the file to the server or check session in Generic Handler before save it, How to do it?

View 2 Replies

Remove The Event Handler OnPress?

Feb 8, 2006

I have the next code:

mc.onPress=function()
{
//some code
}

How do I remove the event handler onPress?

View 4 Replies

ActionScript 3.0 :: Resize Handler / Liquid GUI?

Jun 18, 2009

I am trying to make a liquid gui layout (i think this is what it's called).Anyway, I have done part of this, but I'm having trouble figuring out how to position movieclips that aren't on the stage.These movieclips have linkage ID's and are being called when you click on a button.

Code:
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
stage.addEventListener(Event.RESIZE, resizeHandler);[code].........

The linkage ID name is: pageWeddings

When you click on the button "weddings", it loads "pageWeddings".I want to position this somehow.

View 2 Replies

ActionScript 3.0 :: Event Handler Not Active?

Aug 5, 2011

I'm adding event handlers to dynamically created movies. The event handler is not active and the cursor does not change to a finger over the clip Here is the applicable code.

Code:
function loadSubNav():void{
//Load Thumbnails

[code].....

View 3 Replies

ActionScript 1/2 :: ShowSettings Event Handler?

Apr 2, 2009

I would like to use System.showSettings(0) up front and trapwhen the user chooses Deny instead of Allow in an onStatus eventhandler as I show in attached code.

View 1 Replies

ActionScript 3.0 :: How To Call A Handler A Loaded Swf

May 6, 2010

I'm failing repeatedly when trying to get a navigation system to work. Breaking the code into more chewable chunks is my latest idea, but there is still a ticklish problem: I need to activate a handler in an swf I load with the loader class. I get a compiler error that says: Scene 1, Layer 'Layer 1', Frame 1, Line 63 1061: Call to a possibly undefined method MakeIt through a reference with static type flash.display:DisplayObject.

[Code]....

View 3 Replies

ActionScript 1/2 :: Using Variables: Statement Must Appear Within On Handler

Jun 30, 2010

I would like to use variables in my flash app. The app is quite simple, has many buttons, and on each of those buttons I have a simple script: on-rollover and on-release. For both actions I use the same value, which I want to put in a variable. The following script results in an error message: Statement must appear within on handler. When I have to declare the variable inside the on-handler, I have to declare it twice, which makes it useless as I have to enter the value twice. How can I get this working?
  
country = "uk"
on (rollOver){    gotoAndPlay(country)}
on (release){    getURL("/"+country+"/", "_self");}

View 1 Replies







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