function onPlayerReady(event)
{
event.target.cueVideoById({
videoId: videos[index].vid,
startSeconds: videos[index].startSeconds,
endSeconds: videos[index].endSeconds,
suggestedQuality: videos[index].suggestedQuality
});
event.target.playVideo();
console.log('++++++++++++++++++++');
console.log(player.getVolume());
console.log(player.getDuration());
console.log(player.getCurrentTime());
console.log('++++++++++++++++++++');
}
그리고 여기에 출력이 있습니다
++++++++++++++++++++
찾으시는 주소가 없습니다
찾으시는 주소가 없습니다
찾으시는 주소가 없습니다
++++++++++++++++++++
내가 도대체 뭘 잘못하고있는 겁니까?
마침내 나는 답을 얻었다
이 기능은 플레이어가 재생 중일 때 작동하고 그렇지 않으면 작동하지 않습니다.
if (event.data === YT.PlayerState.PLAYING) {
console.log(player.getVolume());
console.log(player.getDuration());
console.log(player.getCurrentTime());
}
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다