Media Analytics - JW Player integration

Hello,

I just setup a new Media Analytics instance, and i try to track a JW player instance. The tracking working fine, but the video url is always change.

https://cdn.connectmedia.hu/10049/ab2d545332b0e0d8c0a4861f6f3c175a/58ff64bf/index.m3u8

The second, and third parameter is hash, i would like to skip that paramteter. It change for every user.

I could setup a title tag for jw player, but i don’t know how to use the data-piwik-title and data-piwik-resource tags on the video object. Becouse it is created by the JW player.

Any idea?

This is indeed tricky. Problem is flowplayer seems to not really let you set any attributes. In your website HTML, I presume you have a div like

<div id="player_1"></div>
<script type="text/javascript">
jwplayer('player_1').setup({
    file: "test.mp4"
  });

or do you integrate JW Player differently?

We could add a new feature to recognize a custom resource on the “player_1” div or maybe add a custom option to JW Player

We have just released a new version that lets you set a custom resource URL for jwplayer. Have a look at Enriching and Restricting: Integrate - Piwik Analytics - Developer Docs - v3 to see how it works. Unfortunately, it was not possible to use an HTML attribute as JW player completely replaces the DIV element. Also it needs a playlist item in order to set custom attributes unfortunately.

Hello,

I change the jw player embed code, but it seems don’t change the sending url.
And the code send two http request in every 10 second:

https://ps.connectmedia.hu/piwik.php?ma_id=xMHcMLukV72zWYN2&ma_ti=&ma_pn=jwplayer&ma_mt=Video&ma_re=https%3A%2F%2Fwebtest.connectmedia.hu%2Flive%2Fm4%2Fnogeo%2F7.10.x&ma_st=547&ma_ps=575&ma_le=NaN&ma_ttp=3&ma_w=555&ma_h=360&ma_fs=0&&idsite=3&rec=1&r=226752&h=10&m=49&s=2&url=https%3A%2F%2Fwebtest.connectmedia.hu%2Flive%2Fm4%2Fnogeo%2F7.10.x&urlref=https%3A%2F%2Fwebtest.connectmedia.hu%2Fusers%2Flogin&_id=3f38d026e28320bd&_idts=1493195965&_idvc=1&_idn=0&_refts=0&_viewts=1493195965&send_image=1&pdf=1&qt=0&realp=0&wma=0&dir=0&fla=1&java=0&gears=0&ag=0&cookie=1&res=2560x1440&gt_ms=37&pv_id=Eyo0ph

https://ps.connectmedia.hu/piwik.php?ma_id=t8yGy1hK8KIwFYCb&ma_ti=m4&ma_pn=jwplayer&ma_mt=Video&ma_re=https%3A%2F%2Fcdn.connectmedia.hu%2F10049%2Ff9fcb8d0059b5d1485a62d1e25fa7bf4%2F59005cbc%2Findex.m3u8&ma_st=552&ma_ps=591&ma_le=NaN&ma_ttp=&ma_w=555&ma_h=360&ma_fs=0&&idsite=3&rec=1&r=847663&h=10&m=49&s=18&url=https%3A%2F%2Fwebtest.connectmedia.hu%2Flive%2Fm4%2Fnogeo%2F7.10.x&urlref=https%3A%2F%2Fwebtest.connectmedia.hu%2Fusers%2Flogin&_id=3f38d026e28320bd&_idts=1493195965&_idvc=1&_idn=0&_refts=0&_viewts=1493195965&send_image=1&pdf=1&qt=0&realp=0&wma=0&dir=0&fla=1&java=0&gears=0&ag=0&cookie=1&res=2560x1440&gt_ms=37&pv_id=Eyo0ph

	jwplayer('playervUGcjlFjaxvg').setup({
	file: '//cdn.connectmedia.hu/10049/83e8cd07cb44f0a4c7090c7f2ef58c0d/59008103/index.m3u8',
	width: '600',
	height: '360',
	aspectratio: '16:9',
	autostart: true,
	androidhls: 'true',
	mute: false,
    hlshtml: true,
    fallback: false,
    title: "m4",
    piwikResource: "//cdn.connectmedia.hu/10049/index.m3u8"
});