How to call mediasource window?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
amamat Offline
Junior Member
Posts: 2
Joined: Jan 2010
Reputation: 0
Post: #1
Apologies in advance if this is an obvious question - I'm just starting my skinning education and my learning curve is fairly steep right now.

I'm considering updating a skin to add a new button to call the media source window (and configuring XBMC to not display "Add Source" in the container list).

When I simply call activatewindow(mediasource) from a new button within myvideo.xml, it displays the media source window but crashes XBMC when I click browse.

Should I be passing a secondary parameter?

Or - is it not possible to call the media source window from a button?

Thanks in advance for any guidance.
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
Post: #2
You can't call it from anywhere else, no. If you can detail how you reproduce the crash it's something we may look into fixing.

In addition, we aim to eventually add parameters to ActivateWindow() for dialogs like this that would allow this sort of thing. If you'd like to work on this, please let me know and I'm more than happy to guide you through the sources.

Cheers,
Jonathan

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


[Image: badge.gif]
find quote
amamat Offline
Junior Member
Posts: 2
Joined: Jan 2010
Reputation: 0
Post: #3
Jonathan - Understood, and thanks very much for the quick reply!

Regards,
Mike
find quote