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

MediaId


I'm using self-hosted content and want to use JW Player Analytics.

Can I generate my own mediaIds?

If I have the same video but in two formats (mp4 and webm, for instance), do I need just one mediaId for both or one mediaId to each format?

1 Community Answers

Alex

JW Player Support Agent  
2 rated :

Hi, there.

You can definitely use self-hosted content and still populate analytics, but you would need to at least add the URL to your content to your Account Dashboard. Once you add the URL, you will then be given the Media ID to use in your embed code. Here’s how you would be able to accomplish this:

1. Login to your Account Dashboard and click on “Content”.
2. Click on the down arrow next to the “Add Upload” button and choose “Add via URL”. The button will then change to reflect this. Click on “Add URLs”.
3. Copy and paste the URL to your content in the dialog that pops up. You can add more than one at a time by clicking the “+ Another” button. Please note that you only have to add one URL per piece of content, not source. So, if you have a MP4 and WebM source for the same piece of content, you would only add one.
4. Once you finish adding the URL, they will appear in your Content list. You can click on the name of the piece of content to be brought to its details page, where you can find the newly-generated Media ID on the bottom, left-hand side.

You can now add the Media ID you received to your embed code, in the same “level” as the sources option would go. However, if you have an embed that only has one source and you are just using the file option, it would be on the same level as file.

So, for example, if you have one piece of content, with two sources (MP4 and WebM), and were given the Media ID of “eXaMpLe1”, the section of your embed code would look like this:

playlist: [{
  sources: [{
    file: "http://www.example.com/file.mp4"
  },{
    file: "http://www.example.com/file.webm"
  }],
  mediaid: "eXaMpLe1"
}]

Once you add the URLs of the content to your Dashboard, you’d want to keep them there because that is how our Analytics page will know what the title of the video is.

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.