Kodi Community Forum
forcing player with IsPlayable/setResolvedUrl - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: forcing player with IsPlayable/setResolvedUrl (/showthread.php?tid=99430)



forcing player with IsPlayable/setResolvedUrl - t0mm0 - 2011-04-16

hi,

i'm using IsPlayable/setResolvedUrl in my plugin (see code at https://github.com/t0mm0/t0mm0-xbmc-plugins/blob/f442e0aa82844b95850412e314d0d2441038d327/plugin.video.veetle/default.py)

is it possible to force a particular player type (eg xbmc.PLAYER_CORE_DVDPLAYER)? as i am not using xbmc.Player().play() i can't see how i could do that.

any help greatly appreciated!

thanks,

t0mm0


- ppic - 2011-04-16

what's the need ?
it will automatically use the player that can read the file.


- t0mm0 - 2011-04-16

mplayer on the xbox can't play the veetle flash streams properly but it tries to so i need to force dvd player.


- anarchintosh - 2011-04-16

+1
i have the same need for this in icefilms addon
(force DVDPLAYER on xbox)


- solver - 2011-04-18

I'd like to be able to force the player too in the grooveshark script. Currently, as far as I know, it can only be done on a per script/plugin basis using a rule in playercorefactory.xml.


- spiff - 2011-04-19

so have the xbox guys add hacks for that version. we won't carry any xbox cruft.


- t0mm0 - 2011-04-19

i have actually also come across the problem on non-xbox platforms with my subsonic plugin. i guess the mime type is sent wrong by the server (application/x-download) and files don't play, but if you choose 'play using' and select dvd player then it does play


- spiff - 2011-04-19

you're saying paplayer fails? give me a non-working example and i'll get the bug fixed.


- t0mm0 - 2011-04-19

thanks for taking a look spiff!

this is a nightly build from 17th (a857a0c) running on ubuntu maverick but i have also seen the same behaviour on 10.1.

http://pastebin.com/LnXuxExf

at around line 495 is an attempt to play a stream just by selecting it, which fails (several times as it tries to play other files in the dir), then at around line 925 i select 'play using' and choose dvd player and it works.

you can also reproduce it using a strm file with the url
Code:
http://demo.subsonic.org/rest/download.view?p=guest&c=xbmc&u=guest4&f=json&v=1.5.0&id=2f686f6d652f73696e6472656d656875732f6d757369632e64656d6f2f416e7469676f6e612f416e7469676f6e612f3031202d20417472617061646f2e6d7033
choose play using paplayer and it fails, choose dvd player and it plays.

thanks,

t0mm0


- anarchintosh - 2011-04-19

i don't think its really an issue of adding code to support xbox (which i agree is bad)
afterall xbmc.player.play allows you to set the player type. would just be nice to round off xbmcplugin module to support the same level features as xbmc module