CastingStop method |
|
Remarks
Stops the casting session previously started through the CastingStart method.
The call to this method will cause the engine to invoke the CallbackForCastingEvents delegate with its nEvent parameter set to one of the following values::
• | If the casting session has been initiated by a custom Stream Mixer, the EV_CASTING_STREAM_MIXER_STOP event. |
• | If the casting session has been initiated by one of the available players, the EV_CASTING_PLAYER_DONE event. |
• | If the casting session has been initiated by a WASAPI loopback device, the EV_CASTING_LOOPBACK_STOP event. |
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.
Syntax
[Visual Basic] Public Function CastingStop ( nCastingUniqueID as Int32 ) as enumErrorCodes |
[C#] public enumErrorCodes CastingStop ( Int32 nCastingUniqueID ); |
[C++] public: enumErrorCodes CastingStop ( Int32 nCastingUniqueID ); |
Parameter |
Description |
||||||
|
|
||||||
nCastingUniqueID |
Unique identifier of the casting session returned by a previous call to one of the following methods:
|
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred (see the LastError property for further error details) |
enumErrorCodes.NOERROR (0) |
The method call was successful |