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

How to a play video with video id


Hi,
I have uploaded my video into jwplayer. Now, I am trying to play a video in my website using jwplayer API.In jwplayer setup function i am passing file parameter
with video file extension .mp4 as below

player = jwplayer('myElement');
player.setup({
file: "http://content.jwplatform.com/videos/CDQhRiNs-cgMItahJ.mp4",
image: "Campaign/Campaign_41094_Large_.png",
autostart: false,
skin:{
name:"vapor",
},

});

Here, I don't want to mention the extension extensions such as mp4 or mp3. is it possible use video id in place of
file path as show below

file: "http://content.jwplatform.com/videos/CDQhRiNs-cgMItahj

1 Community Answers

George

JW Player Support Agent  
0 rated :

Hi,

For video mediaID’s You could use:

jwplayer().setup({
playlist:“https://cdn.jwplayer.com/v2/media/CDQhRiNs?format=json”
});

This question has received the maximum number of answers.