Overriding controls (skip/next/pause) of the Player GUI for a specific plugin
#1
Question 
Hi,

I am writing a plugin to control an external audio player through XBMC. This means XBMC will not handle the playback part by itself - the external player will do that.

I have a little problems though: I want to use the default audio playback GUI of XBMC (with skip/pause/shuffle buttons), but I want to remap the actions.

First of all: How do I show and modify the content of the player (maybe something like xbmc.Player())? I also want to show the playback progress and metadata from the external player so I need an interface with will allow me to interact with the XBMC player.

Could somebody point me to a Python module or class which can handle this?
Main: CPU: Intel Core i7-4790K, GFX: AMD RX480 8GB OC, Debian Linux
HTPC: CPU: Intel Core i5-3475S, GFX: Intel HD4000, Gentoo Linux (Kernel 4-stable), Kodi with 4K@30Hz and HD audio, AVR: Denon X6300H with 7.1.4 setup, TV: Samsung UE55HU7590@SEK3500
Fun: Microsoft XBox, with XBMC :)
Reply
#2
I have not done this yet but maybe you can inherit from xbmc.player, like described here.
Reply
#3
Thanks - I'll try that. But this will not get around the initial problem: I need to fool XBMC into thinking it is playing back a file when it really is not - only the GUI should display the controls.

A really hacky way around this would be a dummy (silent) MP3 stream which I could hand over to xbmc.Player().play(). This way XBMC would think it's playing back something and I could even send the metadata of the remote song through the stream. But right now I am still looking for a better solution - any more ideas?
Main: CPU: Intel Core i7-4790K, GFX: AMD RX480 8GB OC, Debian Linux
HTPC: CPU: Intel Core i5-3475S, GFX: Intel HD4000, Gentoo Linux (Kernel 4-stable), Kodi with 4K@30Hz and HD audio, AVR: Denon X6300H with 7.1.4 setup, TV: Samsung UE55HU7590@SEK3500
Fun: Microsoft XBox, with XBMC :)
Reply

Logout Mark Read Team Forum Stats Members Help
Overriding controls (skip/next/pause) of the Player GUI for a specific plugin0