com.connectsdk.service.google_cast.CastServiceChannel

Here are the examples of the java api class com.connectsdk.service.google_cast.CastServiceChannel taken from open source projects.

1. CastWebAppSession#connect()

Project: popcorn-android-legacy
File: CastWebAppSession.java
@Override
public void connect(final ResponseListener<Object> listener) {
    if (castServiceChannel != null) {
        disconnectFromWebApp();
    }
    castServiceChannel = new CastServiceChannel(launchSession.getAppId(), this);
    try {
        Cast.CastApi.setMessageReceivedCallbacks(service.getApiClient(), castServiceChannel.getNamespace(), castServiceChannel);
        Util.postSuccess(listener, null);
    } catch (IOException e) {
        castServiceChannel = null;
        Util.postError(listener, new ServiceCommandError(0, "Failed to create channel", null));
    }
}