2017-01-30, 03:45
Ditto what the others said I've been messing around with "Playwith" to play channels with external players like VLC or Chromecast. I could never get it working with the provided files but found a really easy way to do it.
Have your playercorefactory.xml in special://profile (userdata) with the proper paths set. Don't set any rules. Make sure it works normally by bringing up the context menu on a local media file © and using "Play using..." select the desired player. If that works, you're good. There's lot's of guides how to do this part on google.
For it to work in the EPG addon, the key is to play the stream first like normal (or add stream to a playlist), and then retroactively switch the player. "y" on a keyboard brings up the playercorefactory options. The Kodi player controls will even control the external addon during playback. The few ways i do it are these. You could do all or 1; they are independent of each other.
1: Play channel, press "y" on keyboard, select player. Channel restarts in new player.
2: create a skin button in script-tvguide-main.xml for the OSD menu (6000) or the mouse controls (4300). You can also add one inside script-tvguide-main.xml. Just add the command:
<onclick>SwitchPlayer</onclick>
You would play channel, navigate to and press button during playback, select player. Playback should then restart in new player.
3: add an entry in actions.json :
You would play channel, navigate to action menu and press button during playback, select player. Playback should then restart in new player.
[
"SwitchPlayer",
"Action(SwitchPlayer)",
""
],
4: in playwith.py add this to the very bottom:
xbmc.executebuiltin('Action(SwitchPlayer)')
You would autoplaywith channel and then select player when prompted as playback starts. Playback should then restart in new player.
I think the Playwith(coreplayer) command doesn't work as it should, and that's because the url needs to be added to a playlist first. It's just the way it is. Fixing this would automate the select process using the one provided in settings, so i'll see if i can straighten it out.
Have your playercorefactory.xml in special://profile (userdata) with the proper paths set. Don't set any rules. Make sure it works normally by bringing up the context menu on a local media file © and using "Play using..." select the desired player. If that works, you're good. There's lot's of guides how to do this part on google.
For it to work in the EPG addon, the key is to play the stream first like normal (or add stream to a playlist), and then retroactively switch the player. "y" on a keyboard brings up the playercorefactory options. The Kodi player controls will even control the external addon during playback. The few ways i do it are these. You could do all or 1; they are independent of each other.
1: Play channel, press "y" on keyboard, select player. Channel restarts in new player.
2: create a skin button in script-tvguide-main.xml for the OSD menu (6000) or the mouse controls (4300). You can also add one inside script-tvguide-main.xml. Just add the command:
<onclick>SwitchPlayer</onclick>
You would play channel, navigate to and press button during playback, select player. Playback should then restart in new player.
3: add an entry in actions.json :
You would play channel, navigate to action menu and press button during playback, select player. Playback should then restart in new player.
[
"SwitchPlayer",
"Action(SwitchPlayer)",
""
],
4: in playwith.py add this to the very bottom:
xbmc.executebuiltin('Action(SwitchPlayer)')
You would autoplaywith channel and then select player when prompted as playback starts. Playback should then restart in new player.
I think the Playwith(coreplayer) command doesn't work as it should, and that's because the url needs to be added to a playlist first. It's just the way it is. Fixing this would automate the select process using the one provided in settings, so i'll see if i can straighten it out.