
Problem Error loading media, file could not be played when reloading the page
Hi,
I contact you because when i play a mp4 file and i reload the page or click anywhere on the page i have an error in the player: "Error loading media, file could not be played". ( can last btw 2/4 seconds )
How i can fix it please because this disturbing a lot the users.
Here is my code:
<div id="myElement">Loading the player ...</div>
<script type="text/javascript">
jwplayer("myElement").setup({
sources: [
{ file: "{{$flashvars.video_url|rtrim:"/"}}", label: "720p HD" },
{ file: "{{$flashvars.video_alt_url|rtrim:"/"}}", label: "480p" }
],
image: "{{$flashvars.preview_url}}",
skin: "{{$config.project_url}}/player/jw/skin_six/six.xml",
stretching:"exactfit",
width: "100%",
aspectratio: "16:9",
autostart: true
});
</script>
Could you help me please.
regards