cuechange triggers before time for metadata tracks in iphone 11.3

If metadata TXXX is injected in HLS stream using streaming server Wowza, cuechange event is triggered in player video.js, 4-8secs before player playback reaches that position where metadata is injected. This issue is not always visible. Mostly cuechange is triggered at eact time but often cuechange is triggered before time.

I am using native texttracks in safari of iphone 6s and videojs emulated texttracks in windows chrome. Cue start time is same in both browsers. In chrome cuechange is triggered at time but in safari cuechange is triggered before time. This issue is mostly visible when stream is playing with 1-2 min latency in safari of iphone. how can I fix this issue?

Where can I view this code for texttracks/cuechange ? I want to know how it decides that now cuechange should be triggered?

Replies

All I can find is https://developer.apple.com/documentation/webkitjs/texttrack/1630886-oncuechange but it is incomplete information. I want to know more details and source code

now and to your acset ios 12