[RELEASE] YouTube

Discussion of plugin / script development for XBMC4Xbox
tim619
Posts: 204
Joined: Sun Mar 10, 2013 10:22 am
Has thanked: 25 times
Been thanked: 59 times

Re: [RELEASE] YouTube

Post by tim619 »

I think it is possible in the player settings to limit the amount of megabytes to buffer, but don't know where exactly.
Maybe you could ask this in a new thread, I think there are some people who know it better than me.

On kodi it is the "forward value" they already limited it from 10mb to 7.5mb, I don't know what it is in xbmc4xbox you could
try to change the value and tell us if it fixes the freezings on longer videos. (Obviously this will force more buffering stops, but atleast it won't freeze from what I assume)
Mayson
Posts: 1
Joined: Mon Apr 03, 2017 4:18 pm
Has thanked: 2 times

Re: [RELEASE] YouTube

Post by Mayson »

Thank You very much. Works great.
excelent job.
Lex
Posts: 1
Joined: Sun Nov 12, 2017 2:18 am

Re: [RELEASE] YouTube

Post by Lex »

Thank you!!!!!
Softmodder
Posts: 2
Joined: Sat Mar 03, 2018 10:29 pm

Re: [RELEASE] YouTube

Post by Softmodder »

I keep getting script failed even though I am on the latest version of XBMC4XBOX. I did a clean fresh reupdate (as in I just reinstalled the XBMC4XBOX in another folder using the update addon thing) just in case and tried the YouTube script again, but it gave the same error. I don't know what could be causing it. I looked in the log to see what the problem is, but all it says is that the video I am trying to play (as in url), and it failed. How do I fix this?
tim619
Posts: 204
Joined: Sun Mar 10, 2013 10:22 am
Has thanked: 25 times
Been thanked: 59 times

Re: [RELEASE] YouTube

Post by tim619 »

The api.get_video_url function doesn't work anymore. Maybe I will fix it, if I find time for it.

for the kodi version they used this code:
https://github.com/jdf76/plugin.video.y ... 4b1e6a6288
tim619
Posts: 204
Joined: Sun Mar 10, 2013 10:22 am
Has thanked: 25 times
Been thanked: 59 times

Re: [RELEASE] YouTube

Post by tim619 »

Update v1.1.0
  • fixed playback using js-interpreter
fxmech
Posts: 673
Joined: Wed Aug 01, 2012 9:15 am
Has thanked: 37 times
Been thanked: 46 times

Re: [RELEASE] YouTube

Post by fxmech »

Thank you!

Sent from my XT1254 using Tapatalk

guruckler cardiel
Posts: 1
Joined: Tue May 01, 2018 3:25 am

Re: [RELEASE] YouTube

Post by guruckler cardiel »

thank you sir for your work really appreciate the effort I thought the plugin would end
Poxa
Posts: 1
Joined: Thu May 31, 2018 11:09 pm
Has thanked: 1 time

Re: [RELEASE] YouTube

Post by Poxa »

Thanks a lot, it works great ;)
Mersa316
Posts: 1
Joined: Wed Jun 06, 2018 6:36 am

Re: [RELEASE] YouTube

Post by Mersa316 »

I've tooled around with the api.py file and i'm only able to get it to lock into either 720p or 360p. Anything in between will not let it run in 480p, which i think the xbox could handle. How can i stream YouTube to the xbox in 480p? I'm very happy with this plugin, as it actually works as of June 5th 2018, the resolution has just given me trouble.

Any help would be greatly appreciated.
woss
Posts: 2
Joined: Mon Aug 08, 2016 8:41 am
Has thanked: 1 time
Been thanked: 2 times

Re: [RELEASE] YouTube

Post by woss »

Hi, most of the videos will not play, here is the log, is it possible to fix it by modifying .py files?, please can you give a hint?

Code: Select all

23:53:45 M: 31977472   DEBUG: CPlayerCoreFactory::GetPlayers()
23:53:45 M: 31997952   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: un-named
23:53:45 M: 31997952   DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: un-named
23:53:45 M: 31997952   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtv
23:53:45 M: 31997952   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: hdhomerun/myth/rtmp/mms/udp
23:53:45 M: 31997952   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
23:53:45 M: 31997952   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
23:53:45 M: 31997952   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
23:53:45 M: 31997952   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
23:53:45 M: 31997952   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdfile
23:53:45 M: 31997952   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
23:53:45 M: 31997952   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: ogv/flv/mov
23:53:45 M: 31997952   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
23:53:45 M: 31997952   DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
23:53:45 M: 31997952   DEBUG: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (1)
23:53:45 M: 31997952   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
23:53:45 M: 31997952   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
23:53:45 M: 31997952   DEBUG: CPlayerCoreFactory::GetPlayers: adding player: DVDPlayer (1)
23:53:45 M: 31997952   DEBUG: CPlayerCoreFactory::GetPlayers: adding player: MPlayer (2)
23:53:45 M: 31997952   DEBUG: CPlayerCoreFactory::GetPlayers: added 2 players
23:53:45 M: 31997952  NOTICE: DVDPlayer: Opening:
23:53:45 M: 31997952 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
23:53:45 M: 31473664  NOTICE: Creating InputStream
23:53:45 M: 31473664   ERROR: CDVDPlayer::OpenInputStream - error opening []
23:53:45 M: 31473664  NOTICE: CDVDPlayer::OnExit()
23:53:45 M: 31473664  NOTICE: CDVDPlayer::OnExit() deleting input stream
23:53:45 M: 31997952   DEBUG: CApplication::OnPlayBackStopped - Playback was stopped
23:53:45 M: 31997952   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://video/YouTube/?id=32F2d-wj4Xw&f=play]
tim619
Posts: 204
Joined: Sun Mar 10, 2013 10:22 am
Has thanked: 25 times
Been thanked: 59 times

Re: [RELEASE] YouTube

Post by tim619 »

The following would need to be implemented https://github.com/rg3/youtube-dl
with autoupdating when it doesnt work anymore. I think there is a function like "get_video_url(video_id)" this should call "youtube-dl" from the above repo.

Then a manual download to "https://github.com/rg3/youtube-dl/archive/master.zip" would be needed + extraction and deletion of old files when it's used first or is out of date.

See here: https://github.com/rg3/youtube-dl#embedding-youtube-dl
Lee Brandon
Posts: 1
Joined: Tue Apr 09, 2019 7:24 pm

Re: [RELEASE] YouTube

Post by Lee Brandon »

hey your plugin dosnt work anymore i dont know if its me but it cant find any videos and im connected with the internet on my xbox
PPlayerxx
Posts: 16
Joined: Tue Oct 30, 2018 3:51 pm
Location: Italy
Has thanked: 7 times
Been thanked: 1 time

Re: [RELEASE] YouTube

Post by PPlayerxx »

@tim619
So no more updates from this plugin?
I've used it in the past year and everything went good, it was a good plugin.
gabbers77
Posts: 4
Joined: Mon Mar 14, 2016 11:45 pm
Has thanked: 1 time

Re: [RELEASE] YouTube

Post by gabbers77 »

Good guys, some way to revive this plugin? THX!!
tim619
Posts: 204
Joined: Sun Mar 10, 2013 10:22 am
Has thanked: 25 times
Been thanked: 59 times

Re: [RELEASE] YouTube

Post by tim619 »

Even if youtube-dl was embedded, the YouTube API key used (which was hardcoded in the android app) is blocked since a few months and I don't know a new one that is unlimited.
Post Reply