http-streaming icon indicating copy to clipboard operation
http-streaming copied to clipboard

Timed metadata not being triggered on iOS

Open berrutti opened this issue 3 years ago • 6 comments

Description

Timed metadata is not being triggered on iOS.

Steps to reproduce

  1. Open this page on an iOS device: https://codepen.io/matiasmovingimage/pen/zYyBawK
  2. Press the play button, play some seconds

Results

Expected

Open the same page on Chrome on desktop and you will see the console output below the player:

----Add track callback executed----
----Add track callback executed----
----Add track callback executed----
----Add track callback executed----
----Add track callback executed----
----Add track callback executed----
----Add track callback executed----
{"cues_":[{"frame":{"id":"TXXX","data":" *** THIS IS Timed MetaData @ -- 00:00:00.0 *** ","key":"TXXX","description":"","value":" *** THIS IS Timed MetaData @ -- 00:00:00.0 *** "},"value":{"id":"TXXX","data":" *** THIS IS Timed MetaData @ -- 00:00:00.0 *** ","key":"TXXX","description":"","value":" *** THIS IS Timed MetaData @ -- 00:00:00.0 *** "}}],"length_":1}
...

Current

On iOS, only the first part is printed on this "console", the timed metadata information is not printed. Active cues information is empty.

Error output

No errors

Additional Information

videojs-http-streaming version

Latest

videojs version

Latest

Browsers

Chrome, Safari

Platforms

iOS (iPhone 13)

Other Plugins

None

Other JavaScript

React

berrutti avatar Nov 15 '22 12:11 berrutti

👋 Thanks for opening your first issue here! 👋

If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines.

welcome[bot] avatar Nov 15 '22 12:11 welcome[bot]

Stream URL 404s.

mister-ben avatar Nov 15 '22 14:11 mister-ben

Hey @mister-ben Yes, the stream was down. I started it again. Will try to keep it running the entire day

berrutti avatar Nov 16 '22 10:11 berrutti

As an open source project with limited resources, it's very unlikely we will be able to investigate issues reported the same day (or week, or month). Is there a way you could capture part of the stream that reproduces the issue?

Also, on iOS, it seems unlikely that VHS is even in use since that platform does not support MSE.

misteroneill avatar Mar 31 '23 16:03 misteroneill

Hey @mister-ben @misteroneill I changed a bit the issue, since I still don't have a Wowza recording I can share with you. In this case I used Apple's official HLS testing URLs to show an empty timed metadata cue. Please let me know if this is useful.

Happy holidays.

berrutti avatar Dec 29 '23 13:12 berrutti

On iOS the track's mode starts out disabled. If you set it to hidden then cues are parsed and cuechange events occur. JSON.stringify() can't parse a native DataCue however.

mister-ben avatar Jan 02 '24 09:01 mister-ben