-
Notifications
You must be signed in to change notification settings - Fork 626
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
VIDEO NOT PLAYING (CHECK THIS BEFORE CREATING NEW) #548
Comments
Thank you for creating this issue.
I created an API key following your explanation link and call
Next step should be create an PR with a README update no ? |
Yep |
https://console.cloud.google.com/apis/credentials?project=**projectName**
|
Thank @NikKovIos . |
@tungdangplus sorry, don't have time for it. By the way, i'm not a owner of the repo, just a regular senior ios dev. You can find a solution by yourself and put it here. Just spend time. |
Thanks for this, |
the problem is this will work... until it won't again. Not the nicest thing to happen when you have dozens of apps in production using it and all clients suddenly can't access some YT content. |
@dcristolovean I agree with you but there is no official SDK available on tvOS. What to do then ? |
well, yeah, then you're stuck. My advice is for the rest of 99% of the devs that don't use tvOS. |
@dcristolovean give a link for the official lib please. |
https://developers.google.com/youtube/v3/guides/ios_youtube_helper "Lib" might be too much to say, but after you play a bit with it, you can fit in it any design and make it behave like needed. You gotta face that YT will not just give you urls to play the content and will require a webview with their content inside in the future. |
Actually, webviews are the way to go there too. Considering that's what youtube_helper does anyway, you can directly use that one or create one yourself. I never coded for tvOS but I'm sure there's a way. |
Sadly, I don't think so: youtube/youtube-ios-player-helper#148 |
kinda old discussion, 2015.... anyway, another interesting thing: "It's against the ToS because it won't display the ads." That's why I said that at some point, surely you won't be able to just get a video url from YT and play it. There are so many reasons why they won't let you do that, I don't see a bright future for XCDYoutube. |
defagos commented on Jan 22, 2016 You should really check out XCDYouTubeKit, it works great and supports tvOS as well. @defagos That's not a good recommendation, as it is against YouTube's terms of service. It bypasses their player and analytics. It should not be used in any production code beyond some fun prototype. Exactly what I'm saying. |
For those looking for an alternative for tvOS, you can link to a video directly on the YouTube app with this URL scheme: |
From today today there problems with playing videos with this solution |
@Anvar102b place any logs. What is broken? What error? |
Now I have |
@NikKovIos Thank you so much, it works well. |
@secret3579 It should be documented before merging. If you have time to contribute 😉 |
It would be great if the owner of repo would do something. The community already did a lot! |
@tungdangplus I also had issues with livestreams, I fixed my issues here -> https://github.com/KODIKAS-NL/XCDYouTubeKit.git |
Ok, every new guy think that it's good to start a new thread about that youtube is not playing. I decided to summarize and create one issue to prevent creating others.
Here are related issues:
#527
#523
#515
#547
#544
#543
#541
#534
#531
#530
#529
Top solutions from them:
#526
#547 (comment)
#545
#541 (comment)
#530 (comment)
But I think that the problem is because the youtube decided to prevent connecting with them without authentication. So now we need to use youtube API Key.
How to create it: https://www.slickremix.com/docs/get-api-key-for-youtube/
Google docs about it: https://developers.google.com/youtube/v3/getting-started?hl=en_US
Also take a look: https://github.com/google/google-api-objectivec-client-for-rest/search?q=youtube
PR with implementing it: #545
However I think in this PR you need to create OWN api key and set in INNERTUBE_API_KEY property.
The text was updated successfully, but these errors were encountered: