Skip to main content
pierrehuber
Participant
May 28, 2015
Question

mobile videoStreamSettings issue

  • May 28, 2015
  • 0 replies
  • 199 views

Hello ,

I try to set the videoStreamSettings property to an output stream in order to use h264 encoding.

When I launch my application on android emulator with flash builder, then stream seems to be encoded and when I launch in debug mode the videoStreamSettings property of the output stream is not null.

When I launch the application on connected android device in debug mode the videoStreamSettings property of the output stream is always null and the stream seems not to be encoded (same size of bandwidth used with or without videoStreamSettings set )...

here is my code :

netStream = new NetStream(netStreamConnection);

netStream.addEventListener(NetStatusEvent.NET_STATUS, handleNetStatus);

netStream.attachCamera(camera);

netStream.attachAudio(microphone);

var h264Settings:H264VideoStreamSettings = new H264VideoStreamSettings();

h264Settings.setProfileLevel(H264Profile.MAIN, H264Level.LEVEL_3_2);

netStream.videoStreamSettings = h264Settings;

Can someone tell me why this is not working on android devices ?

Thanks

Pierre

This topic has been closed for replies.