Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

launchYoutubeApp locks after launching the app on chromecast #82

Open
shaikhmohsink opened this issue Nov 2, 2015 · 12 comments
Open

launchYoutubeApp locks after launching the app on chromecast #82

shaikhmohsink opened this issue Nov 2, 2015 · 12 comments

Comments

@shaikhmohsink
Copy link

Hi,

I am trying to integrate the sample app using the updated connect-sdk library,
below is the code
getLauncher().launchYouTube("bB3aZzsZSOE", (float)0.0, new Launcher.AppLaunchListener() {

                @Override
                public void onSuccess(LaunchSession session) {
                    testResponse =  new TestResponseObject(true, TestResponseObject.SuccessCode, TestResponseObject.Launched_Youtube);
                    Toast.makeText(MainActivity.this, "ChromeCastResponse:-"+testResponse.httpResponseCode+", "+testResponse.responseMessage+", "+testResponse.isSuccess, Toast.LENGTH_LONG).show();
                    setRunningAppInfo(session);
                }

                @Override
                public void onError(ServiceCommandError error) {
                    Toast.makeText(MainActivity.this, "Error casting to chromecast"+error.getMessage(), Toast.LENGTH_LONG).show();
                }
            });

this opens the youtube app and after that nothing happens, no video is played at all, where as in the respose, i get the http status as 200 and isSuccess as true.

@iadnan
Copy link

iadnan commented Nov 2, 2015

@shaikhmohsink Which TV or media device are trying to open the app?

@shaikhmohsink
Copy link
Author

I am using a samsung monitor, i even tried the same on a samsung TV
And i had bought the chromecast device last december

@shaikhmohsink
Copy link
Author

Hi iadnan,
Just wanted to check if you are able to use the latest version of connect sdk for android and implement the launchYoutubeApp method, and see anything playing on any of the media device like TV or monitor or anything at all

eagerly waiting for reply

@iadnan
Copy link

iadnan commented Nov 4, 2015

@shaikhmohsink I believe you are trying to open the app on Chromecast device?. We tried to reproduce the issue with you tube app. When trying to launch a you tube app , the app doesnt do anything. We will look into it. Thanks.

@shaikhmohsink
Copy link
Author

Yes I am trying to open the app on chromecast device, and apparently it is not working on both iOS and Android. This is just in case of youtube app. rest of the videos are playing fine on the chromecast device.

Thanks for your help :)

@shaikhmohsink
Copy link
Author

Hi,

Any updates on this issue?

@Gioggiolo
Copy link

Hi, Same issue here. Has anything changed in youtube app protocol?

@shaikhmohsink
Copy link
Author

Hey,

I just saw this new message on my browser saying
"dmayboroda was unassigned by shaikhmohsink on 11 Jan"

Not really sure how did this happened, I just logged in to check if there was any solution found for this problem. Can anyone answer this please?

@bhargavakumark
Copy link

I looked at the node package https://www.npmjs.com/package/peer-dial which does this. It launches the youtube app using

                dialDevice.launchApp("YouTube","v=YE7VzlLtp-4", "text/plain", function (launchRes, err)

Without using any pairing key. I removed the pairingkey code in DIALService.java, and YouTube can now be launched

@leo81267
Copy link

leo81267 commented Sep 9, 2016

Hi ,

I'm trying Connect SDK with Xbox. The solution suggested above (removing the pairing code) works successfully for all the other devices - Chromecast , Nexus player , Android TV etc But not with the Xbox ?

I tried to send the pairing code too , but it launch the app and goes to home screen of YouTube.

Any idea or thoughts on this ?

@baitsaikiransudhir
Copy link

Hello, any update on this. I'm using this and it just opens the homescreen of youtube. It does not open the video.

@waqarkhan1137
Copy link

i am using Connect SDK but when I try to connect with my Android smart TV its directly connect without pairing .. and I want to pair with my Smart Tv using connect SDK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants