2012-06-29, 21:37
Hi,
I've written an Addon to play movies from an online tv recorder. So far this works great. Addon development is very comfortable for XBMC.
The movie download requires me to wait for an server to prepare the file. I can check state of this preparation via an API Call. So - my Addon presents an List of Recorded Items which have as URL an internal Plugin-URL that requests the File, waits (showing an ProgressDialog) for completition and calls the real File URL by PlayMedia(...). This works pretty good when i play it from the File listing, but when i click Play from the MovieInformation Dialog XBMC hangs.
I think this is because the MovieInformation Screen has to be closed before i call PlayMedia(). But i cant close it with Dialog.Close(MovieInformation) - i don't know why but nothing matters
I hope someone understands what i do there and can tell me how to close the MovieInformation Window or how to call PlayMedia within this Window ...
Thank you,
Frank
The function is “_playWithWait” here, but the online version contains none of my trys to close the window (because it doesn't work still):
http://shellshark.indefero.net/p/xbmc-ot...bmc_otr.py
I've written an Addon to play movies from an online tv recorder. So far this works great. Addon development is very comfortable for XBMC.
The movie download requires me to wait for an server to prepare the file. I can check state of this preparation via an API Call. So - my Addon presents an List of Recorded Items which have as URL an internal Plugin-URL that requests the File, waits (showing an ProgressDialog) for completition and calls the real File URL by PlayMedia(...). This works pretty good when i play it from the File listing, but when i click Play from the MovieInformation Dialog XBMC hangs.
I think this is because the MovieInformation Screen has to be closed before i call PlayMedia(). But i cant close it with Dialog.Close(MovieInformation) - i don't know why but nothing matters
I hope someone understands what i do there and can tell me how to close the MovieInformation Window or how to call PlayMedia within this Window ...
Thank you,
Frank
The function is “_playWithWait” here, but the online version contains none of my trys to close the window (because it doesn't work still):
http://shellshark.indefero.net/p/xbmc-ot...bmc_otr.py