From 0b4891b372e231450473100bad87e6477a34e9b5 Mon Sep 17 00:00:00 2001 From: Daniel Rossi Date: Wed, 2 Apr 2014 01:30:17 +1100 Subject: [PATCH] - #219 fix the clip dimensions if none is set for the stream. --- plugins/httpstreaming/README.txt | 1 + .../httpstreaming/HttpStreamingProvider.as | 23 ++++++------------- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/plugins/httpstreaming/README.txt b/plugins/httpstreaming/README.txt index e17a025..e0ce1a8 100644 --- a/plugins/httpstreaming/README.txt +++ b/plugins/httpstreaming/README.txt @@ -6,6 +6,7 @@ Version history: - #70 fixes for live streams - #70 fixes for buffer start value. - #136 when we are streaming live and not in dvr mode set the duration to zero in the index handler instead of the metadata callback. +- #219 fix the clip dimensions if none is set for the stream. 3.2.10 ------ diff --git a/plugins/httpstreaming/src/actionscript/org/flowplayer/httpstreaming/HttpStreamingProvider.as b/plugins/httpstreaming/src/actionscript/org/flowplayer/httpstreaming/HttpStreamingProvider.as index 512cc2a..a7c9e54 100644 --- a/plugins/httpstreaming/src/actionscript/org/flowplayer/httpstreaming/HttpStreamingProvider.as +++ b/plugins/httpstreaming/src/actionscript/org/flowplayer/httpstreaming/HttpStreamingProvider.as @@ -172,28 +172,19 @@ package org.flowplayer.httpstreaming { } } - /*override protected function onMetaData(event:ClipEvent):void { + override protected function onMetaData(event:ClipEvent):void { log.debug("in NetStreamControllingStremProvider.onMetaData: " + event.target); - //#70 remove clip duration for live streams and when not dvr recording - if (clip.live && !isDvr) { - clip.metaData.duration = 0; - clip.duration = 0; - clip.durationFromMetadata = 0; + //#219 fix the clip dimensions if none is set for the stream. + if (isNaN(clip.metaData.width)) { + clip.metaData.width = _player.screen.getDisplayObject().width; + clip.metaData.height = _player.screen.getDisplayObject().height; } + super.onMetaData(event); - if (! clip.startDispatched) { - clip.dispatch(ClipEventType.START, pauseAfterStart); - clip.startDispatched = true; - } - - if (pauseAfterStart) { - pauseToFrame(); - } - switching = false; - } */ + } override public function get allowRandomSeek():Boolean { return true;