修复连麦下麦时会画面卡住的问题
This commit is contained in:
parent
9f9c02b7e7
commit
eaafcdd444
@ -338,6 +338,11 @@ public class LiveExoPlayerManager {
|
|||||||
public void play() {
|
public void play() {
|
||||||
getNowPlayer().play();
|
getNowPlayer().play();
|
||||||
}
|
}
|
||||||
|
public void replay(){
|
||||||
|
String tmp=url;
|
||||||
|
url=null;
|
||||||
|
startUrl(tmp);
|
||||||
|
}
|
||||||
|
|
||||||
public void clearFrame() {
|
public void clearFrame() {
|
||||||
mainView.setKeepContentOnPlayerReset(false);
|
mainView.setKeepContentOnPlayerReset(false);
|
||||||
|
@ -263,8 +263,7 @@ public class LivePlayRyViewHolder extends LiveRoomPlayViewHolder {
|
|||||||
if (!mPlayer.isPlaying()) {
|
if (!mPlayer.isPlaying()) {
|
||||||
new Handler(Looper.getMainLooper())
|
new Handler(Looper.getMainLooper())
|
||||||
.postDelayed(() -> {
|
.postDelayed(() -> {
|
||||||
mPlayer.stop();
|
mPlayer.replay();
|
||||||
mPlayer.play();
|
|
||||||
// ToastUtil.show("强制播放" + val);
|
// ToastUtil.show("强制播放" + val);
|
||||||
}, 100);
|
}, 100);
|
||||||
}
|
}
|
||||||
@ -1041,6 +1040,7 @@ public class LivePlayRyViewHolder extends LiveRoomPlayViewHolder {
|
|||||||
"timestampNs:" + videoFrame.getTimestampNs() + "\n" +
|
"timestampNs:" + videoFrame.getTimestampNs() + "\n" +
|
||||||
"分辨率:" + videoFrame.getBuffer().getHeight() + "x" + videoFrame.getBuffer().getWidth() + "\n" +
|
"分辨率:" + videoFrame.getBuffer().getHeight() + "x" + videoFrame.getBuffer().getWidth() + "\n" +
|
||||||
"当前时间:" + new SimpleDateFormat("HH:mm:ss", Locale.CHINA).format(new Date()) + "\n";
|
"当前时间:" + new SimpleDateFormat("HH:mm:ss", Locale.CHINA).format(new Date()) + "\n";
|
||||||
|
System.out.println("debugText = " + debugText);
|
||||||
new Handler(Looper.getMainLooper()).post(() -> {
|
new Handler(Looper.getMainLooper()).post(() -> {
|
||||||
debugView.setText(debugText);
|
debugView.setText(debugText);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user