![](https://secure.gravatar.com/avatar/c00cfe54c64d6e38c2a5ed395284dfb3?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
video player
I have recorded video by camera and it saved as mp4 but when I tried to play it on the web page by jw player I got Error loading media file could not be played
I have recorded video by camera and it saved as mp4 but when I tried to play it on the web page by jw player I got Error loading media file could not be played
Are you hosting your content with us? Do you have a link to a page with your player that we can look at?
No I'm using it on the local host
and this the code I used to play the video
<script type="text/javascript">
jwplayer("aa").setup({
flashplayer: "jwplayer/player.swf",
file: "~/Videos/E-learning.mp4",
width: "550",
height: "400",
primary:'html5',
poster: 'images/notAvailble.jpg',
});
</script>
Try following one of our basic embedding options available at: https://support.jwplayer.com/customer/portal/articles/1406723-basic-video-embedding-options#fndtn-method-4