Closing MovieInformation Dialog

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
shellshark Offline
Junior Member
Posts: 4
Joined: May 2012
Reputation: 0
Post: #1
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. Blush

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 Undecided

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
find quote
Martijn Online
Team-XBMC
Posts: 7,697
Joined: Jul 2011
Reputation: 114
Location: Dawn of time
Post: #2
import xbmc
xbmc.executebuiltin('Dialog.Close(movieinformation)')

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first


For your mediacenter artwork go to
[Image: fanarttv.png]
find quote
shellshark Offline
Junior Member
Posts: 4
Joined: May 2012
Reputation: 0
Post: #3
This is exactly the way I tried and that didn't work for me :/
find quote
shellshark Offline
Junior Member
Posts: 4
Joined: May 2012
Reputation: 0
Post: #4
Thanks for your effort, but i think i solved the problem ... and XBMC was not the Problem. Sorry :/
(This post was last modified: 2012-06-30 09:53 by shellshark.)
find quote