Skip to content

Commit

Permalink
Add a view count when the video has an ad
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel authored and daniel committed Apr 6, 2018
1 parent c4ecca7 commit 6b9b7e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions view/include/video.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ class="embed-responsive-item video-js vjs-default-skin <?php echo $vjsClass; ?>
console.log("Change Video");
fullDuration = strToSeconds('<?php echo $video['duration']; ?>');
changeVideoSrc(player, <?php echo json_encode($sources); ?>);
addView(<?php echo $video['id']; ?>);
$(".ad").removeClass("ad");
return false;
});
Expand Down

0 comments on commit 6b9b7e5

Please sign in to comment.