this._playerImpl = new mx.controls.streamingmedia.RTMPPlayer(this._contentPath,mx.controls.streamingmedia.StreamingMediaConstants.FLV_MEDIA_TYPE,this._videoHolder,this._totalTime);
}
else
{
this._playerImpl = new mx.controls.streamingmedia.FLVPlayer(this._contentPath,this._videoHolder,this._totalTime);
}
}
else if(this.isMP3())
{
if(switchType)
{
this.releaseVideo();
}
if(this.isRtmp(this._contentPath))
{
this._playerImpl = new mx.controls.streamingmedia.RTMPPlayer(this._contentPath,mx.controls.streamingmedia.StreamingMediaConstants.MP3_MEDIA_TYPE,this._videoHolder,this._totalTime);
}
else
{
this.createEmptyMovieClip("_soundHolder",10);
this._playerImpl = new mx.controls.streamingmedia.MP3Player(this._contentPath,this._soundHolder);
}
}
if(_loc2_ != undefined)
{
this.__set__volume(_loc2_);
}
this.redraw(true);
this._playerImpl.removeAllListeners();
this._playerImpl.addListener(this);
this._started = false;
if(!switchType)
{
if(this._autoPlay)
{
this.play();
}
else
{
this.load();
}
this.poll(true);
if(this._pollId != null)
{
clearInterval(this._pollId);
}
this._pollId = setInterval(this,"poll",250);
}
}
function draw()
{
if(this.isFLV())
{
if(this.makeVideoVisible)
{
this._videoHolder._visible = true;
this.makeVideoVisible = false;
}
if(this._autoSize)
{
this.assignPreferredSize();
}
else if(this._aspectRatio)
{
var _loc4_ = this.__get__preferredWidth();
var _loc3_ = this.__get__preferredHeight();
var _loc2_ = Math.min(this.__get__width() / _loc4_,this.__get__height() / _loc3_);