Embed: player reporting

This commit is contained in:
Cat 2021-06-02 15:11:45 +02:00 committed by Thulinma
parent d9d72aab99
commit 35a98178f1
7 changed files with 240 additions and 24 deletions

View file

@ -467,6 +467,11 @@ p.prototype.build = function (MistVideo,callback) {
}
}
}
if (MistVideo.reporting && msg.data.tracks) {
MistVideo.reporting.stats.d.tracks = msg.data.tracks.join(",");
}
break;
}
case "tracks": {

View file

@ -157,6 +157,10 @@ p.prototype.build = function (MistVideo,callback) {
currenttracks = ev.tracks;
}
if (MistVideo.reporting && ev.tracks) {
MistVideo.reporting.stats.d.tracks = ev.tracks.join(",");
}
},
on_seek: function(e){
var thisPlayer = this;