since i haven't messed with the XBMC API before, i wanted to start by simply just playing a local video first, then grow the plugin by streaming it from their site, then expand it more by listing the available videos to stream. so as a first run, i've written the simplest plugin that i can think of.
if ( __name__ == "__main__" ):
xbmc.Player(xbmc.PLAYER_CORE_MPLAYER).play( "/Users/keith/Downloads/1192.flv" )
what happens here is that when i run my plugin from the videos menu, the first frame of the video loads and the audio starts playing correctly. but after that the video does not play and XBMC locks up (the audio continues but the app in un-responsive). i am forced to force quit XBMC (OS X Leopard) i also tried all the other player types (auto, dvdplayer, etc) and they all display the same behavior. this is with XBMC 9.04
i then tried putting the file into my videos directory to just play the file through XBMC normally. this works fine. the video plays normally and the interface (pause, menu, etc) work.
my question is: is there something fundamentally wrong with my script that would make playback not work correctly? i did not see anything in the docs about needing any other setup API calls before playing a video.