• 1
  • 39
  • 40
  • 41(current)
  • 42
  • 43
  • 47
[RELEASE] Chrome Launcher
(2016-06-03, 17:32)@danmar Wrote:
(2016-03-09, 17:32)Bedwyr Wrote: I tried adding a homepage launcher to the main menu. It launches Chrome fine, but the launcher opens up a sub-folder instead of staying on the main menu. Is this normal behavior? I would very much prefer to simply launch Chrome, close Chrome, and return directly to the Kodi menu.

No feedback?

I have the same question and if anyone has an answer that would be really helpful. It specifically opens the Program add-ons menu when it opens up Chrome in kiosk mode. Once you use Alt+F4, your left on the Program add-ons page. A simple backspace/back press takes you back to the Home Menu, but that kind of defeats the point of trying to create a slick user experience. It's not a huge deal, but if there's a way to jump straight to the Home Menu after closing Chrome that would be great.

I don't know if you guys are still looking, because this was bothering me too. This involves editing some code, but only a little bit.. I'm running Kodi on Ubuntu 16.04, so my directories may be different, Find "default.py" in the chrome addon folder and make a backup copy, then open the file in a plain text editor. My directory was "/home/.kodi/addons/plugin.program.chrome.launcher". You're looking for the line

Code:
def showSite(url, stopPlayback, kiosk, userAgent):


Towards the end of that section (before
Code:
def bringChromeToFront
starts), there's an "if/else". Add the following line to the end of the "if" section:

Code:
xbmc.executebuiltin('ActivateWindow(home)')

Test the website call to make sure it works, and enjoy. The one potential downside to this method is that this applies globally to any website opened with this addon. After the website opens, Kodi will always go to the Home screen. You could get it to be a setting for each website, but that would require some additional hackery. You can also replace the word "home" in that added line with one of the names here if you prefer to be taken back some place else. [/code]
Reply
Hi,

the behaviour described by DanMar and Bedwyr above is the behaviour of my KODI when running not in full screen, and that is the behaviour I can live with. True, it is not very elegant, but I just having to press 'back or 'exit'' is intuitive enough to work in my house. Also, since I operate KODI from a universal remote control I have simply made a macro which sends both the alt+F4 and a back command on a single keypress, so this is not really an issue.

My problem is that I always use KODI in full screen mode, and then KODI appears to close (but it in fact crashes on closing and will not restart) when launching Google Chrome, so the program Addons subfolder is no longer visible, and pressing 'back' achieves nothing.

I can try to see if I can make the suggested solution work, as it would be more elegant, but since I prefer to always use KODI in full screen mode it will not be of much use unless it also solves the primary problem. Furthermore, I am more of a KODI user than a programmer, so I am not certain I will be able to implement it.

Maybe I can set up the Keymap Editor to start Chrome Launcher directly from my keyboard? That way I can have control of the full screen issue from the remote control before Chrome Launcher is activated?

Christopher
Reply
I'm not really a programmer either, just little bits here and there I've picked up. It took me a long time (like, a couple hours) to feel comfortable enough with the script and then figure out how to modify it. I'm still not sure how the .sh scripts come into play.

Sounds like you're having a different problem though than getting Kodi to default to the Home screen. I use it full screen too, and Kodi just lives behind Chrome. If I were you, I'd try to figure out why Kodi was crashing. Can you get it to crash any other time than with chrome launcher? If you alt-tab out of Kodi, then open Chrome, does it crash? Do you have enough RAM to run both? Are there any conditions that you can get Kodi to relaunch? If you can narrow it down, people who know way more than me could probably help you. You also could try reinstalling Kodi and/or Chrome. Does it happen only in full screen mode? Is the video card DX11?

The keymap editor could be a workable solution too.
Reply
Hi, KODI works fine under all other circumstances. It is just when using Chrome Launcher with KODI in full screen mode.

I am using a Windows 7 PC. I have not been able to find the folder which should contain the the script. I have looked in the folder called 'CTonguerogram Files (x86)/Kodi/addons' Am I looking in the wrong place?

Will try the alt+tab when I am in front of the PC at home , right now I am just remoting in from work, and then I cannot operate it in full screen mode, screen just goes black.
Reply
Every time I close chrome launcher it returns me to the desktop is there a way to return to kodi?
Reply
For me KODI is minimized when using Chrome Launcher and closing Chrome, but I have found no way, short of finding a mouse or a full keyboard, to maximize it. So, after having used KODI's Chrome Launcher to launch Spotify, then exited Spotify with an alt+F4 command, the only thing my wife can see is a blank desktop. She then presses the Start KODI button on the remote control, which immediately crashes KODI since it is already running, but hidden. So I typically have to remote in from work, press ctr+alt+del, close KODI (which is not responding) and tell my wife she can press the start KODI button again. Surely there must be a more elegant way of restoring KODI after using the Chrome Launcher??
Reply
(2016-04-13, 10:07)jspin72 Wrote:
(2015-10-25, 13:14)masinad Wrote: I'm using ubuntu 15.04 headless server and when I go youtube leanback mode, then I can hear menu sounds, but when I select video id does not load and keeps buffering. If I add youtube.com to script and view in there, then there is sound and every other website works fine. can some1 help me out to get sound to youtube leanback mode?

If I remove asound.conf then video will start but whit no sound.

The problem seems to be in asound.conf but I dont know, because in other webistes eg. Vimeo couchmode there is sound and all the other sites. only yt leanback does not work, just keeps loading..

(2016-03-03, 18:51)subrah519 Wrote: Im having trouble with Youtube Leanback, it launches beautifully, but the video won't play - It just buffers and won't start playing! Any thoughts?

I'm having nearly the same exact problem and I believe it's somehow related to a combination of sound and the leanback mode of youtube.
running kodibuntu 14.04 with Jarvis 16.0 and google-chrome (not chromium)

* opening chrome launcher to vimeo couchmode works
* opening chrome launcher to normal youtube works
* opening chrome launcher to youtube/leanback results in navigation sounds, but when I select a video, it acts as if its buffering permanently. If I turn gui sounds on in system->settings->audio, then youtube/leanback mode makes no navigation sounds but videos play (without sound)
* when I log out of kodi and login to the lubuntu session, running the exact same chrome binary handles both normal youtube and youtube/leanback just fine (with sound).

What's so special about leanback mode that would cause this behavior?

in kodi.log I'm seeing a message like this for most websites I try opening
Code:
ERROR: GetDirectory - Error getting plugin://plugin.program.chrome.launcher/?kiosk=yes&mode=showSite&stopPlayback=yes&url=http%3a%2f%2fwww.youtube.com%2fleanback
ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.program.chrome.launcher/?kiosk=yes&mode=showSite&stopPlayback=yes&url=http%3a%2f%2fwww.youtube.com%2fleanback) failed

This likely explains why I have to turn gui sounds off inside settings -> audio to get sound within chrome launcher. This is in addition to turning off "keep audio device alive".

Any suggestions on the errors in the log? If those can be resolved so that stopPlayback=yes takes effect, gui sounds should not have to be turned off globally via settings.

thanks


I had the same problem, video just keeps buffering and will not start playing in youtube tv mode.
I managed to fix this problem by installing SmartVideo For YouTube extension.
https://chrome.google.com/webstore/detai...pcddinpjjp

Now youtube works fine. Hope this helps Smile
Reply
Exclamation 
Hi,

I'm trying to launch http://www.netflix.com with chromium on a Raspbian wheezy

I've updated path in default.py, browser.sh, and scrip.sh to /usr/bin/chromium, and tested both browser, and script on the custom path setting of the addon.

I've also "played" with script and currently it looks like:

Code:
#!/bin/bash
/usr/bin/chromium --window-size=1920,1080 --window-position=0,0 --chrome-frame "$@"

But no matter what I change I keep getting the following errors on the log:

Code:
01:48:43 T:3037720576   ERROR: GetDirectory - Error getting plugin://plugin.program.chrome.launcher/?kiosk=yes&mode=showSite&stopPlayback=yes&url=http%3a%2f%2fwww.netflix.com
01:48:43 T:3037720576   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.program.chrome.launcher/?kiosk=yes&mode=showSite&stopPlayback=yes&url=http%3a%2f%2fwww.netflix.com) failed

Can anyone help?

Full log bellow:

Code:
01:48:41 T:2951738432   DEBUG: PushCecKeypress - received key  b duration 0
01:48:41 T:3037720576   DEBUG: OnKey: 11 (0x0b) pressed, action is Select
01:48:41 T:3037720576   DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.program.chrome.launcher/?kiosk=yes&mode=showSite&stopPlayback=yes&url=http%3a%2f%2fwww.netflix.com)
01:48:41 T:3037720576   DEBUG:   ParentPath = [plugin://plugin.program.chrome.launcher/]
01:48:41 T:2802840640  NOTICE: Thread JobWorker start, auto delete: true
01:48:41 T:2802840640   DEBUG: StartScript - calling plugin Chrome Launcher('plugin://plugin.program.chrome.launcher/','24','?kiosk=yes&mode=showSite&stopPlayback=yes&url=http%3a%2f%2fwww.netflix.com')
01:48:41 T:2757751872  NOTICE: Thread LanguageInvoker start, auto delete: false
01:48:41 T:2802840640   DEBUG: WaitOnScriptResult - waiting on the Chrome Launcher (id=32) plugin...
01:48:41 T:2757751872    INFO: initializing python engine.
01:48:41 T:2757751872   DEBUG: CPythonInvoker(32, /home/pi/.kodi/addons/plugin.program.chrome.launcher/default.py): start processing
01:48:41 T:2951738432   DEBUG: PushCecKeypress - received key  b duration 82
01:48:42 T:2757751872  NOTICE: -->Python Interpreter Initialized<--
01:48:42 T:2757751872   DEBUG: CPythonInvoker(32, /home/pi/.kodi/addons/plugin.program.chrome.launcher/default.py): the source file to load is "/home/pi/.kodi/addons/plugin.program.chrome.launcher/default.py"
01:48:42 T:2757751872   DEBUG: CPythonInvoker(32, /home/pi/.kodi/addons/plugin.program.chrome.launcher/default.py): setting the Python path to /home/pi/.kodi/addons/plugin.program.chrome.launcher:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages:/usr/lib/pymodules/python2.7
01:48:42 T:2757751872   DEBUG: CPythonInvoker(32, /home/pi/.kodi/addons/plugin.program.chrome.launcher/default.py): entering source directory /home/pi/.kodi/addons/plugin.program.chrome.launcher
01:48:42 T:2757751872   DEBUG: CPythonInvoker(32, /home/pi/.kodi/addons/plugin.program.chrome.launcher/default.py): instantiating addon using automatically obtained id of "plugin.program.chrome.launcher" dependent on version 2.1.0 of the xbmc.python api
01:48:42 T:3037720576   DEBUG: ------ Window Init (DialogBusy.xml) ------
01:48:42 T:2757751872  NOTICE: Debug Disable
01:48:42 T:2757751872  NOTICE: Full Path:
01:48:42 T:2757751872  NOTICE:  /usr/bin/chromium --start-maximized --disable-translate --disable-new-tab-first-run --no-default-browser-check --no-first-run --kiosk /home/pi/.kodi/userdata/addon_data/plugin.program.chrome.launcher/black.html
01:48:42 T:2757751872    INFO: CPythonInvoker(32, /home/pi/.kodi/addons/plugin.program.chrome.launcher/default.py): script successfully run
01:48:43 T:2757751872    INFO: Python script stopped
01:48:43 T:2757751872   DEBUG: Thread LanguageInvoker 2757751872 terminating
01:48:43 T:2802840640   DEBUG:  WaitOnScriptResult - plugin exited prematurely - terminating
01:48:43 T:3037720576   ERROR: GetDirectory - Error getting plugin://plugin.program.chrome.launcher/?kiosk=yes&mode=showSite&stopPlayback=yes&url=http%3a%2f%2fwww.netflix.com
01:48:43 T:3037720576   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.program.chrome.launcher/?kiosk=yes&mode=showSite&stopPlayback=yes&url=http%3a%2f%2fwww.netflix.com) failed
01:48:43 T:3037720576   DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.program.chrome.launcher/)
01:48:43 T:3037720576   DEBUG:   ParentPath = [addons://sources/executable/]
01:48:43 T:2802840640   DEBUG: StartScript - calling plugin Chrome Launcher('plugin://plugin.program.chrome.launcher/','25','')
01:48:43 T:2757751872  NOTICE: Thread LanguageInvoker start, auto delete: false
01:48:43 T:2802840640   DEBUG: WaitOnScriptResult - waiting on the Chrome Launcher (id=33) plugin...
01:48:43 T:2757751872    INFO: initializing python engine.
01:48:43 T:2757751872   DEBUG: CPythonInvoker(33, /home/pi/.kodi/addons/plugin.program.chrome.launcher/default.py): start processing
01:48:43 T:3037720576   DEBUG: ------ Window Init (DialogBusy.xml) ------
01:48:43 T:2757751872  NOTICE: -->Python Interpreter Initialized<--
01:48:44 T:2757751872   DEBUG: CPythonInvoker(33, /home/pi/.kodi/addons/plugin.program.chrome.launcher/default.py): the source file to load is "/home/pi/.kodi/addons/plugin.program.chrome.launcher/default.py"
01:48:44 T:2757751872   DEBUG: CPythonInvoker(33, /home/pi/.kodi/addons/plugin.program.chrome.launcher/default.py): setting the Python path to /home/pi/.kodi/addons/plugin.program.chrome.launcher:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages:/usr/lib/pymodules/python2.7
01:48:44 T:2757751872   DEBUG: CPythonInvoker(33, /home/pi/.kodi/addons/plugin.program.chrome.launcher/default.py): entering source directory /home/pi/.kodi/addons/plugin.program.chrome.launcher
01:48:44 T:2757751872   DEBUG: CPythonInvoker(33, /home/pi/.kodi/addons/plugin.program.chrome.launcher/default.py): instantiating addon using automatically obtained id of "plugin.program.chrome.launcher" dependent on version 2.1.0 of the xbmc.python api
01:48:45 T:2757751872  NOTICE: Debug Disable
01:48:45 T:2757751872   DEBUG: LocalizeStrings: no strings.po file exist at /home/pi/.kodi/addons/plugin.program.chrome.launcher/resources/language/English, fallback to strings.xml
01:48:45 T:2802840640   DEBUG: WaitOnScriptResult- plugin returned successfully
01:48:45 T:3037720576   DEBUG: Saving fileitems [plugin://plugin.program.chrome.launcher/]
01:48:45 T:2757751872    INFO: CPythonInvoker(33, /home/pi/.kodi/addons/plugin.program.chrome.launcher/default.py): script successfully run
01:48:45 T:3037720576   DEBUG:   -- items: 4, sort method: 0, ascending: false
01:48:45 T:2896794688  NOTICE: Thread BackgroundLoader start, auto delete: false
01:48:45 T:2896794688   DEBUG: Thread BackgroundLoader 2896794688 terminating
01:48:45 T:3037720576   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
01:48:45 T:2757751872    INFO: Python script stopped
01:48:45 T:2757751872   DEBUG: Thread LanguageInvoker 2757751872 terminating
Reply
Have you tried any other URL?


Sent from my iPhone
Reply
(2016-08-28, 03:30)ed_davidson Wrote: Have you tried any other URL?

Yes. Tried with Google.com and the default YouTube and Vimeo sites and the same error.
Reply
Hi all does anyone have anyway of getting chrome launcher to work in android? If not is there any other way of launching a website in kiosk mode?
Or even if anyone knows how to launch a webapp shortcut from the android homescreen in kodi??
Reply
(2015-10-22, 23:33)rogerthehart Wrote: Would it be possible to add an option to Inhibit Idle Shutdown on Kodi on Chrome launch, then re-allow when Chrome is closed?
Right now, I do this with an AutoIt script, but it's messy: watch for Chrome process, kill Kodi when Chrome launches, then restart Kodi after Chrome is closed.

Has anyone managed to solve this? - I have my chrome-launcher running perfectly in Kodi Jarvis 16.1 on Ubuntu 14.04.5 LTS platform. I just get frustrated when inhibit idle shutdown doesnt work with chrome open. It would be amazing to solve this one.
Reply
I recently upgraded to the newest stable of Kodi and when I did, chrome launcher no longer sets up Chrome in Kiosk mode. I only use it for netflix so its not a huge deal, but the kids will leave the bar on top without full-screening for hours. All of the settings are the same as they were before. I can't figure it out. Any ideas?
Image
Reply
guys, check the version in my repo and see if that works and report back in what works & what doesn't.. URL in sig
rasjani's addon repo - home of reddit_tv, sciflix, moontv and few other addons.
Reply
I've found a solution to the problem of being left in the sub-menu once you exit Chrome (when launching from a shortcut made on the main menu, for example) that doesn't involve editing the scripts.

The issue appears to be related to the shortcut that gets created in your main menu. I'm using the reFocus skin at the moment and noticed that when I created a shortcut to Chrome Launcher's YouTube item, the button action for the shortcut was defined like this:

ActivateWindow(10001, "plugin://.....")

(where "plugin://....." has some extra stuff specifying the action to Chrome Launcher).

The solution for me was to replace "ActiavteWindow(10001, " with "PlayMedia(" like this:

PlayMedia("plugin://.....")

For reFocus I was able to do this in the menu customization settings in the UI (I can't remember how to do it in other skins but maybe the same?).

This fixes the issue for me and Chrome gets launched without navigating Kodi away from the main menu.

Hope this helps someone!
Reply
  • 1
  • 39
  • 40
  • 41(current)
  • 42
  • 43
  • 47

Logout Mark Read Team Forum Stats Members Help
[RELEASE] Chrome Launcher8