- You can try to load non-existent image from the sender to the receiver every 4 minutes:
CastSession session = mSessionManager.CurrentCastSession;if (null != session) { MediaInfo.Builder builder = new MediaInfo.Builder("https://some-inaudible-clip.png") .SetStreamType(StreamType.Buffered) .SetContentType("image/png") .SetMetadata(new MediaMetadata(MediaMetadataType.Photo)); session.RemoteMediaClient.Load(builder.Build(), true);}
- You can also try to simply re-declare setTimeout as a dummy no-op function before loading the Chromecast receiver script. For more information, you can refer to this answer.