Insert primary:flash Into All Video Players Site-Wide
Hello,
I'm working on a site with 500+ videos that have already been embedded using JW Player. They use the cloud player (just recently upgraded from JW6 to JW7) so the script exists in the <head> of the site and the individual players are embedded across 500+ individual pages. We just discovered that a lot of the videos will intermittently have "glitches" when being played in the Firefox browser. Sometimes the audio or video (or both) will drop out, sometimes the files are slow to load, sometimes they start and stop frequently, etc., and sometimes they play normally.
The videos are all .mp4's (with H.264/AAC codecs) and they seem to play fine in all other browsers. We discovered that adding the "primary: 'flash'" property resolves the issue, though the flash player doesn't seem quite as nice...you can't skip ahead in the video and you can't click in the player to pause/play. However, since we're not finding any other solutions (even re-conversions of the original videos haven't yielded any different results), setting all the players to default to flash seems like it may be our only option.
So, I'm wondering if there is a way to use some kind of script to insert the "primary: 'flash'" property into all our players, perhaps from within the <head> tag so that it modifies all players across all pages. This would be ideal since we're hoping that eventually we would be able to remove this script/property once we figure out a better solution (or once Firefox or JW Player release an upgrade that resolves the issue).
Furthermore, if the script could be specific to only be called when the Firefox browser is being used by the visitor, that would be a big bonus.
Here's an example of the script for one of our players:
<div id="myvideo">Loading the player...</div>
<script type="text/javascript">
jwplayer("myvideo").setup({
file: "/video/myvideo.mp4",
image: "/images/thumbnail.jpg",
title: "My Video",
width: "100%",
aspectratio: "16:12"
});
</script>
Any help with this would be greatly appreciated!
Thank you,
JP