Skip to main content
Inspiring
October 21, 2011
Question

StageVideo Adobe Air 3.0 iOS Error 1069 |onUpstreamBase not found

  • October 21, 2011
  • 2 replies
  • 2000 views

I am using a StageVideo object with Adobe Air 3.0 compiled down and running on an iOS device iPhone 3GS.  The StageVideo appears and attaches to the NetStream just fine.  But after I issue NetStream.play(), I get the following runtime error:

ReferenceError: Error #1069: Property |onUpstreamBase not found on views.DisplayView and there is no default value.

You'll notice that the "|onUpstreamBase" contains a "pipe"-character at the beginning.  I tried to add:

public function onUpstreamBase (dataObject:Object):void {

                                        trace(dataObject.toString());

                              }

to the view function, but that didn't work.  And I can't create a function handler for |onUpsteamBase because of the pipe character.

I am attaching the Netstream and NetConnection to an recorded H.264 rtmp stream. The rest of my code works just fine, but is failing on this runtime error.

Anyone else run into this? 

Thanks in advance.

This topic has been closed for replies.

2 replies

November 21, 2011

I got this error too, but not trying to do anything fancy like Stage Video. The issue is w/the "client" property on the NetStream object. You're supposed to use this to add some event handlers/call back functions that the NetStream will invoke.

I got this error when I set the client property to "this" and defined the callback functions in my class.  However, that generates this error. If you use a generic object to store the call back function, the error does not occur (b/c the generic object is dynamic)...

private function onNetStatusConnect():void
{
foo = { onMetaData: onMetaData };
stream=new NetStream(connection);
stream.client=foo;
// don't do this
//stream.client=this;
vid=new Video();
addChild(vid);
vid.attachNetStream(stream);
stream.play(feedAddress);
}
public function onMetaData(data:Object):void
{
trace(data);
}
Inspiring
October 21, 2011

I did some more debugging on this and it turns out this is due to the FMS server we are streaming from.  When I change servers, to a different hosted stream, this error disappears.

However, I then run into the StageVideo case where I can hear Audio, but NOT see any video.  When I look at my StageVideo object using FlashBuilder debugger, I can see that the SV object is there. However, VideoEvent.RENDER_STATE does not get called.

Here are a couple of other forum posts similar to mine:

http://forums.adobe.com/message/3981541#3981541

http://forums.adobe.com/message/3954578#3954578

I can confirm these settings:

Adobe Air 3.0 release

Flash Builder 4.5.1 comiler settings:

-swf-version=13

-target-player=11.0.0

backgroundAlpha = 0 for my container view and application view.

I should also add that I can play a local H264 mp4 file just fine using a stageVideo.  This is for streaming an rtmp H264/speex stream down from FMS (4.0.1, I believe).

Participating Frequently
October 24, 2011

Hi,

Could you specify the renderMode that you are using. For using stage video, it should be direct.

Thanks,

Sanika

Inspiring
October 24, 2011

Hi,

Yes, I'm setting renderMode = direct in my application descriptor file.  I can get the StageVideo working with a locally stored mp4 file, but not streaming down an H264/speex file over rtmp or rtmfp.