Log in

View Full Version : Player: sending remote control key events to embedded Silverlight object


johnspurlock
May 24th, 2009, 02:48 PM
Ok, so I have an embedded Silverlight example working using the following:

listitem = mc.ListItem()
listitem.SetPath( "http://pathto/TestPage.html" )
mc.GetPlayer().Play( listitem )

This launches the embedded web browser, with the Silverlight control resized to take up the full screen. Perfect.

At this point I'd like to send all remote control events (other than "back") directly to the Silverlight control instead of to the Player (volume/back/forward/pause etc).

Is there a way to trap these events before they are sent to the Player?

Sniperking
May 24th, 2009, 04:34 PM
Hey

Have you read the section about javascript actions at the bottom of here http://developer.boxee.tv/rss-specification/
It mentions it but i still wouldn't know how to use it properly.

Though i too would like a more full explanation of how to implement this on standard rss links (youtube,vimeo for example).

xmcnuggetx
May 24th, 2009, 05:35 PM
this may be some help as well:
http://dir.boxee.tv/apps/hulu/player.js

stelcheck
June 3rd, 2009, 10:25 PM
Am i to understand that the javascript api is valid only for flash:// links? I can control the flash player in my application with some javascript within the page, but the boxee controls do not seem to be sending js calls at all...


-- Edit

That would kinda suck, cause the externalinterface for the player all works, all the Boxee functions are created, all works fine... all I would need is for the boxee application to make the calls.

dloomer
June 3rd, 2009, 10:45 PM
Kind of related, is there any way to programatically send keystrokes to a Flash/Silverlight object? Plex supports this, and I'm trying to mimic a Plex application in Boxee.

stelcheck
June 4th, 2009, 10:50 AM
Another thing concerning the player control : if you skip or back, the time does not seem to be adjustable... perhaps this has to be in the python/sml skin code instead?