views:

85

answers:

0

Hello,

I am currently migrating code over from a custom WME9 application to one built in EE3, however certain pieces of functionality I cannot seem to be able to achieve. I am trying to have the user push to a publishing point after they have entered the server and PPN.

Below is my code to attempt to push to the Publishing Point.

WindowsMediaPublishingPointOutputFormat publish = new WindowsMediaPublishingPointOutputFormat();
publish.PublishingPoint = new Uri("http://" + popup.serverField.Text + "/" + popup.ppnField.Text);
job.OutputFormat = publish;
job.PreConnectPublishingPoint();

After that code runs I receive no exceptions but when I try to connect via WMP to the stream it says it's not running. Also, the PreconnectPublishingPoint method confuses me as it is supposed to test but I see no way of knowing if it was successful or not. Is there something I am missing with it?

My second issue is trying to save the encoded stream to a WMA file. I would like the user to be able to click a button(Record) and whatever is encoded after that is then saved to a wma file when they click a stop record button. I was able to achieve this in WME9 but cannot seem to figure out how to achieve it in EE3. Any ideas?