Hi Richard,

On 20 May 2011, at 16:19, Richard Felton wrote:

> Hi,
> 
> Hopefully this is the right place to ask this question.
> 
> I'm looking at the possibility of using W3C widgets as a web-app mechanism on 
> an IP connected set-top box. I've had a look through the specifications 
> available and I can't see a way to pass launch parameters to a widget. Is 
> this possible or has it been ruled out for good reason?
> 
> For example, if I want to write a branded media player application (in a 
> widget)  it'd be useful if I could allow the set-top box user interface to 
> pass the identifier of the programme to be played into the widget. 
> Effectively I'm looking for a way for a widget to specify something similar 
> to command line options so that the launching entity can control the state 
> the widget starts up in.

It depends on the widget engine and what APIs it exposes. 

For example, when a web application requests a widget instance from Apache 
Wookie[1], you can also set any of its preference values using a REST API call. 

Other engines could offer a widget launch protocol that allows setting 
preferences in the launch parameters.

S

[1] http://incubator.apache.org/wookie/
 
> 
> Regards,
> 
> Richard.


Reply via email to