I have a media element for which I wish to dynamically set the source. I'm able to do this for local video, but not for a streaming source. the following scenarios illustrate my problem:
Hard-coded embeded video source. This works:
<MediaElement AutoPlay="false" Name="mediaBox" Source="localVid.wmv" />
Hard-coded streamed video source. This works:
<MediaElement AutoPlay="false" Name="mediaBox" Source="http://play.rbn.com/play.asx?url=cspan/cspan/wmlive/cspan1v.asf" />
Dynamically assigned embeded video source. This works:
<MediaElement AutoPlay="false" Name="mediaBox" Source="" />
in javascript file: sender.findName("mediaBox").setSource(sender,"localVid.wmv");
Dynamically assigned streamed video source. This throws an AG_Runtime_Method error:
<MediaElement AutoPlay="false" Name="mediaBox" Source="" />
in javascript file: sender.findName("mediaBox").setSource(sender,"http://play.rbn.com/play.asx?url=cspan/cspan/wmlive/cspan1v.asf");
Why can't I dynamically assign the streaming source without throwing an error?
Any suggestions would be greatly appreciated.