Inheritance: BaseMediaController
Example #1
0
        public static async Task <SharpCasterDemoController> LaunchSharpCaster(this ChromeCastClient client)
        {
            var controller = new SharpCasterDemoController(client);
            await controller.LaunchApplication();

            return(controller);
        }
Example #2
0
 private static async void ChromeCastClient_Connected(object sender, EventArgs e)
 {
     System.Console.WriteLine("Connected to chromecast");
     if (_controller == null)
     {
         _controller = await ChromecastService.ChromeCastClient.LaunchSharpCaster();
     }
 }
Example #3
0
        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 });

        }
Example #4
0
        private async void ChromeCastClient_ConnectedChanged(object sender, EventArgs e)
        {
            _controller = await ChromecastService.ChromeCastClient.LaunchSharpCaster();

        }
 private async void ChromeCastClient_Connected(object sender, EventArgs e)
 {
     await ExecuteOnUiThread(() =>
     {
         ConnectedToChromecast = true;
     });
     _controller = await _chromecastService.ChromeCastClient.LaunchSharpCaster();
 }
 public static async Task<SharpCasterDemoController> LaunchSharpCaster(this ChromeCastClient client)
 {
     var controller = new SharpCasterDemoController(client);
     await controller.LaunchApplication();
     return controller;
 }