Copyright © 2005-2018 MultiMedia Soft

CastingStop method

Previous pageReturn to chapter overviewNext page



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.





[Visual Basic]

Public Function CastingStop (

nCastingUniqueID as Int32

) as enumErrorCodes



public enumErrorCodes CastingStop (

Int32 nCastingUniqueID




public: enumErrorCodes CastingStop (

Int32 nCastingUniqueID









Unique identifier of the casting session returned by a previous call to one of the following methods:




Return value






Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.NOERROR (0)

The method call was successful