1

We're currently supporting track switching on our client just fine but I really need to know when a user switches to another subtitle or audio language (on the client) so that I can persist it going forward.

Is there a message that I can listen for that would alert me when this switch happens within the SDK (and hopefully gives me the language?)

allocate
  • 1,323
  • 3
  • 14
  • 28

1 Answers1

2

Based from this documentation, your application should register a GCKMediaControlChannelDelegate. If the GCKMediaTextTrackStyle of the current media changes, then all of the connected senders will be notified through both the mediaControlChannelDidUpdateMetadata: and the mediaControlChannelDidUpdateStatus: callbacks. Be noted that the list of tracks associated with the currently loaded media cannot be changed. If needed, you have to update the tracks information on the GCKMediaInformation object and reload the media.

abielita
  • 13,147
  • 2
  • 17
  • 59