Search in sources :

Example 16 with LaunchSession

use of com.connectsdk.service.sessions.LaunchSession in project butter-android by butterproject.

the class WebOSTVService method joinApp.

/* Join a native/installed webOS app */
public void joinApp(String appId, WebAppSession.LaunchListener listener) {
    LaunchSession launchSession = LaunchSession.launchSessionForAppId(appId);
    launchSession.setSessionType(LaunchSessionType.App);
    launchSession.setService(this);
    joinWebApp(launchSession, listener);
}
Also used : LaunchSession(com.connectsdk.service.sessions.LaunchSession)

Example 17 with LaunchSession

use of com.connectsdk.service.sessions.LaunchSession in project butter-android by butterproject.

the class FireTVService method createMediaLaunchObject.

private MediaLaunchObject createMediaLaunchObject() {
    LaunchSession launchSession = new LaunchSession();
    launchSession.setService(this);
    launchSession.setSessionType(LaunchSession.LaunchSessionType.Media);
    launchSession.setAppId(remoteMediaPlayer.getUniqueIdentifier());
    launchSession.setAppName(remoteMediaPlayer.getName());
    MediaLaunchObject mediaLaunchObject = new MediaLaunchObject(launchSession, this);
    return mediaLaunchObject;
}
Also used : LaunchSession(com.connectsdk.service.sessions.LaunchSession)

Aggregations

LaunchSession (com.connectsdk.service.sessions.LaunchSession)17 ServiceCommandError (com.connectsdk.service.command.ServiceCommandError)12 JSONObject (org.json.JSONObject)10 ResponseListener (com.connectsdk.service.capability.listeners.ResponseListener)9 ServiceCommand (com.connectsdk.service.command.ServiceCommand)9 JSONException (org.json.JSONException)6 HashMap (java.util.HashMap)4 AppInfo (com.connectsdk.core.AppInfo)2 WebOSWebAppSession (com.connectsdk.service.sessions.WebOSWebAppSession)2 IOException (java.io.IOException)2 PListBuilder (com.connectsdk.service.airplay.PListBuilder)1 CastWebAppSession (com.connectsdk.service.sessions.CastWebAppSession)1 WebAppSession (com.connectsdk.service.sessions.WebAppSession)1 ApplicationMetadata (com.google.android.gms.cast.ApplicationMetadata)1 ApplicationConnectionResult (com.google.android.gms.cast.Cast.ApplicationConnectionResult)1 LaunchOptions (com.google.android.gms.cast.LaunchOptions)1 UnsupportedEncodingException (java.io.UnsupportedEncodingException)1 MalformedURLException (java.net.MalformedURLException)1 URISyntaxException (java.net.URISyntaxException)1 UnknownHostException (java.net.UnknownHostException)1