I am using TVJS to play a live stream video, and can populate the metadata of the initial show using the mediaItem object's title, subtitle, and description properties. However, when a new show begins (think TV scheduling), I want to update this metadata with data from the new show so that it is not out of date. I have the new information available to me in javascript but cannot get it to update while the live stream is playing (in the pull-down menu).
I tried updating the mediaItem object on the player's playlist property like so:
player.playlist.item(0).title = "title of the now playing show";
This does not produce an error in the console and running console.log(player.playlist.item(0)) shows the changes, but the pull-down does not change.
I also tried updating the player's currentMediaItem:
player.currentMediaItem.title = "title of the now playing show";
This also does not work (but doesn't produce a console error). Apple's documentation says this property is read-only, so no surprise there.
How do I programatically update the mediaItem metadata while the player is playing?