[RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC

  Thread Rating:
  • 24 Votes - 4.21 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
JasonPell Offline
Member
Posts: 72
Joined: Mar 2012
Reputation: 1
Location: Geelong, Australia
Post: #4426
I have been working steadily on the purchases support for the you tube plugin. I have submitted a PR, and will await its consideration. In the meantime I am hoping some of you might give it a try and let me know what works and what does not.

You can download the beta plugin with the enhancements from here:

https://github.com/pellcorp/youtube-xbmc...se_support

It won't clober your current youtube plugin as it is known as 'plugin.video.youtube.beta' when in git hub, none of my doing, that is the default for the git hub repo.

This works for both movies and tv series, but I have only a few purchases, so I have no tested pagination, not even sure how I would as I don't know what the formatting looks like.

There is a new "My Purchases" button that will provide access to your purchased videos. I did note that some of the context menu items are not going to be relevant to this section, such
as Download video, but they still appear. I guess I am going to have to figure out how to remove those too. Also the Video Information section is empty except for the thumbnail.

The plugin only supports loading the videos into Chrome. I have only tested it on the dev (38) release of chrome on ubuntu 14.04 and it appears to work well. I did note that it failed to load the purchases until I had cleared my oauth credentials on the settings file and logged in again, but only for the first time.

Also for the moment, the path to the chrome installation on linux must be:

/usr/bin/google-chrome

So create a soft link to this if you have it somewhere else. I would think some configuration relating to the location of the chrome installation, but perhaps additional browser support would be forthcoming. However for my purposes chrome 38 (dev release) on linux is functioning well.

Ensure you install xdotool if you want to automatically get rid of the mouse cursor, (just as is required for the netflixbmc plugin)

I used code from the netflixbmc authors chrome launcher,
(This post was last modified: 2014-08-23 16:23 by JasonPell.)
find quote
ragedogg69 Offline
Member
Posts: 68
Joined: Apr 2012
Reputation: 1
Location: Phoenix, AZ
Post: #4427
(2014-08-23 16:17)JasonPell Wrote:  The plugin only supports loading the videos into Chrome.

Correct me if I am wrong, but this would be a great way to get Full HD 1080p for youtube videos? I tried your zip, but it wont load, something about file structure. Ever since google removed 1080p from HTML5, we have been stuck with 720p. Loading directly from XBMC into Chrome would be a great way to get 1080p; if the add on would automatically play full screen and 1080p, otherwise their are extensions for that. I am very interested in this fork.

Theater: The PS4/XBONE killer running XBMC 13.2 Family Room: "A6-Pack" running XBMC 13.2 Whole House: 1st Gen Apple TV running Crystalbuntu 2.0
find quote
JasonPell Offline
Member
Posts: 72
Joined: Mar 2012
Reputation: 1
Location: Geelong, Australia
Post: #4428
Hi,

The zip from github is in the wrong format. You need to take the contents of the plugin directory within the zip and create a zip file. That should work.

I have refined the process of loading videos into chrome, but it only works on linux, as that is all I can test. It was a royal pain in the butt getting youtube and chrome to cooperate with full screen that would allow me to use lirc and irxevent to pause / resume playback in the player, but it does work. You need to install xdotool.

The functionality only touches purchases, I have not done anything else.

So again there is a manual step. Take the zip from github:

wget https://github.com/pellcorp/youtube-xbmc...upport.zip
cd youtube-xbmc-plugin-purchase_support/plugin/
zip -r youtube-xbmc.plugin.zip *

Or you can do this:

git clone https://github.com/pellcorp/youtube-xbmc-plugin.git
cd youtube-xbmc-plugin
git checkout purchase_support

Create a soft link to the plugin directory to the ~/.xbmc/addons/plugin.video.youtube.beta


The purchase_support_fixes branch is where I am playing around with moving the logic to start irxevent, and call xdotool to an external browser.sh script to make it simpler to customise for specific requirements. The key item that gets us full screen is the xdotool call.

xdotool search "Google Chrome" windowactivate --sync mousemove 800 800 click --repeat 2 1

This double click activates yotube full screen mode. This seems to be preferred to chrome --kiosk mode as it allows the keyboard to control playback, as the double click also focuses the player.
(This post was last modified: 2014-08-25 00:24 by JasonPell.)
find quote
SuperNano Offline
Junior Member
Posts: 6
Joined: Jan 2013
Reputation: 0
Post: #4429
I have set the max resolution in settings to 720p, however when I play YT live streams the resolution is set to 1080. I understand from an earlier post that this is set based on available bandwidth, but with my pi I'm getting too much lag.
That earlier post suggested as a makeshift fix to change the throttle in the internet settings on xbmc, but it would be great if there was a way to change the live stream resolution from within the add-on.
Thanks!
find quote
JasonPell Offline
Member
Posts: 72
Joined: Mar 2012
Reputation: 1
Location: Geelong, Australia
Post: #4430
(2014-08-24 18:20)ragedogg69 Wrote:  
(2014-08-23 16:17)JasonPell Wrote:  The plugin only supports loading the videos into Chrome.

Correct me if I am wrong, but this would be a great way to get Full HD 1080p for youtube videos? I tried your zip, but it wont load, something about file structure. Ever since google removed 1080p from HTML5, we have been stuck with 720p. Loading directly from XBMC into Chrome would be a great way to get 1080p; if the add on would automatically play full screen and 1080p, otherwise their are extensions for that. I am very interested in this fork.

The URL used for the purchase external browser is a HTML 5 embedded player URL. So that would need to use the /v/videoid for the flash player.

I can't get flash working in chrome for YouTube. Although the adobe site confirms the plugin works
(This post was last modified: 2014-08-25 00:48 by JasonPell.)
find quote
ragedogg69 Offline
Member
Posts: 68
Joined: Apr 2012
Reputation: 1
Location: Phoenix, AZ
Post: #4431
(2014-08-25 00:47)JasonPell Wrote:  I can't get flash working in chrome for YouTube.

Oh bummer. If there was some way just to send the link to chrome from the add on, that could solve some of the annoyances when google changes code. Even as a context menu option.

Theater: The PS4/XBONE killer running XBMC 13.2 Family Room: "A6-Pack" running XBMC 13.2 Whole House: 1st Gen Apple TV running Crystalbuntu 2.0
find quote
JasonPell Offline
Member
Posts: 72
Joined: Mar 2012
Reputation: 1
Location: Geelong, Australia
Post: #4432
That would certainly be possible. The YoutubeBrowser I added takes a video id only and then figures out how to call the browser including any magic for remote controls.

Check the browser.sh in purchases_support branch of my repo.

Its possible it's a Ubuntu issue or there might be an easier fix for flash. But I only use HTML 5 anyway
find quote
PeterMac Offline
Junior Member
Posts: 20
Joined: Jun 2010
Reputation: 0
Location: Poland
Post: #4433
(2014-03-07 06:13)Blacksmith Wrote:  I don't know if this problem has been posted here, but I've googled everywhere and can't seem to solve my problem.

Awhile ago, google was spamming me to signup a google+ youtube account everytime I posted a comment. I finally caved in a created one, because it was getting annoying. It then split my account into two, one with all my history and subscriptions that I renamed, and the other a blank with my email address as the username.

This creates all sorts of problems when logging in. When I sign in with the xbmc youtube addon it logs in to the blank account, although in the youtube settings I have it set to default to the main one when logging in. I tried logging in with the google+ email directly associated with the main account, but I always get a Login Failed error.

What do i do?

Exaclty same problem, login always on main accout Google profile not my YouTube channel

By the way, maybe someone will to know, how can I transfer my YouTube channel profile to my main Google accout profile ?
(This post was last modified: 2014-08-31 09:11 by PeterMac.)
find quote
JasonPell Offline
Member
Posts: 72
Joined: Mar 2012
Reputation: 1
Location: Geelong, Australia
Post: #4434
Can you enable Debug in the plugin and post the relevant parts of the log file. Post them to pastebin instead of into a forum post.
find quote
PeterMac Offline
Junior Member
Posts: 20
Joined: Jun 2010
Reputation: 0
Location: Poland
Post: #4435
OK I will post debug, but in this debug you will not see any problems with log in because it's login okey but not on default set YouTube channel in YouTube profile settings in my main account.
I'm login using email adress, when I try to use my YouTube channel name it not login.

Here are Advanced settings from YouTube site my main Google accout
[Image: Bez_nazwy_3.png]
As you can see, default YouTube channel is set "PeterMacPL" but when I try login by this email adress it not login on this default set channel but login only on Google account "Peter Mac"

Please fix that!

Sorry but I don't know where is this pastebin Smile and where to pase it
(This post was last modified: 2014-09-01 12:49 by PeterMac.)
find quote
Magissia Offline
Junior Member
Posts: 1
Joined: Sep 2014
Reputation: 0
Post: #4436
Hello, i have trouble opening youtube links generated by this plugin on MPC-HC, i get "Impossible to read the file" most of the time (it worked twice).

Link generated looks like this
https://r14---sn-5hn7sner.googlevideo.co...x%2F16.0.1

my playercorefactory is

Code:
<playercorefactory>
  <players>
    <player name="MPC-HC" type="ExternalPlayer" audio="false" video="true" dvdfile="true" dvdimage="true" dvd="true" internetstream="false">
        <filename>C:\Program Files\MPC-HC\mpc-hc64.exe</filename>
        <args>"{1}" /audiorenderer 9 /fullscreen /play /close</args>
        <hidexbmc>false</hidexbmc>
        <hideconsole>false</hideconsole>
        <warpcursor>none</warpcursor>
    </player>
  </players>
  <rules action="prepend">
    <rule protocols="^((?!http|!https).)*$" />
    <rule filetype="mkv|mp4|avi|m2ts|iso" player="MPC-HC"/>
  </rules>
</playercorefactory>

If i download the file and open it instead of streaming it it works.

If i play it using XBMC and not HPC-HC it do work. I don't understand why the redirect to MPC-HC fails, could someone give me a hand ?
(This post was last modified: Yesterday 20:04 by Magissia.)
find quote
Dudenell Offline
Junior Member
Posts: 4
Joined: Nov 2012
Reputation: 0
Post: #4437
so everytime I attempt to download, it hangs on 93%, and won't finish... ideas?

http://pastebin.com/cCWz1xX5
(This post was last modified: Today 00:52 by Dudenell.)
find quote
Post Reply