HTML5 <audio> textTrack.kind=subtitles cueChange event not working in FireFox

后端 未结 4 2543
北荒
北荒 2021-02-20 01:56

UPDATE:

This issue no longer existing FireFox, cuechange now works. Embedded base64 images also render.

The original code is a simple implementation of am

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-20 02:12

    Thanks for answer from avaunt! I think there is a typo in initial code. When I tested it both in FireFox and IE, it didn't work.

    The line in question is

    a = v[i].activeCues;
    

    and it should read

    a = t[i].activeCues;
    

    since activeCues is a property of the textTracks object, not video object. After this change, it works!

    I tried to make this post as a reply to his post, but system did not let me. So adding it as an answer.

提交回复
热议问题