Casting of google chrome in android app

0

I have found code to add the Casting functionality of google Chromecast to my app, but I find certain imports that do not work, among these:

import com.google.android.gms.cast.CastDevice;
import com.google.android.gms.cast.CastMediaControlIntent;
import com.google.android.gms.cast.CastRemoteDisplayLocalService;
import com.google.android.gms.common.api.Status;

Is there a library that should be downloaded?

In which case, where could I do it?

    
asked by pepito 28.06.2017 в 07:56
source

1 answer

1

You have to implement the following libraries in the build.gradle (Module: app) ..

implementation 'com.android.support:mediarouter-v7:26.1.0'
implementation 'com.google.android.gms:play-services-cast-framework:11.8.0'

I leave you link to the google page of how to integrate Cast in your application. Luck!! link

    
answered by 21.02.2018 в 12:45