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

GA: No media_id found when loading file from m3u8


We are using jwplayer 7 premium and trying to log Google analytics while loading video from an m3u8 manifest as the file source. Our embed is like so:
jwplayer("jw-player-58488e56af1ab").setup(
{file: "//link.theplatform.com/s/jWXMfC/0WjjAq_0VzkP?formats=m3u",
type: "hls",
stretching: "exactfit",
autostart: true,
ga: { label: "title" }
});

I am seeing a Buffering event at the very start, but after that, the console keeps showing me "No media_id found" which is coming from the _sendPing(event) function in ping.js. it looks _player.getPlaylistItem().mediaid is returning null and so no event get fired off as the function just returns.

What am I missing or are there any other options I could try to get the tracking sorted out?
thx

1 Community Answers

George

JW Player Support Agent  
0 rated :

Hi,

Please refer to the following documents:

http://support.jwplayer.com/customer/en/portal/articles/2083166-new-analytics-about-the-media-id
http://support.jwplayer.com/customer/en/portal/articles/1489902-jw-platform-api-reference
https://support.jwplayer.com/customer/en/portal/articles/2142460-using-jw-player-analytics
https://support.jwplayer.com/customer/portal/articles/1758770

You’ll want to add the videos to your JW Player account as an external url and use the media id provided in your setup block.
https://developer.jwplayer.com/jw-platform/reference/v1/methods/videos/create.html

This question has received the maximum number of answers.