<?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>Video and Media</title><link>http://forums.silverlight.net/forums/20.aspx</link><description>Discussions about video and media in Silverlight applications</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>The limit of MediaElement Count in a Silverlight Page is 123.</title><link>http://forums.silverlight.net/forums/thread/37552.aspx</link><pubDate>Sat, 15 Mar 2008 17:56:03 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:37552</guid><dc:creator>Gilbert Lee Kor</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/37552.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=20&amp;PostID=37552</wfw:commentRss><description>&lt;p&gt;I found this&amp;nbsp;problem developing a game like&amp;nbsp;&amp;#39;rythm it&amp;#39;&amp;nbsp;(a kind of BMS).&lt;br /&gt;In the game, since over 270 audio sources are used,&lt;br /&gt;I would like to create MediaElements for audio resources in advance.&lt;/p&gt;
&lt;p&gt;But when&amp;nbsp;I&amp;nbsp;implement and run&amp;nbsp;my game, I found that some media files isn&amp;#39;t played.&lt;/p&gt;
&lt;p&gt;So, I try to test it in this way and that way.&lt;br /&gt;At last, I realized that&amp;nbsp;from 124th MediaElement, play() method doesn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;u&gt;&lt;font size="3"&gt;Simulation&lt;/font&gt;&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;This is the simulation which you can test it yourself.&lt;br /&gt;Let&amp;#39;s turn&amp;nbsp;up the volume!&lt;/p&gt;&lt;a class="" href="http://shiverlight.net/Experiment/MediaElementLimit/MediaElementLimitTestPage.html" target="_blank"&gt;&lt;img style="WIDTH:338px;HEIGHT:558px;" height="558" src="http://shiverlight.net/Experiment/MediaElementLimit/MediaElementLimit.png" width="338" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;p&gt;&lt;strong&gt;&lt;u&gt;&lt;font size="3"&gt;Source&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/u&gt;&lt;/strong&gt;You can download the source files by clicking the link follow.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class="imageblock center" style="CLEAR:both;TEXT-ALIGN:center;"&gt;&lt;a href="http://gilverlight.net/attachment/ek170000000047.zip"&gt;&lt;img style="VERTICAL-ALIGN:middle;" alt="" src="http://cfs.tistory.com/blog/image/extension/zip.gif" /&gt;&lt;font color="#557191"&gt; MediaElementLimit.zip&lt;/font&gt;&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;strong&gt;&lt;font size="3"&gt;&lt;u&gt;Conclusion of the experiment&lt;/u&gt;&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;You should create less than 124 MediaElements with Silverlight 2 Beta1.&lt;br /&gt;If you must use&amp;nbsp;more than 123 Media Sources, you need recycle the MediaElements&lt;br /&gt;those were already created.&lt;/p&gt;
&lt;p&gt;For example,&amp;nbsp;In case&amp;nbsp;that&amp;nbsp;a silverlight page has&amp;nbsp;more than 123 MediaElements,&lt;br /&gt;some will not work.&lt;br /&gt;&lt;br /&gt;By another test, I found the additional facts below&lt;br /&gt;&lt;br /&gt;1) Though you&amp;nbsp;add entity type (&amp;lt;MediaElement ...&amp;gt;)&amp;nbsp;in XAML file, result is the same.&lt;br /&gt;2) When every MediaElement is binded with unique media source, result is the same.&lt;/p&gt;
&lt;p&gt;What is the cause?&lt;br /&gt;Will it be fixed when the next version of Silverlight is released?&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>