1

I am using Google cast SDK for casting video in TV for android and ios application. Using this SDK I am able to cast video in Android TV, chromcast, But Fire TV stick device is not found in SDK. I want to implement video casting same like youtube. I research about it but not found any useful content. I have some question:

  1. Is google cast SDK support to cast video on Fire TV Stick or Ruko TV?
  2. What api used by youtube for casting video on Fire TV stick?

2 Answers2

0

i think your answer for

1.Is google cast SDK support to cast video on Fire TV Stick or Ruko TV? is here

https://www.alphr.com/how-to-mirror-chrome-to-a-firestick/

Ghost Boy
  • 28
  • 6
0

Here is your question's answer

  1. Is google cast SDK support to cast video on Fire TV Stick or Ruko TV?
  1. You have to call loadMedia api to cast video in firestick

here is an example which I used to cast video in firestick and other Chromecast devices.

 global.currentSession.client.loadMedia({
            autoplay: true,
            mediaInfo: {
              contentUrl:
                'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4',
              contentType: 'application/mp4', //content type is type of your video
              contentId:
                'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4', //ContentId is compulsory othervise video will not show
              id: '5',
              metadata: {
                // type: 'movie',
                title: 'Test Title ',
                images: [
                  {
                    url: 'https://t4.ftcdn.net/jpg/01/43/23/83/360_F_143238306_lh0ap42wgot36y44WybfQpvsJB5A1CHc.jpg',
                  },
                ],
              },
              customData: {
                type: 'application/mp4',
              },
            },
            repeatMode: 'all',
          });