private async void ChromeCastClient_ApplicationStarted(object sender, Models.ChromecastStatus.ChromecastApplication e)
        {
            var track = new Track
            {
                Name           = "English Subtitle",
                TrackId        = 100,
                Type           = "TEXT",
                SubType        = "captions",
                Language       = "en-US",
                TrackContentId =
                    "https://commondatastorage.googleapis.com/gtv-videos-bucket/CastVideos/tracks/DesigningForGoogleCast-en.vtt"
            };

            if (_controller == null)
            {
                _controller = await ChromecastService.ChromeCastClient.LaunchSharpCaster();
            }

            await _controller.LoadMedia("https://commondatastorage.googleapis.com/gtv-videos-bucket/CastVideos/mp4/DesigningForGoogleCast.mp4", "video/mp4", null, "BUFFERED", 0D, null, new[] { track }, new[] { 100 });
        }
Exemplo n.º 2
0
 private async void Client_ApplicationStarted(object sender, Models.ChromecastStatus.ChromecastApplication e)
 {
     await ShowMessage($"Application {e.DisplayName} has launched");
 }