Hi there!
The guys from the windows forum "sent" me over with my problem
( http://forum.xbmc.org/showthread.php?tid=118714 )
I have a doorcamera, which delievers a rtsp stream.
I have managed to play it on xbmc via a *.strm file.
Target:
Push a button on my ps3 remote -> popup with camera stream appears
Push the button again -> popup goes away
Can someone help a noob with the right lines of code (and an idiotproof howto where to put it).
thanx in advance!
Popup Window with video stream
wphj1
Member+ Joined: Feb 2011 Reputation: 0 Location: Vienna |
2012-01-05 14:50
Post: #1
|
| find quote |
mad-max
Posting Freak Joined: Jul 2010 Reputation: 52 Location: Germany |
2012-01-05 17:08
Post: #2
Create an addon with a default.py an insert the following code:
Code: import xbmcThen you can map a button to your remote that launches the addon... Pressing Stop will stop the stream... cheers, mad-max |
| find quote |
wphj1
Member+ Joined: Feb 2011 Reputation: 0 Location: Vienna |
2012-01-05 20:05
Post: #3
Ok, i´ve created a new folder in my addon collection
http://www.phj.at/xbmc/folder.jpg Then i made a new default file with the editor http://www.phj.at/xbmc/default.jpg Since i want the letter "N" (which i assigned to the "Playstation" Button) to start the stream i have edited the keymap in the main install directory http://www.phj.at/xbmc/keymap.jpg But NOTHING happens. Do i have to activate the new addon somewhere? (its not listed in the "addon" section of the system settings) |
| find quote |
mad-max
Posting Freak Joined: Jul 2010 Reputation: 52 Location: Germany |
2012-01-05 23:38
Post: #4
Because you did not create an Addon...
You simply copied the py file in there... There is no Addon.xml... |
| find quote |
wphj1
Member+ Joined: Feb 2011 Reputation: 0 Location: Vienna |
2012-01-06 10:54
Post: #5
Now i created an addon.xml in the folder (adapted from another addon)
http://www.phj.at/xbmc/addon.jpg Still nothing happens
|
| find quote |
mad-max
Posting Freak Joined: Jul 2010 Reputation: 52 Location: Germany |
2012-01-06 11:17
Post: #6
log-file?
|
| find quote |
wphj1
Member+ Joined: Feb 2011 Reputation: 0 Location: Vienna |
2012-01-06 11:24
Post: #7
|
| find quote |
mad-max
Posting Freak Joined: Jul 2010 Reputation: 52 Location: Germany |
2012-01-06 18:05
Post: #8
What about <p>RunScript(PathToDefault.py)</p>
Success? mm |
| find quote |
wphj1
Member+ Joined: Feb 2011 Reputation: 0 Location: Vienna |
2012-01-06 20:24
Post: #9
http://pastebin.com/UGfc8xUU
If i push the playstation button theres an error message in the right bottom corner. Then i realised i wrote "C:\\Users" instead of "c:\\benutzer", but when i change it, nothing happens. I tried to change it to "RunAddon" with the path to the addon.xml -> nothing happens (not even the error message) |
| find quote |

![[Image: obi3o55x.jpg]](http://s14.directupload.net/images/120514/obi3o55x.jpg)
![[Image: 7c8w3bu8.png]](http://mad-max.bplaced.net/guest_upload/7c8w3bu8.png)
Search
Help