Top Stories
|
Build a Silverlight media player9 Jan 2008 20:32 Going for goldFirst remove the Default.html, Web.Config, Default.html.js and Silverlight.js files. The silverlight.js file is no longer required - this functionality is replaced by Silverlight Streaming. Add some JavaScript that can be called when the application loads - add a file called Player.js as follows (the createDelegate snippet is just some glue that used to come from Silverlight.js).
Silverlight.createDelegate = function(instance, method) {
return function() {
return method.apply(instance, arguments);
}
}
function onLoad(sender, context, source)
{
var scene = new ChildOfMine.Page();
scene.handleLoad(sender, context, source);
}
Then create a manifest.xml file that loads the XAML and calls the onLoad function defined above.
<SilverlightApp>
<version>1.0</version>
<source>Page.xaml</source>
<onLoad>onLoad</onLoad>
<jsOrder>
<js>Page.xaml.js</js>
<js>Player.js</js>
</jsOrder>
</SilverlightApp>
You can now ZIP up the files and upload to Silverlight Streaming - a process described in detail in my earlier article. To see the application running using the Silverlight Streaming IFRAME invoker click on this link. Wrapping it upTraditionally graphic designers use a tool like Photoshop then "throw their design over the wall" to developers who are responsible for cutting the graphics into the application. The design very rarely works exactly as intended and considerable rework is required if the design changes. The combination of Expression and Visual Studio offers a way to close the gap between the two camps.® Thanks to Helen Yousaf for permission to use her copyright material in this article. Rob Blackwell is director of R&D for Active Web Solutions who worked with the Royal National Lifeboat Institute (RNLI) to build its award winning Sea Safety tracking system. You can keep up with Rob here. 2 comments posted — Comment period finished If the picture is blurryPosted: 23:03 10th January 2008 All very interesting but...Posted: 04:20 14th January 2008
Track this type of story as a custom Atom/RSS feed or by email. Related storiesVirtual Earth puts human face on data (16 May 2008)
|
Breaking Hardware News
Nvidia issued some somber news for shareholders today, revealing a financial forecast cut short due to slowing sales, a delayed ramp for new product, and a hefty payout due to faulty laptop chips.
Newsletter |