Skip to content

Commit a905924

Browse files
应元东应元东
authored andcommitted
use default webgl option
1 parent 65e5626 commit a905924

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

WebRtmpPlayer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class WebRtmpPlayer
1414
this._lastRenderTime = 0;
1515

1616
this._decoder = new Decoder();
17-
this._player = new Player({ useWorker: false, webgl: true });
17+
this._player = new Player({ useWorker: false });
1818
this._url = {host: wsHost, app: app, tcUrl: tcUrl, stream: streamName};
1919

2020
this._decoder.onPictureDecoded = this._onPictureDecoded.bind(this);
@@ -51,13 +51,13 @@ class WebRtmpPlayer
5151
if(this._lastRenderTime && skipFrame > 0)
5252
{
5353
console.log("SkipFrmae = " + skipFrame);
54-
while(skipFrame-- > 0 && this._frameQ.length > 0) this._frameQ.shift();
54+
//while(skipFrame-- > 0 && this._frameQ.length > 0) this._frameQ.shift();
5555
}
5656

5757
var frame = this._frameQ.shift();
5858
if(frame)
5959
{
60-
this._player.renderFrameWebGL(frame);
60+
this._player.renderFrame(frame);
6161
}
6262
this._lastRenderTime = now;
6363
}

0 commit comments

Comments
 (0)