Quantcast
Channel: User Liyun Zhang - MSFT - Stack Overflow
Viewing all articles
Browse latest Browse all 446

Answer by Liyun Zhang - MSFT for Running Custom Media Reciever for Chromecast Times out after 5 minutes Using .Net Maui

$
0
0
  1. 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);}
  1. 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.

Viewing all articles
Browse latest Browse all 446

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>