Skip to main content
Participant
July 3, 2014
Question

h.264 Live Streaming with StageVideo on iOS

  • July 3, 2014
  • 1 reply
  • 785 views

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

This topic has been closed for replies.

1 reply

Inspiring
March 15, 2015

On iOS, you'll need to be playing a HLS stream for h264 to decode when streaming from a remote server.