unfortunately the demo page, I can not put an example of the error, if anything, can copy the code that I wrote in the first post, personally I have not earned it ... By the way heard that the events in this player does not work in all browsers?
I don't understand.. I have the same problem. no events are fired at all. there are no JS errors, the player is loaded fine and the songs play OK. everything is just OK, but the events are never fired...
Hello everyone. I'm having the same issues here. I see events fire perfectly on OS X with Chrome only. They work perfectly with IE8, Chrome, and FF4 on Windows.
FF4 and Safari on OS X I see no events being fired either in the console or obviously in the server log. The following is a snippet of what we're doing: bc.. jwplayer('viewer').setup({ flashplayer: '/media/js/jw5-5/player.swf', height: 320, width: w, controlbar: 'over', screencolor: '#000000', autostart: true, skin: '/media/js/jw5-5/modieus.zip', file: url+vid, provider: 'rtmp', 'rtmp.loadbalance': 'true', tags: trsrc });
Sorry, these particular items are company protected and behind a login. I have discovered that for some reason the API doesn't work consistently unless you're running through an actual web server. The local django test server that I was causing issues.
Now, however, I've noticed something related, but different. Across all browsers the API stops firing events after a page refresh or if the same page is opened in a separate tab or window during the same session. I'm using some randomization to name everything---from jwplayer instance, to the <div> being used to load the page, etc with a js function. Even then, no matter what only the first video first page shows any API activity and then only until you refresh the page. Any ideas on that one?
examples: bc.. function randomString() { var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz"; var string_length = 12; var randomstring = ''; for (var i=0; i<string_length; i++) { var rnum = Math.floor(Math.random() * chars.length); randomstring += chars.substring(rnum,rnum+1); } return randomstring; }
var localTrack; var localPlayer;
function initVid(vid,player,url,title,trsrc){ //gen key var ci = randomString();
var mediaspace_attributes=document.getElementById("mediaspace").attributes
//alert('local random string=='+context_identifier);
//console.log('medial library initVid trsrc=='+trsrc); //Need to set the info tab to active at this point tabs = Ext.getCmp('upperLayout').getComponent('catcont').getComponent('cattabs'); tabs.setActiveTab('t3'); try { var assetTitle = Ext.get('vidTitle'); assetTitle.update(title); var w; switch (player) { case 1: //4x3 limelight CDN w = "475"; break; case 2: //16x9 limelight CDN w = "563"; break; case 8:
w = "475"; break; case 9: w = "563"; break; case 19: w = "533"; break; case 20: w = "425"; break; case 21: w = "475"; break; } /* if(jwplayer('viewer')){ jwplayer().remove(); } */ if (player == 8 || player == 9 || player == 20) { window['localPlayer'+ci] = jwplayer('mediaspace_'+ci).setup({ flashplayer: '/media/js/jw5-5/player.swf?clear='+context_identifier+Math.floor(Math.random()*1000), id: 'jw_'+ci, height: 320, width: w, controlbar: 'over', screencolor: '#000000', autostart: true, skin: '/media/js/jw5-5/modieus.zip', file: url + vid, provider: 'rtmp', 'rtmp.loadbalance': 'true', //tags: trsrc
}); console.log('playertype 22 line 100, url=='+url); //wplayer().load({'file':"'"+url+"'", 'provider':'rtmp', 'rtmp.loadbalance':'true'}); } else { Ext.MessageBox.alert('Player Selection Error', 'The wrong player has been chosen. Please contact support.') }
console.log('junk','Mike wants me to throw this junk {{ context_identifier }}');
Okay, so I've ruled out flash cache as the issue. Not only am I being ridiculous with cache hacks, but just to be sure I adjust my global flash settings so that the site has 0 storage and "never ask again" even though I am certain that it is downloading the files everytime....same result.
Just to be clear about procedure: 1. Load page 2. click button to load video - video plays, api events are fired - 3. either click the reload / refresh button, open a second tab to the same page, or navigate away and return to the page. 4. click button to load video
- video plays, NO API EVENTS are fired -
5. either clear browser cache or close browser, repoen and repeat steps 1-2.