Hi,
After replacing the program, the issue no longer occurs. Thank you. However, I have discovered another problem that existed even before the update.
When using "CastingCreateFromStreamMixer" to generate encoded streams and connect to the same or different "Icecast Servers" with different MountPoint Names, only the last MountPoint remains on the "Icecast server", and all others disappear. I slightly modified the WasapiMixAndClone sample program as follows:
When connect to Icecast, each MountPoint can be seen on the Icecast2 Status management webpage. However, when trying to listen by entering the URL, a '404 - The file you requested could not be found' error appears, and then the MountPoint disappears from the Icecast2 Status management webpage.
This phenomenon only occurs with CastingCreateFromStreamMixer, but not with CastingCreateFromPlayer."
Any idea?
Terry
After replacing the program, the issue no longer occurs. Thank you. However, I have discovered another problem that existed even before the update.
When using "CastingCreateFromStreamMixer" to generate encoded streams and connect to the same or different "Icecast Servers" with different MountPoint Names, only the last MountPoint remains on the "Icecast server", and all others disappear. I slightly modified the WasapiMixAndClone sample program as follows:
Code Select
For i = 0 To 3
Dim mp As String = frmShoutcast.TextMountName.Text.Trim & "." & i.ToString
' create and intialize casting
m_nCastingUniqueID = m_audioDjAPI.CastingCreateFromStreamMixer(m_nStreamMixerUniqueID, frmShoutcast.TextServerAddress.Text, frmShoutcast.TextPwd.Text, mp, nFormat, frmShoutcast.TextStreamName.Text, frmShoutcast.TextUrl.Text, frmShoutcast.TextGenre.Text, "", frmShoutcast.TextDescription.Text, nEncodeMode, fEncodeValue, 44100, 2)
' check if casting was intialized correctly
If m_nCastingUniqueID = 0 Then
CheckConnection.Checked = False
CheckConnection.Text = "Connect"
MessageBox.Show("Cannot create casting due to the following error " & m_audioDjAPI.LastError.ToString())
Return
End If
.
.
.same codes
.
.
Next
When connect to Icecast, each MountPoint can be seen on the Icecast2 Status management webpage. However, when trying to listen by entering the URL, a '404 - The file you requested could not be found' error appears, and then the MountPoint disappears from the Icecast2 Status management webpage.
This phenomenon only occurs with CastingCreateFromStreamMixer, but not with CastingCreateFromPlayer."
Any idea?
Terry