gpt4 book ai didi

Android Exoplayer : What is 'playWhenReady' in "onPlayerStateChanged(boolean playWhenReady, int playbackState)" method

转载 作者:行者123 更新时间:2023-11-29 18:47:58 29 4
gpt4 key购买 nike

@Override
public void onPlayerStateChanged(boolean playWhenReady, int playbackState) {
switch (playbackState) {
case Player.STATE_IDLE: **//1.When this happens ?**

if (playWhenReady==false) { **//2.What "playWhenReady" indicate ?**

**//3.When this condition occur ?**
}
else{
**//4.When this condition occur ?**
}
break;
}
}

onPlayerStateChanged(boolean playWhenReady, int playbackState)”方法中的“playWhenReady”是什么? & 玩家何时进入“Player.STATE_IDLE”?给定代码中提及的所有四个阶段何时发生?

最佳答案

关于Android Exoplayer : What is 'playWhenReady' in "onPlayerStateChanged(boolean playWhenReady, int playbackState)" method,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51428285/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com