Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29606

how to do chrome cast in JwPlayer for android

$
0
0

I'm trying to cast the videos playing on Jwplayer in near by devices like Tv, Laptop etc.

i followed this tutorial https://developer.jwplayer.com/jwplayer/docs/android-enable-casting-to-chromecast-devices

then on below code

CastOptions castOptions = new CastOptions.Builder()//                .setReceiverApplicationId(context.getString(R.string.app_id))                .setLaunchOptions(launchOptions)                .build();

I didn't get setReceiverApplicationId as i don't have such a id.

So, i went here How do you find your Google Cast App ID (app_id) in the 2017 Google Play Developer Console? and decided not to pay before testing.

Then on Jw docs it is mentioned setReceiverApplicationId() allows you to filter discovery results and to launch the receiver app when a cast session starts

Since i don't need filters i commented that line.

Now i got a cast icon on xml. but when I tap it nothing is happening.

Please someone tell me

  • Is app_id is necessary how to get it ?

  • How to test the chrome casting ?


Viewing all articles
Browse latest Browse all 29606

Trending Articles