Quantcast
Channel: Adobe Community : Unanswered Discussions - AIR Development
Viewing all articles
Browse latest Browse all 2010

h.264 Live Streaming with StageVideo on iOS

$
0
0

Hello, there

 

I would like to play h264 video codec live stream with StageVideo on iOS.

I tried play to h264 live stream with StageVideo on iOS devices. (iPhone 5s, iPod 5th and more)
Android 4.x device can display h264 live stream with StageVideo correctory.

 

 

My Steps:

1. Change render mode.

    <renderMode>direct</renderMode>
2. Use StageVideo.

  netStream = new NetStream(netConnection);

  netStream.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);

  netStream.client = this;

 

  // Try to render as stage video

  var v:Vector.<StageVideo> = stage.stageVideos;

  if ( v.length >= 1 ) {

       _stageVideo = v[0];

       _stageVideo.viewPort = new Rectangle(0,0,640,480);

       _stageVideo.addEventListener( StageVideoEvent.RENDER_STATE,renderStateEventHandler);

       _stageVideo.attachNetStream( netStream );

  }

 

  netStream.play("myStream");

 

Results:

1. on Android

    StageVideoEvent.RENDER_STATE is "accelerated".

2. on iOS

    StageVideoEvent.RENDER_STATE is "software".

 

I would like to change iOS render mode from "software" to "accelerated".

 

Any information are welcome.

 

Best regards

Masa


Viewing all articles
Browse latest Browse all 2010

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>