Commit 6d1915c6 authored by Laura Kalbag's avatar Laura Kalbag

Fix captions addin for Chrome

parent b2b69bbb
......@@ -558,7 +558,7 @@ function InitPxVideo(options) {
if (track.kind === "captions") {
track.addEventListener("cuechange",function() {
if (this.activeCues[0]) {
if (this.activeCues[0].hasOwnProperty("text")) {
if (this.activeCues[0].hasOwnProperty("text") || this.activeCues[0].text !== "") {
obj.captionsContainer.innerHTML = this.activeCues[0].text;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment