Commit 17128c72 authored by Anssi Piirainen's avatar Anssi Piirainen
Browse files

The clip property 'bufferLength' now accepts decimal values, for example bufferLength: 0.2

parent 39d230c5
......@@ -3,6 +3,7 @@ Version history:
3.2.17
------
- #75 set the child display list different when a gradient is set.
- The clip property 'bufferLength' now accepts decimal values, for example bufferLength: 0.2
3.2.16
------
......
......@@ -893,10 +893,11 @@ package org.flowplayer.controller {
dispatchPlayEvent(ClipEventType.BUFFER_STOP);
}
private function _createNetStream():void {
_netStream = createNetStream(_connection) || new NetStream(_connection);
private function _createNetStream():void {
_netStream = createNetStream(_connection) || new NetStream(_connection);
netStream.client = new NetStreamClient(clip, _player.config, _streamCallbacks);
_netStream.bufferTime = clip.bufferLength;
log.debug("using buffer time of " + _netStream.bufferTime);
_volumeController.netStream = _netStream;
clip.setNetStream(_netStream);
_netStream.addEventListener(NetStatusEvent.NET_STATUS, _onNetStatus);
......
......@@ -61,7 +61,7 @@ package org.flowplayer.model {
private var _content:DisplayObject;
private var _originalWidth:int;
private var _originalHeight:int;
private var _bufferLength:int;
private var _bufferLength:Number;
private var _backBufferLength:int;
private var _played:Boolean;
private var _provider:String;
......@@ -643,11 +643,11 @@ package org.flowplayer.model {
}
[Value]
public function get bufferLength():int {
public function get bufferLength():Number {
return _bufferLength;
}
public function set bufferLength(bufferLength:int):void {
public function set bufferLength(bufferLength:Number):void {
_bufferLength = bufferLength;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment