Hoping someone can help shed some light on a bit of a weird issue. We are investigating replacing our existing video player with an OSMF based player.
There are a number of reasons for this but they aren't particularly relevant!
Our target platforms are desktop browser (Flash), and also Android mobile (using Adobe AIR).
I have an Android 2.3 handset. I have an extremely simple OSMF player, implemented with the following code:
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
var player:MediaPlayerSprite = new MediaPlayerSprite();
var resource:URLResource = new URLResource("rtmp://URL TO MP4 FILE");
//var resource:URLResource = new URLResource( "http://URL TO FLV FILE" );
player.media = player.mediaFactory.createMediaElement(resource);
Important: Both the FLV and MP4 file above, play fine in our existing flash-based player.
On Android, if I use the HTTP FLV resource, the app plays the video no problem. If I use the RTMP MP4 resource, the video plays fine but there is no audio.
Clearly flash is capable of playing these files because they both work in our regular player (and we can verify they work on android by viewing our flash-based player in the Android web browser.)
Is there some existing issue with audio not playing/not being supported or something? At a bit of a loss to explain why this works with our existing player but does not work using OSMF. I have tried OSMF 1.5 and also the 1.6 Sprint 1 (for StageVideo support) - both exhibit the same issue.
Any feedback or advice would be greatly appreciated!
Well I did some more checking and seems this isn't limited to OSMF, it happens with just a standard NetConnection/NetStream as well. I wonder if maybe this was a bug introduced in Adobe AIR, it's strange.