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

How to add mediaId to multi sources


Hello. I want to tracking which sources are most played.

Example is...

playerInstance.setup({
playlist: [{
sources: [{
file: "myFile.flv"
},{
file: "myFile.mp4"
},{
file: "myFile.webm"
}],
image: 'image.jpg',
title: 'This is a multisource video!',
mediaid: '123456'
}]
});

"How to tracking *.flv or *.mp4 or *.webm to played?"

I tried
playerInstance.setup({
playlist: [{
sources: [{
file: "myFile.flv",
mediaid: '11111' //already video key
},{
file: "myFile.mp4",
mediaid: '22222'
},{
file: "myFile.webm",
mediaid: '33333'
}],
image: 'image.jpg',
title: 'This is a multisource video!',

}]
});

and not working

ps. sorry about my english

3 Community Answers

Alex

JW Player Support Agent  
0 rated :

Hi, there.

Your first example is actually set up correctly, but you need to be using the Media ID that our Account Dashboard automatically generates for you. All you would have to do to obtain the Media ID is:

1. Login to your Account Dashboard.
2. Click on Content > Videos on the menu on the left.
3. Click on the red “Add Video URL” button and paste the URL to any one of the sources. You do not have to add them all – only one.
4. Once added, click on the name of the piece of content and then you will find the Media ID to use listed in the box on the left of the page.

Please let me know if you need any more help or have any other questions.

Thank you!

j...

User  
0 rated :

Hi Alex,

Is it possible to create my own media id & pass it to jw player & then jwplayer use that media id for video analytics? Instead of using the media id which is generated by jw player

Thanks.

Alex

JW Player Support Agent  
0 rated :

As long as it is eight characters long, it is possible for you to pass along your own custom Media ID. However, it is not recommended as there would be no way for our analytics platform to know the title of the content that is being played and every piece of content will be listed as “Content Unavailable”. It is strongly recommended that you use the Media IDs that are generated by our platform.

Please let me know if you need any more help or have any other questions.

Thank you!

This question has received the maximum number of answers.