![](https://secure.gravatar.com/avatar/a5b5e1a5d05665f30fde31ce945b9042?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
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