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

Youtube ID not shared when retrieving status of Android TV (10) device #169

Open
willemstuursma opened this issue Sep 13, 2023 · 0 comments

Comments

@willemstuursma
Copy link

Hi, I recently acquired a Nokia 8000 streaming box which runs Android TV version 10. It supports casting to the device.

When casting a video from Youtube, the status output does not contain the video ID:

./go-chromecast --uuid xxxx  status
YouTube (PLAYING), title="Engine Rebuild Prep Work - V8 S65 BMW E92 M3 - Project Frankfurt: Part 5", artist="M539 Restorations", time remaining=2299s/2746s, volume=1.00, muted=false

Debug output:

./go-chromecast --uuid xxxx  status --debug
using device name=Tv in woonkamer addr=192.168.2.53 port=8009 uuid=xxxx
DEBU[0000] (1)sender-0 -> receiver-0 [urn:x-cast:com.google.cast.tp.connection]: {"type":"CONNECT","requestId":1}  package=cast
DEBU[0000] (2)sender-0 -> receiver-0 [urn:x-cast:com.google.cast.receiver]: {"type":"GET_STATUS","requestId":2}  package=cast
DEBU[0000] (2)sender-0 <- receiver-0 [urn:x-cast:com.google.cast.receiver]: {"requestId":2,"status":{"applications":[{"appId":"2C6A6E3D","appType":"ANDROID_TV","displayName":"YouTube","iconUrl":"","isIdleScreen":false,"launchedFromCloud":false,"namespaces":[{"name":"urn:x-cast:com.google.cast.media"},{"name":"urn:x-cast:com.google.cast.system"},{"name":"urn:x-cast:com.google.cast.cac"},{"name":"urn:x-cast:com.google.youtube.mdx"}],"senderConnected":true,"sessionId":"abbf511c-f93e-452e-a06d-ae0ae0821609","statusText":"Youtube","transportId":"abbf511c-f93e-452e-a06d-ae0ae0821609","universalAppId":"233637DE"}],"isActiveInput":true,"isStandBy":false,"userEq":{},"volume":{"controlType":"attenuation","level":1.0,"muted":false,"stepInterval":0.06666667014360428}},"type":"RECEIVER_STATUS"}  package=cast
DEBU[0000] (3)sender-0 -> abbf511c-f93e-452e-a06d-ae0ae0821609 [urn:x-cast:com.google.cast.tp.connection]: {"type":"CONNECT","requestId":3}  package=cast
DEBU[0000] (4)sender-0 -> abbf511c-f93e-452e-a06d-ae0ae0821609 [urn:x-cast:com.google.cast.media]: {"type":"GET_STATUS","requestId":4}  package=cast
DEBU[0000] (-1)* <- receiver-0 [urn:x-cast:com.google.cast.receiver]: {"requestId":0,"status":{"applications":[{"appId":"2C6A6E3D","appType":"ANDROID_TV","displayName":"YouTube","iconUrl":"","isIdleScreen":false,"launchedFromCloud":false,"namespaces":[{"name":"urn:x-cast:com.google.cast.media"},{"name":"urn:x-cast:com.google.cast.system"},{"name":"urn:x-cast:com.google.cast.cac"},{"name":"urn:x-cast:com.google.youtube.mdx"}],"senderConnected":true,"sessionId":"abbf511c-f93e-452e-a06d-ae0ae0821609","statusText":"Youtube","transportId":"abbf511c-f93e-452e-a06d-ae0ae0821609","universalAppId":"233637DE"}],"isActiveInput":true,"isStandBy":false,"userEq":{},"volume":{"controlType":"attenuation","level":1.0,"muted":false,"stepInterval":0.06666667014360428}},"type":"RECEIVER_STATUS"}  package=cast
DEBU[0000] (4)* <- abbf511c-f93e-452e-a06d-ae0ae0821609 [urn:x-cast:com.google.cast.media]: {"requestId":4,"type":"MEDIA_STATUS","status":[{"mediaSessionId":2,"playerState":"PLAYING","playbackRate":1,"currentTime":2390.923,"supportedMediaCommands":207,"volume":{"level":0,"muted":false},"activeTrackIds":[],"shuffle":false,"media":{"contentId":"","streamType":"BUFFERED","metadata":{"metadataType":0,"title":"Engine Rebuild Prep Work - V8 S65 BMW E92 M3 - Project Frankfurt: Part 5","artist":"M539 Restorations"},"duration":2746.041},"currentItemId":1,"repeatMode":"REPEAT_OFF","items":[{"media":{"contentId":"","streamType":"BUFFERED","metadata":{"metadataType":0,"title":"Engine Rebuild Prep Work - V8 S65 BMW E92 M3 - Project Frankfurt: Part 5","artist":"M539 Restorations"},"duration":2746.041},"itemId":1,"autoplay":true,"preloadTime":0}]}]}  package=cast
YouTube (PLAYING), title="Engine Rebuild Prep Work - V8 S65 BMW E92 M3 - Project Frankfurt: Part 5", artist="M539 Restorations", time remaining=2391s/2746s, volume=1.00, muted=false

When getting the status from my previous Chromecast dongle this always included the video ID. I require the ID to integrate with Sponsorblock.

go-chromecast version:

% ./go-chromecast --version
go-chromecast v0.3.1 (21976a4) 2023-05-01T03:03:57Z
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

1 participant