Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Setup source code


Hello, I would like to understand a bit how the player works. I walk through the codes on Github. I can not figure out which of the files is used when I do:

jwplayer('myVideoId').setup({
file: '/uploads/example.mp4',
});

Can you help me with orientation in the scripts, please?

1 Community Answers

Cooper Reid

JW Player Support Agent  
0 rated :

This guide will be helpful for a basic setup:
http://support.jwplayer.com/customer/portal/articles/1406723-mp4-video-embed

You basically include jwplayer.js in the <head> of your page, and then tie your setup to a div with that id:

<div id="myVideoId"></div> <script> jwplayer('myVideoId').setup({ file: '/uploads/example.mp4', }); </script>

Kind Regards,
Cooper
Client Support Engineer, JWPlayer

This question has received the maximum number of answers.