MediaElement1.Source = New Uri ("... ...");
Posted: Wed Jul 25, 2012 2:01 am
Hello everyone, I've the following trouble:
I need to show the stream from an Axis M7001 Video Encoder, that allows 20 max views.
If I open from 4 different computers the page with the MediaElement declared as shown below:
void Video_Opened(System.Object sender, System.EventArgs e)
{
MediaElement1.Source = new Uri ("axrtsphttp://192.168.1.101/axis-media/media.amp", UriKind.Absolute);
}
and from one of those I rapidly change page from that to another and back, when I reach the 20 times allowed the stream isn't available anymore.
The question is:
If I add this:
void Video_Closed(System.Object sender, System.EventArgs e)
{
MediaElement1.Source = null;
}
Is enough to free the MediaElement1.Source every time I go away from the viedo page? If not what could I do?
Bye
Ric
I need to show the stream from an Axis M7001 Video Encoder, that allows 20 max views.
If I open from 4 different computers the page with the MediaElement declared as shown below:
void Video_Opened(System.Object sender, System.EventArgs e)
{
MediaElement1.Source = new Uri ("axrtsphttp://192.168.1.101/axis-media/media.amp", UriKind.Absolute);
}
and from one of those I rapidly change page from that to another and back, when I reach the 20 times allowed the stream isn't available anymore.
The question is:
If I add this:
void Video_Closed(System.Object sender, System.EventArgs e)
{
MediaElement1.Source = null;
}
Is enough to free the MediaElement1.Source every time I go away from the viedo page? If not what could I do?
Bye
Ric