Skip to main content
Home Forums Silverlight Design Video and Media The limit of MediaElement Count in a Silverlight Page is 123.
0 replies. Latest Post by Gilbert Lee Kor on March 15, 2008.
(0)
Gilbert ...
Member
20 points
6 Posts
03-15-2008 1:56 PM |
I found this problem developing a game like 'rythm it' (a kind of BMS).In the game, since over 270 audio sources are used,I would like to create MediaElements for audio resources in advance.
But when I implement and run my game, I found that some media files isn't played.
So, I try to test it in this way and that way.At last, I realized that from 124th MediaElement, play() method doesn't work.
SimulationThis is the simulation which you can test it yourself.Let's turn up the volume!
SourceYou can download the source files by clicking the link follow.
Conclusion of the experiment
You should create less than 124 MediaElements with Silverlight 2 Beta1.If you must use more than 123 Media Sources, you need recycle the MediaElementsthose were already created.
For example, In case that a silverlight page has more than 123 MediaElements,some will not work.By another test, I found the additional facts below1) Though you add entity type (<MediaElement ...>) in XAML file, result is the same.2) When every MediaElement is binded with unique media source, result is the same.
What is the cause?Will it be fixed when the next version of Silverlight is released?