GithubHelp home page GithubHelp logo

Integrate with SmartTube about newpipe HOT 27 OPEN

timkgh avatar timkgh commented on May 26, 2024 5
Integrate with SmartTube

from newpipe.

Comments (27)

iBicha avatar iBicha commented on May 26, 2024 11

Hi folks, I'm the author of Playlet, and I've recently been exploring "the space" for making casting easier. To kinda sum up things
On the phone we have as options

  • NewPipe
  • ReVanced (which is essentially the official app?)
  • Official YouTube app

And on TV we have

I was exploring how the DIAL protocol works (Link with Wi-Fi option) and essentially I believe NewPipe does not need to implement a special protocol for it to be able to cast to to all 3 TV apps.

In fact I've been prototyping on to cast from the Official YouTube mobile app (and even from the browser) to Playlet.
I have a working "work-in-progress" prototype in Playlet here iBicha/playlet#276, and I have shared my findings and approach in yuliskov/MediaServiceCore#10 because I think the same implementation can work with SmartTube.

So if both SmartTube and Playlet implement the DIAL spec (SmartTube already has the LoungeAPI aka casting) then all NewPipe need to do is to integrate the LoungeAPI to be able to cast to YouTube. Then all the apps listed would be speaking the same protocol and become compatible.

Edit: I believe the ConnectSDK has a DIAL implementation (and many more things) so I guess it can be used find the TVs in the local network

from newpipe.

kwijybo avatar kwijybo commented on May 26, 2024 6

@opusforlife2 This attitude is very unhelpful and the suggestion is not related to the issue. please stop.

from newpipe.

ilar avatar ilar commented on May 26, 2024 4

This is a lot more complicated than it really needs to be. Quality of life would be improved if NewPipe just supported the TV linking protocol.

Yes, can we please drop the side discussions about KDE Connect and other kludges? They really have no place here, this isn't a tech support chat.

Also, adding the 'niche' tag is just petty. The sheer number of tickets, reddit posts, and google search results for casting from newpipe clearly says otherwise.

from newpipe.

opusforlife2 avatar opusforlife2 commented on May 26, 2024 3

Yes, but you could be a dear and help test this for all the other people who might want something similar and would be happy with a compromise solution.

from newpipe.

exzombie avatar exzombie commented on May 26, 2024 3

You can use Open Link With, which is a "browser" whose sole purpose is redirecting URLs to apps. Make it the default browser on the TV, it makes life better.

That said, this won't solve the issue that the kde connect app needs to be open on the TV; I've tried the LocalSend app, and it has the same issue. It's just doesn't seem possible to send an URL to the TV in a generic way that would work while NewPipe is open. Switching apps on the TV is not as easy as on a phone, especially for KDE connect which is not added to the home screen and has to be accessed through settings.

from newpipe.

timkgh avatar timkgh commented on May 26, 2024 2

Have you tried using KDE Connect or a similar app?

Not sure I understand how KDE Connect helps pair SmartTube running on Android TV with NewPipe running on my phone. SmartTube can pair with the stock YouTube app on the phone. I'm proposing there should be a way to pair SmartTube with NewPipe also so that one can cast from NP to ST, I'm not looking for alternate solutions to send URLs between devices.

from newpipe.

kubo6472 avatar kubo6472 commented on May 26, 2024 2

Yes, can we please drop the side discussions about KDE Connect and other kludges?

Me personally... I just wanted to try what a NewPipe Development/Team Member suggests, and if it works at all.

It was janky and not working most of the time.

They really have no place here, this isn't a tech support chat.

I suppose, that even though I joined the matrix channel, I was still getting answers here. People reading this can now safely dismiss this "(non-)workaround" right away.

My 2 cents is that it was for the better leading the "trying of alternatives" discussion right in this chat 😉.

from newpipe.

opusforlife2 avatar opusforlife2 commented on May 26, 2024 1

Make it easy to flick video from phone to TV

This is what you asked for. I gave a solution for it. Try it and see.

from newpipe.

opusforlife2 avatar opusforlife2 commented on May 26, 2024 1

I don't see what's harmful about helping out the community. But your wish, I guess. ¯\_(ツ)_/¯

from newpipe.

opusforlife2 avatar opusforlife2 commented on May 26, 2024 1

@kubo6472 Are you able to share the video URL from your device to SmartTube on the TV? Does it do anything? Best case scenario it should automatically open SmartTube if it's configured to handle the shared URL intent.

from newpipe.

opusforlife2 avatar opusforlife2 commented on May 26, 2024

Have you tried using KDE Connect or a similar app?

from newpipe.

timkgh avatar timkgh commented on May 26, 2024

I think there are also other ways to do it, using something like BubbleUPnP or PlainUPnP, Yatse/Kore, etc.

I'm looking for a direct integration without adding more apps (and issues).

from newpipe.

kubo6472 avatar kubo6472 commented on May 26, 2024

I'd like a guide on the KDE connect thingy. I played with it, but I'm lost how to actually cast anything to my TV. Am I missing something?

from newpipe.

kubo6472 avatar kubo6472 commented on May 26, 2024

from newpipe.

opusforlife2 avatar opusforlife2 commented on May 26, 2024

KDE Connect can't open SmartTube directly

Ah, that sucks. Does the SmartTube app open if you click a YT video link in another (non-browser) app, though? It's possible that it hasn't registered the intent handling with the OS.

from newpipe.

kubo6472 avatar kubo6472 commented on May 26, 2024

Tried newpipe too, yeah, it does open, however it only works when kde connect as an app, is open.

I have no idea if the intent is registered with the browser or not, but it goes like: KDE -> Firefox -> Newpipe/SmartTube

from newpipe.

opusforlife2 avatar opusforlife2 commented on May 26, 2024

Try removing Firefox. Then the intent might pass from KDE to Newpipe directly. And if that's the case, then someone could open a feature request with SmartTube to register its URL intents.

from newpipe.

kubo6472 avatar kubo6472 commented on May 26, 2024

Without Firefox just nothing happens. I tried having only one app installed at a time.

from newpipe.

opusforlife2 avatar opusforlife2 commented on May 26, 2024

What's your OS version?

from newpipe.

kubo6472 avatar kubo6472 commented on May 26, 2024

from newpipe.

opusforlife2 avatar opusforlife2 commented on May 26, 2024

Have you gone into the OS app settings and manually enabled each URL for SmartTube? Does it even have that option?

from newpipe.

kubo6472 avatar kubo6472 commented on May 26, 2024

from newpipe.

opusforlife2 avatar opusforlife2 commented on May 26, 2024

Oh. TV OS doesn't have this setting? https://9to5google.com/2021/04/21/android-12-verified-links/

from newpipe.

kubo6472 avatar kubo6472 commented on May 26, 2024

from newpipe.

opusforlife2 avatar opusforlife2 commented on May 26, 2024

Alright. Nothing for it but going the whole way then. Thanks for testing!

from newpipe.

timkgh avatar timkgh commented on May 26, 2024

This is a lot more complicated than it really needs to be. Quality of life would be improved if NewPipe just supported the TV linking protocol.

from newpipe.

kubo6472 avatar kubo6472 commented on May 26, 2024

You can use Open Link With, which is a "browser" whose sole purpose is redirecting URLs to apps. Make it the default browser on the TV, it makes life better.

That said, this won't solve the issue that the kde connect app needs to be open on the TV; I've tried the LocalSend app, and it has the same issue. It's just doesn't seem possible to send an URL to the TV in a generic way that would work while NewPipe is open. Switching apps on the TV is not as easy as on a phone, especially for KDE connect which is not added to the home screen and has to be accessed through settings.

I have a question that I might try later: what if I put Firefox mobile on the TV, login with my account, then use the Open Link With, or Firefox directly to launch NewPipe/SmartTube by sending the tab with the YouTube video?

from newpipe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.