0
我試圖將一個活動源流式傳輸到發佈點,但不斷收到'Access is Denied'錯誤。我可以在Expression Encoder應用程序中使用正確的用戶名和密碼來做到這一點。但是當我嘗試在我的自定義應用程序中使用相同的用戶名/密碼時,出現此錯誤。我嘗試過沒有憑證的預連接,這會觸發AcquireCredentials事件。.NET表達式SDK LiveJob身份驗證
所以我知道它連接到服務器就好了,但我的用戶憑據正在通過我的自定義應用程序被拒絕。任何想法是什麼問題?這裏是我的代碼片段(如果有幫助):
LiveJob job = new LiveJob();
LiveDevice audioDevice = (LiveDevice)cmbAudioDevices.SelectedItem;
LiveDevice videoDevice = (LiveDevice)cmbVideoDevices.SelectedItem;
LiveDeviceSource liveSource = job.AddDeviceSource(videoDevice, audioDevice);
job.ActivateSource(liveSource);
System.Runtime.InteropServices.HandleRef h = new System.Runtime.InteropServices.HandleRef(panel1, panel1.Handle);
job.DeviceSources[0].PreviewWindow = new PreviewWindow(h)
{
Visible = true
};
System.Security.SecureString password = new System.Security.SecureString();
foreach (char letter in txtPassword.Text.ToCharArray())
password.AppendChar(letter);
job.OutputFormat = new WindowsMediaPublishingPointOutputFormat()
{
PublishingPoint = new Uri(txtPublishPoint.Text)
UserName = txtUsername.Text,
Password = password
};
job.PreConnectPublishingPoint();
有什麼想法?