SmartTube icon indicating copy to clipboard operation
SmartTube copied to clipboard

[Feature Request] The ability to send YouTube urls from computer via command line.

Open 47xhp36c opened this issue 3 years ago • 6 comments

It would be cool to be able to cast YouTube videos to SmartTubeNext from a local network computer; possibly via adb... I know I can send urls to the main web browser using adb, but sending video links to SmartTube would be ideal!

47xhp36c avatar Nov 17 '22 19:11 47xhp36c

Already possible!! adb shell am start -a android.intent.action.VIEW -d "https://www.youtube.com/watch?v=bpQMMPiLkGI" com.google.android.youtube.tv

I am not sure how to do it with an autoplaying playlist though.

47xhp36c avatar Nov 19 '22 20:11 47xhp36c

For fire tv sticks: db shell am start -a android.intent.action.VIEW -d "https://www.youtube.com/watch?v=bpQMMPiLkGI" com.amazon.firetv.youtube To get a list of user installed apps pm list packages -3"|cut -f 2 -d ":""

Underknowledge avatar Jan 20 '23 12:01 Underknowledge

Can we also add something to the watch list / queue?

Vultilion avatar Jan 22 '23 23:01 Vultilion

@47xhp36c this opens the built in app. Am I missing something?

kirill578 avatar Mar 03 '23 00:03 kirill578

I was able to get it to work: adb shell am start -a android.intent.action.VIEW -d "https://www.youtube.com/watch?v=bpQMMPiLkGI" -n com.teamsmart.videomanager.tv/com.liskovsoft.smartyoutubetv2.tv.ui.main.SplashActivity

kirill578 avatar Mar 03 '23 01:03 kirill578

Below also works

adb shell am start -a android.intent.action.VIEW -d "https://www.youtube.com/watch?v=bpQMMPiLkGI" com.teamsmart.videomanager.tv

Alternatively, below should give you a dialog to select which app to use (if multiple installed)

adb shell am start -a android.intent.action.VIEW -d "vnd.youtube://bpQMMPiLkGI"` 

Kodi users can use the below My YouTube for Trailers makes use of this

StartAndroidActivity(com.teamsmart.videomanager.tv,android.intent.action.VIEW,,"https://www.youtube.com/watch?v=bpQMMPiLkGI")

matthuisman avatar Apr 05 '24 10:04 matthuisman