I'm streaming audio livestreams and audio on-demand m3u8 files from my iOS sender app to the chromecast. When doing so, the receivers screen is black and not showing any information about the current streamed audio. Only when the stream is paused, the information is shown. Is there any way to show the audio information while playing the audio? If mp3 files are streamed to the chromecast, the audio information is shown in playing and paused state.
I'm using the Cast 4.0.1 SDK, this is my media setup:
// setup metadata with playback information
let metadata = GCKMediaMetadata(metadataType: GCKMediaMetadataType.musicTrack)
metadata.setString(playback.title, forKey: kGCKMetadataKeyTitle)
metadata.setString(playback.subtitle, forKey: kGCKMetadataKeyArtist)
metadata.addImage(GCKImage(url: playback.imageSmall, width: 1024, height: 1024))
let streamType: GCKMediaStreamType = .buffered
let contentType: String = "application/vnd.apple.mpegurl"
let duration: Double = playback.duration
let mediaInfo = GCKMediaInformation(contentID: streamURL.absoluteString, streamType: streamType, contentType: contentType, metadata: metadata, streamDuration: duration, mediaTracks: nil, textTrackStyle: nil, customData: nil)
// seek to start position
let mediaLoadOptions = GCKMediaLoadOptions()
mediaLoadOptions.playPosition = playPosition
// load media and start playback
let request = session.remoteMediaClient?.loadMedia(mediaInfo, with: mediaLoadOptions)
request?.delegate = self