<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Silverlight &#124; WPF &#124; Microsoft.Net &#187; Bookmark</title>
	<atom:link href="http://joel.neubeck.net/tag/bookmark/feed/" rel="self" type="application/rss+xml" />
	<link>http://joel.neubeck.net</link>
	<description>Simplifing structure without changing results</description>
	<lastBuildDate>Fri, 01 Apr 2011 21:34:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Silverlight Video Player updated to display external bookmarks</title>
		<link>http://joel.neubeck.net/2008/08/sl2videoplayer-external-bookmark/</link>
		<comments>http://joel.neubeck.net/2008/08/sl2videoplayer-external-bookmark/#comments</comments>
		<pubDate>Mon, 04 Aug 2008 17:17:14 +0000</pubDate>
		<dc:creator>joel</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Bookmark]]></category>
		<category><![CDATA[CodePlex]]></category>
		<category><![CDATA[ScriptableMember]]></category>
		<category><![CDATA[Video Player]]></category>

		<guid isPermaLink="false">http://joel.neubeck.net/2008/08/sl2videoplayer-external-bookmark/</guid>
		<description><![CDATA[Last week someone requested a new feature to the Silverlight 2 Video player on CodePlex that would allow users to create an external list of &#8220;bookmarks&#8221;, that would link to a specific marker or moment in playback.  The idea would be to have a series of links outside of Silverlight, that once clicked,playback would jump [...]]]></description>
			<content:encoded><![CDATA[<p>Last week someone requested a new feature to the <a href="http://www.codeplex.com/sl2videoplayer/" target="_blank">Silverlight 2 Video player on CodePlex</a> that would allow users to create an external list of &#8220;bookmarks&#8221;, that would link to a specific marker or moment in playback.  The idea would be to have a series of links outside of Silverlight, that once clicked,playback would jump to that moment in the video.</p>
<p>When I originally created marker support I had given this some thought and was just waiting for the opportunity to add this feature.  I am excited someone really wants it.  Back in July I created a post called <a href="http://joel.neubeck.net/2008/07/communicating-between-sl2-objects/" target="_blank">Communicating between two Silverlight objects on a single page</a>. In this post I demonstrate how one can use a <strong>[ScriptableMember]</strong> to expose a method to JavaScript. To add this feature to the Video Player I can use this technique.</p>
<p>The first step was to create a method in my mediaControls control, which would allow a time (TimeSpan) to be passed during playback.  This call will jump the slider to that position in time and begin or continue playback.</p>
<p><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="sl2video_externalLink2" src="http://joel.neubeck.net/wp-content/uploads/2008/08/sl2video-externallink2-thumb.png" border="0" alt="sl2video_externalLink2" width="457" height="221" align="left" /> <br style="clear: both" /><a href="http://joel.neubeck.net/wp-content/uploads/2008/08/sl2video-externallink.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="sl2video_externalLink" src="http://joel.neubeck.net/wp-content/uploads/2008/08/sl2video-externallink-thumb.png" border="0" alt="sl2video_externalLink" width="383" height="125" align="left" /></a>Once we have a method in mediaControl we can expose a scriptable method in Page.xaml. This method can be called from any page hosting out Silverlight XAP.     <br style="clear: both" /></p>
<p>To demonstrate how to use this method I created a sample html page that presents a list of bookmarks that target the video player.  Each link calls a JavaScript method, that in turn calls my [ScritableMember]</p>
<p><a href="http://joel.neubeck.net/wp-content/uploads/2008/08/sl2video-externallink4.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="sl2video_externalLink4" src="http://joel.neubeck.net/wp-content/uploads/2008/08/sl2video-externallink4-thumb.png" border="0" alt="sl2video_externalLink4" width="499" height="72" align="left" /></a> <br style="clear: both" /><a href="http://joel.neubeck.net/wp-content/uploads/2008/08/sl2video-externallink3.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="sl2video_externalLink3" src="http://joel.neubeck.net/wp-content/uploads/2008/08/sl2video-externallink3-thumb.png" border="0" alt="sl2video_externalLink3" width="531" height="91" align="left" /></a> <br style="clear: both" /></p>
]]></content:encoded>
			<wfw:commentRss>http://joel.neubeck.net/2008/08/sl2videoplayer-external-bookmark/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

