<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Getting Started</title><link>http://forums.silverlight.net/forums/14.aspx</link><description>The perfect forum for asking the basic questions. No question too simple!</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: How to use InitParameters="m=" with files not in ClientBin folder?</title><link>http://forums.silverlight.net/forums/thread/157805.aspx</link><pubDate>Thu, 08 Jan 2009 15:06:16 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:157805</guid><dc:creator>Viktor_kulik</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/157805.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=157805</wfw:commentRss><description>if anyone stumbles over this thread, i ended up passing the media source name in code behind on page load, don&amp;#39;t know why i didn&amp;#39;t think of that right off the top.</description></item><item><title>Re: How to use InitParameters="m=" with files not in ClientBin folder?</title><link>http://forums.silverlight.net/forums/thread/157480.aspx</link><pubDate>Wed, 07 Jan 2009 23:11:46 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:157480</guid><dc:creator>Viktor_kulik</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/157480.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=157480</wfw:commentRss><description>&lt;p&gt;The thing is, I did not build this video player, i&amp;#39;m using the default videoplayer.xap from codeplex. So I don&amp;#39;t have a place to do this in xaml, only asp.net and code behind.&lt;/p&gt;</description></item><item><title>Re: How to use InitParameters="m=" with files not in ClientBin folder?</title><link>http://forums.silverlight.net/forums/thread/157406.aspx</link><pubDate>Wed, 07 Jan 2009 18:57:21 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:157406</guid><dc:creator>fullsailrick</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/157406.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=157406</wfw:commentRss><description>Does this screencast answer your question?&lt;br /&gt;&lt;br /&gt;
http://mschnlnine.vo.llnwd.net/d1/ch9/2/9/4/5/1/4/MT_B2_InitParams.wmv&lt;br /&gt;&lt;br /&gt;

You&amp;#39;re on the right track.  Pass in the name of the video to play and build the URI in the silverlight app, then set the mediaplayer source to that uri.</description></item><item><title>Re: How to use InitParameters="m=" with files not in ClientBin folder?</title><link>http://forums.silverlight.net/forums/thread/157392.aspx</link><pubDate>Wed, 07 Jan 2009 18:24:06 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:157392</guid><dc:creator>Viktor_kulik</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/157392.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=157392</wfw:commentRss><description>I guess the question i should ask is how do you set a code-behind variable (c#) to &amp;quot;m=&amp;quot; property? I have a filename variable that should work, that filename variable is a string &amp;quot;m=http://localhost:2136/media/test.wmv&amp;quot; if i copy and paste that string into the initparementer, it works, but if i use the filename it does not work. Of course I get the filename with the arrow percent thingy that keeps on getting cut out of my posts.</description></item><item><title>Re: Re: How to use InitParameters=&amp;quot;m=&amp;quot; with files not in ClientBin folder?</title><link>http://forums.silverlight.net/forums/thread/157372.aspx</link><pubDate>Wed, 07 Jan 2009 17:58:08 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:157372</guid><dc:creator>Viktor_kulik</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/157372.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=157372</wfw:commentRss><description>oh, sorry i guess it got cut out, here&amp;#39;s my situation:
&lt;br /&gt;&lt;br /&gt;
One page has a hyperlink to my player page, so from that first page I add a stringquery to the url that contains the media file name.
&lt;br /&gt;&lt;br /&gt;
On the player page, i need to create the absolute path to the media file, so to do that I need the &amp;quot;http://localhost:2136/media/&amp;quot; &amp;amp; retrieve the filename from the string query. So to do that I do:
&lt;br /&gt;&lt;br /&gt;
InitParameters=(left arrow &amp;amp; percent)&amp;quot;m=http://localhost:2136/media/&amp;quot; + Page.Request.QueryString[&amp;quot;item&amp;quot;](percent &amp;amp; right arrow)
&lt;br /&gt;&lt;br /&gt;
but that does not seem to work.</description></item><item><title>Re: How to use InitParameters="m=" with files not in ClientBin folder?</title><link>http://forums.silverlight.net/forums/thread/157365.aspx</link><pubDate>Wed, 07 Jan 2009 17:52:52 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:157365</guid><dc:creator>fullsailrick</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/157365.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=157365</wfw:commentRss><description>#1. I&amp;#39;m trying to better understand your situation, so tell me why you need the root web address?&lt;br /&gt;
#2. I can&amp;#39;t see what you pasted.  :O</description></item><item><title>Re: How to use InitParameters="m=" with files not in ClientBin folder?</title><link>http://forums.silverlight.net/forums/thread/157350.aspx</link><pubDate>Wed, 07 Jan 2009 17:32:55 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:157350</guid><dc:creator>Viktor_kulik</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/157350.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=157350</wfw:commentRss><description>Thanks for the answer, tested and it does work as you say it does, I did test this before but since i&amp;#39;m on a local drive right now, i tested it with application path and that did not work, if i set it to localhost, then it does so that gives me hope that it will work on the web.
&lt;br /&gt;&lt;br /&gt;
2 questions though:
&lt;br /&gt;&lt;br /&gt;
1. Is there a variable that will return the root web address?
2. I&amp;#39;m having a problem getting this to work, i&amp;#39;m retrieving the file name from the url:
&lt;br /&gt;&lt;br /&gt;
&amp;#39;&amp;#39;
&lt;br /&gt;&lt;br /&gt;
This website has C# for code behind, not my preference, so am i doing anything wrong here? it looks pretty straight forward. Should i have  in the header info? I didn&amp;#39;t think it was necessary in this case.
&lt;br /&gt;&lt;br /&gt;
Thanks,
Viktor</description></item><item><title>Re: How to use InitParameters="m=" with files not in ClientBin folder?</title><link>http://forums.silverlight.net/forums/thread/157293.aspx</link><pubDate>Wed, 07 Jan 2009 15:58:17 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:157293</guid><dc:creator>fullsailrick</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/157293.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=157293</wfw:commentRss><description>Oh, but hey, you do realize that Silverlight can&amp;#39;t access the local hard drive, right?  (for security reasons that aren&amp;#39;t apparent until you pretend that you have one of those evil mustaches and top hats -- and a monocle, you have to have one of those too.)</description></item><item><title>Re: How to use InitParameters="m=" with files not in ClientBin folder?</title><link>http://forums.silverlight.net/forums/thread/157292.aspx</link><pubDate>Wed, 07 Jan 2009 15:55:09 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:157292</guid><dc:creator>fullsailrick</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/157292.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=157292</wfw:commentRss><description>I&amp;#39;m like you, I almost always get the stupid path wrong.  I don&amp;#39;t know if this helps -- but what I do is create a string just before I set the videoPlayer&amp;#39;s Source -- to see where it is referencing and I cross-reference that with where the file actually is.</description></item><item><title>Re: How to use InitParameters="m=" with files not in ClientBin folder?</title><link>http://forums.silverlight.net/forums/thread/157234.aspx</link><pubDate>Wed, 07 Jan 2009 14:20:02 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:157234</guid><dc:creator>preishuber</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/157234.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=157234</wfw:commentRss><description>&lt;p&gt;with relative path it is not possible to go one step higher as clientbin&lt;/p&gt;
&lt;p&gt;absolute path like &lt;a href="http://www.blabla.com/movie.wmv"&gt;http://www.blabla.com/movie.wmv&lt;/a&gt; should work&lt;/p&gt;</description></item><item><title>How to use InitParameters="m=" with files not in ClientBin folder?</title><link>http://forums.silverlight.net/forums/thread/157097.aspx</link><pubDate>Wed, 07 Jan 2009 08:39:01 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:157097</guid><dc:creator>Viktor_kulik</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/157097.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=14&amp;PostID=157097</wfw:commentRss><description>This is regarding the SL2 video player.
Possibly a very beginner question but I have tried every way I know and the only way I can play any files is if they are somewhere inside of the clientbin where the videoplayer.xap is located. They can be inside of another folder there but I have my media in a different folder all together, right at the root (root\media). So how would I go about pointing it in a different location?

This is the asp.net code I have and the commented out part is my attempt to get the filename from the url query. It only works if its inside of the folder:

 
&amp;#39;--%&amp;gt;


Thanks,
Viktor</description></item></channel></rss>