Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How to track video milestones in brightcove html5 player using adobe DTM?

Avatar

Avatar
Validate 1
Level 2
payald98451196
Level 2

Likes

4 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
payald98451196
Level 2

Likes

4 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
View profile
payald98451196
Level 2

25-09-2017

I have a query regarding how to track milestones(Video) in brightcove player by using html 5.

There is already predefined events available for PLAY, PAUSE, STOP, but for the tracking the milestones i am unable to track it via DTM.

Below mentioned is the code,which i have written for PLAY & PAUSE -

videojs('te-brightcove-trigger-video_html5_api').on('play',function(){
  var myPlayer = this;
  console.log('play');
  s.linkTrackVars='events,eVar21,prop21';
  s.linkTrackEvents='event22';
  s.eVar21 = myPlayer.mediainfo.name;
  s.prop21 = myPlayer.mediainfo.name;
  s.events = 'event22';
  s.tl(this, 'o');
});


videojs('te-brightcove-trigger-video_html5_api').on('pause',function(){
  console.log('pause');
  var myPlayer = this;
  s.linkTrackVars='events,eVar21,prop21';
  s.linkTrackEvents='event21=6,event24';
  s.eVar21 = myPlayer.mediainfo.name;
  s.prop21 = myPlayer.mediainfo.name;
  s.events = 'event21=6';
  s.events = 'event24';
  s.tl(this, 'o');
});

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 1
Level 1
stevenl41634786
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

2 solutions
Top badges earned
Affirm 1
View profile

Avatar
Affirm 1
Level 1
stevenl41634786
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

2 solutions
Top badges earned
Affirm 1
View profile
stevenl41634786
Level 1

03-10-2017

At a high level, after the 'play' event has occurred, you will need to bind additional code to monitor the progress of the video with something like setInterval. Within that function, you'd need to compare the "duration" of the video object to the "currentTime" in order to figure out if you had reached one of your milestones. You'd do some division of the two, currentTime/duration *100 to get a percentage to compare against and fire off a tag when you meet the milestone criteria.

Answers (2)

Answers (2)

Avatar

Avatar
Validate 1
Level 2
payald98451196
Level 2

Likes

4 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
payald98451196
Level 2

Likes

4 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
View profile
payald98451196
Level 2

25-09-2017

Hi John T Smith​,

DTM is a Dynamic Tag Management Tool which is provided by Adobe Solutions to manage the user generated tags.

It was originally called as a Satellite.

[Here is the list of all Adobe forums... https://forums.adobe.com/welcome]

[Moved from generic Cloud/Setup forum to specific Program forum... Mod]

Avatar

Avatar
Boost 5
Level 2
John_T_Smith
Level 2

Likes

5 likes

Total Posts

28 posts

Correct Reply

4 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 3
Affirm 1
View profile

Avatar
Boost 5
Level 2
John_T_Smith
Level 2

Likes

5 likes

Total Posts

28 posts

Correct Reply

4 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 3
Affirm 1
View profile
John_T_Smith
Level 2

25-09-2017

What is the full name of DTM?

Please post the name of the program you use so a Moderator may move this message to the program forum