2011-08-11, 15:14
Hi,
I want to add an option to the context menu, so the user can choose to play video transcoded. In my plugin, this is achieved by using a slight different URL for the video.
Under normal operation, a standard URL is used for the playable video item, this is then resolved to a media URL and played with setResolvedURL.
What I would like to do is, in a context menu item, alter the URL that is resolved slightly:
I've tried calling the URL directly in the context menu (using RunPlugin) but I get a handle problem (I can see it is discovered as -1).
I've also tried container.update(url) with and without ,replace and all I get is a blank listing (just the parent .. directory).
Any ideas how to start a play session from the context menu?
EDIT: This is on a pre-EDEN build btw
I want to add an option to the context menu, so the user can choose to play video transcoded. In my plugin, this is achieved by using a slight different URL for the video.
Under normal operation, a standard URL is used for the playable video item, this is then resolved to a media URL and played with setResolvedURL.
What I would like to do is, in a context menu item, alter the URL that is resolved slightly:
Code:
normal URL: http://someserver/library/metadata/1&mode=20
transcode URL: http://someserver/library/metadata/1&mode=20&transcode=1
I've tried calling the URL directly in the context menu (using RunPlugin) but I get a handle problem (I can see it is discovered as -1).
I've also tried container.update(url) with and without ,replace and all I get is a blank listing (just the parent .. directory).
Any ideas how to start a play session from the context menu?
EDIT: This is on a pre-EDEN build btw