Hi Vishal,
Basically I've got two TextBox controls, a Button, and a SmoothStreamingMediaElement in my page. The two TextBox controls let me specify the source url and the logging url. In the click event for the button I've got the following:
this.SmoothMediaElement.LoggingUrl = this.TextBoxLoggingUrl.Text;
this.SmoothMediaElement.SmoothStreamingSource = new Uri(this.TextBoxSourceUrl.Text);
I noticed that just setting the SmoothStreamingSource property does not automatically cause the media to begin playing (like it does for the MediaElement control), so I had to register a handler for the SmoothStreamingMediaElement.MediaOpened event, and in the handler I've got the following:
this.SmoothMediaElement.Play();
Now I've got an additional Button on the page which pauses the media within a click event:
this.SmoothMediaElement.Pause();
After the Pause() call occurs, I'd expect to see the page send a POST message containing the logging information to the Url which I set for the LoggingUrl property, but this POST message is not being sent (I'm using fiddler to spy on the traffic).
Now, if I comment out the line where I set the LoggingUrl property and instead add the <LogUrl> section into my .ismc file, then I DO see the POST message being sent.
Am I missing something or doing something wrong?