View Full Version : Plugin tutorial with video by Unbehagen
Nuka1195
2007-12-29, 16:24
Here is a very good tutorial for plugins, by Umbehagen the original author of the feature.
Be sure and view the video at the end of the article.
Very nice Unbehagen :)
http://theendofthelongestline.de/xbox/about-plugins/index.php
jmarshall
2007-12-29, 23:25
Indeed - great work Unbehagen :)
On a side note, the "browsing the filesystem" stuff is obviously a bad user experience - we need to mitigate this as much as possible. I could add specific code to workaround this in the mediawindows and the browse dialog (needs some special-case stuff) or alternatively we could simply auto-show the video plugins share like we do in library mode.
EDIT: I have a workaround I can use that's a bit nicer than workarounds in the mediawindows and browse dialog - essentially we just convert the "Q:\plugins" to "plugin://" in the path translation code. I guess there's specific cases to take care of though, such as users attempting to run the script from any old place (won't work) or matching up XBMC's home directory (currently I just workaround for Q:, rather than E:\Apps\XBMC for instance). I suspect this is patchy at best - IMO adding the video plugins share automatically might be a better option, though we do then have issues with when to add it (master user vs lowly users etc.)
Your thoughts?
Cheers,
Jonathan
Nuka1195
2007-12-30, 01:16
There are times running the plugin from a different location is favorable (favorites).
Having "plugin://video/" as an auto source is probably the best solution.
I already add plugin://programs/ to my apps source so any programs plugin will show auto and if they don't want the plugin shown why would it be installed anyways.
jmarshall
2007-12-30, 02:57
True, but I guess there could potentially be issues if we allow it as an autosource and the masteruser doesn't want normal users to use the plugins (eg a porn plugin for instance). A "simple" way around for now is to assume that if the user is allowed to access scripts that they are allowed to access plugins?
Favourites shouldn't be an issue - surely as long as the plugin:// URL is the one that gets set as the favourite it should work anyway?
Cheers,
Jonathan
Maybe there could be an advancedsetting that acts as some sort of filter list. Plugins listed there, can only be seen by the master user or by some sort of Prefix/Suffiy by a user specified. Something along the lines of: Pluginname: AdultUser1, Adultuser2. Don't know how much extra work something like this would require, and if it is userfriendly being stuffed away as an advanced setting though.
Hi
I am about to make a plugin to access Azureus, the most important feature I want is to be able to delete a torrent from Azureus, so is there support for deleting from a plugin?
As I'm trying a bunch of plugins the My Videos screen is getting crowded, is there support for a Directory/folder to put plugins in?
jonib
Nuka1195
2008-04-21, 15:44
1. sort of. you could when selecting an item, bring up a menu (created in python) and ask what to do, not very nice. but there is no context menu support, where a plugin could add an item to the existing context menu.
2. this is what i use
<source>
<name>Video Plugins</name>
<path>plugin://video/</path>
</source>
1. sort of. you could when selecting an item, bring up a menu (created in python) and ask what to do, not very nice. but there is no context menu support, where a plugin could add an item to the existing context menu.
I seem to have a Delete command in the context menu with MythTV plugin, and when I tested it deleted the video but MythTV was not notified.
I'm guessing it was pointing to a real file and XBMC just deleted it normally bypassing the plugin?
Is there any plans to add more functionality to plugins? like adding support for the delete function.
2. this is what i use
<source>
<name>Video Plugins</name>
<path>plugin://video/</path>
</source>
Thanks, I discovered that yesterday but was hoping for something more flexible.
jonib
benitoemr
2008-10-09, 05:25
Hey you guys, I am new to XBMC and I love it. I just added to my PC and it works great to organize all my media, but I am having trouble, I am not sure how to add plugins to stream videos and movies from such sights as joox.net, youtube, and also for my music. How do I do this, I have been reading the post but I just cant figure it out. Anybodys help would be appreciated thanx.
postbusjj
2008-10-15, 15:56
I have been reading the post but I just cant figure it out. Anybodys help would be appreciated thanx.
Really? Did you read it very well? See topic start there is a link bringing you to a page with a link to a video... yes... how to do it.
Good luck.
Gamester17
2008-10-16, 16:25
http://xbmc.org/wiki/?title=HOW-TO_install_and_use_plugins_in_XBMC
:;):
Try my plugin tutorial in my sig also
badticket
2008-12-28, 17:50
Hi Voinage,
thank you for that really nice TuT in your signature... ;)
It's clearly written, for beginners (like me) and makes me wonder how easy its possible to create a little fine plugin.
To come in and get familar with python it is indeed the correct stuff for me !
Only the usage of "wireshark" you've forgotten to mention...
Thanx ... :p
Greetz