문제

I have a .onError function on my player, which by itself is fine. However, the problem is when the page is refreshed (user action) the .onError action fired, any way to avoid it?

도움이 되었습니까?

해결책

Just add this under your player's closing <script> tag:

<script>
window.onbeforeunload = stopPlayers;
function stopPlayers(){
     jwplayer().stop(true);
}
</script>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top