Commit f17e0b45 authored by Laura Kalbag's avatar Laura Kalbag

Update for Chrome bug

parent 3d2f7d07
......@@ -557,7 +557,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