Copyright © 2001-2018 MultiMedia Soft

CastingWmaNetworkOpenForPlayer method

Previous pageReturn to chapter overviewNext page



Creates a network session in WMA format to a certain port of the network for the output of the given player; if the player shouldn't have any sound loaded, the call to this method will fail.

After creating the casting session, you can start it through the CastingStart method.


Further information about management of casting sessions can be found inside the How to use the control as a source for streaming servers like SHOUTcast tutorial.





[Visual Basic]

control.CastingWmaNetworkOpenForPlayer (

nPlayer as Integer,

strOutputPort as String

nMaxClients as Long

nBitrate as Long

) as Long



long control.CastingWmaNetworkOpenForPlayer (

short nPlayer,

LPCTSTR strOutputPort,

long nMaxClients,

long nBitrate









Unique identifier of the stream mixer


String representing the number representing the network output port


Maximum number of accepted clients


Bitrate expressed in bits per seconds




Return value






> 0

Numeric value representing the unique identifier of the casting session: this unique identifier will be used in order to invoke further methods related to the use of the casting session itself

Negative value

An error occurred: see the LastError property for further error details or for a list of the possible error values.