Search in sources :

Example 11 with VideoCastConsumer

use of com.google.android.libraries.cast.companionlibrary.cast.callbacks.VideoCastConsumer in project Shuttle by timusus.

the class VideoCastManager method onApplicationStatusChanged.

private void onApplicationStatusChanged() {
    if (!isConnected()) {
        return;
    }
    try {
        String appStatus = Cast.CastApi.getApplicationStatus(mApiClient);
        LOGD(TAG, "onApplicationStatusChanged() reached: " + appStatus);
        for (VideoCastConsumer consumer : mVideoConsumers) {
            consumer.onApplicationStatusChanged(appStatus);
        }
    } catch (IllegalStateException e) {
        LOGE(TAG, "onApplicationStatusChanged()", e);
    }
}
Also used : VideoCastConsumer(com.google.android.libraries.cast.companionlibrary.cast.callbacks.VideoCastConsumer)

Aggregations

VideoCastConsumer (com.google.android.libraries.cast.companionlibrary.cast.callbacks.VideoCastConsumer)11 NoConnectionException (com.google.android.libraries.cast.companionlibrary.cast.exceptions.NoConnectionException)5 TransientNetworkDisconnectionException (com.google.android.libraries.cast.companionlibrary.cast.exceptions.TransientNetworkDisconnectionException)5 MediaQueueItem (com.google.android.gms.cast.MediaQueueItem)2 MediaChannelResult (com.google.android.gms.cast.RemoteMediaPlayer.MediaChannelResult)2 IOException (java.io.IOException)2 SuppressLint (android.annotation.SuppressLint)1 NotFoundException (android.content.res.Resources.NotFoundException)1 Point (android.graphics.Point)1 RouteInfo (android.support.v7.media.MediaRouter.RouteInfo)1 MessageReceivedCallback (com.google.android.gms.cast.Cast.MessageReceivedCallback)1 CastDevice (com.google.android.gms.cast.CastDevice)1 CastException (com.google.android.libraries.cast.companionlibrary.cast.exceptions.CastException)1 CopyOnWriteArrayList (java.util.concurrent.CopyOnWriteArrayList)1