Using the code below I am able to retrieve orientation and duration data when loading a H264 video.
When loading H265 video the data is missing.
Is there a fix/workaround for this?
Thanks,
Mark
_vidPlayer.addEventListener( feathers.events.MediaPlayerEventType.METADATA_RECEIVED, videoPlayer_metaHandler );
private function videoPlayer_metaHandler( event:starling.events.Event ):void{
trace("videoPlayer_metaHandler event", event);
trace("videoPlayer_metaHandler data", event.data);
if (event.data.trackHeaderBoxMatrix[0].d == -1) {
//landscape upsidedown
}
if (event.data.trackHeaderBoxMatrix[0].c == -1) {
//portrait
}
if (event.data.trackHeaderBoxMatrix[0].b == -1) {
//portrait upsidedown
}
_duration = event.data.duration;
}