
setup timeout problem probably related to volume
My web-app, which was properly playing songs, is not setting-up properly, when I run the jwplayer setup function, there is a long pause, 30 seconds(?), after which the following message is displayed;
Setup Timeout Error: Setup took longer than 30 seconds to complete.
When I look at the console window, I see the following:
Uncaught TypeError: Failed to set the 'volume' property on 'HTMLMediaElement': The provided double value is non-finite.
at l.T.volume (provider.html5.js:1)
at l.changeVideoProvider (jFpbAbho.js:3)
at l.setProvider (jFpbAbho.js:3)
at l.setActiveItem (jFpbAbho.js:3)
at l.setItemIndex (jFpbAbho.js:3)
at Object.P [as method] (jFpbAbho.js:5)
at u (jFpbAbho.js:4)
at l (jFpbAbho.js:4)
at d (jFpbAbho.js:4)
at n (jFpbAbho.js:4)
Here is the segment of JavaScript code that is being used in the setup function call:
function show_player( element, trackpath, title='' ) {
var parameters = { file: '/Resources/public/songs/' + trackpath,
title: title,
displaytitle: false,
description: '30 Second Sample',
height: 26,
width: 480,
timeSliderAbove: false,
controls: true,
controlbar: 'bottom',
autostart: true
};
show_player.media = 'song';
show_player.player = jwplayer( element );
show_player.player.setup( parameters );
After successfully getting JWPlayer to play songs I tried to implement a volume fade-out near the end of a song's play using several JWPlayer event handlers: Time, Seek, Volume, and Completed. After coding the fade-out, the volume did incrementally reduce over sever calls to Time, but after the song's volume dropped towards zero, I notice several clicks. When the volume reaches zero then the Seek function is used to jump to the end of the song. The Seek event handler used to prevent the user from seeking past the first 30 seconds of the playing song The Volume event handler is used to prevent the user from changing the volume during the song's fade-out period.
I then commented-out the song fade-out that call the setVolume function so the song would just stop, as it initially did when I had first successfully implemented the JWPlayer, but the web-application started displaying the setup timeout error. Note, there are no setVolume calls before the setup function calls, actually all setVolume calls have been commented out, so sense there isn't anything explicitly related to volume in the setup parameter values, why this error is happening.
This error also occurs in other JWPlayer that I use on other pages in my web-app, which do not use any of the code on the page where I first noticed the problem.
I remember that there is a volume cookie talked about somewhere on the internet, could that cookie be corrupted?
I'm using JWPlayer version 7. I understand that JWPlayer version 8 doesn't play YouTube videos, which I need to do on some of my web-app's pages.
My browser is the latest version of Chrome and I'm running Windows 10 64-bit.