Currently the Media Elements use the base name of the file as the key for the StaticResource which means that two different file types with the same name will clobber each other and create a sea of red in the console. I see a couple of different options:
A stopping error message in the console when BaseName of one Media Element is the same as another (e.g. Loon.mp3 and Loon.jpg)
Using the full name of the file including extension as the key of the StaticResource (e.g. Loon.mp3 would become LoonMP3)
I'm leaning toward the latter because errors are never fun. However, it does make the syntax of the StaticResource a bit odd.
Currently the Media Elements use the base name of the file as the key for the StaticResource which means that two different file types with the same name will clobber each other and create a sea of red in the console. I see a couple of different options:
I'm leaning toward the latter because errors are never fun. However, it does make the syntax of the StaticResource a bit odd.