import plivo

client = plivo.RestClient(auth_id='<auth_id>', auth_token='<auth_token>')
response = client.multi_party_calls.stop_play_audio('participant_id',
        friendly_name='mpc_name')
print(response)
HTTP Status Code: 204

This endpoint lets you stop an already playing audio file during an active call.

DELETE
https://api.plivo.com/v1/DELETE/Account/{auth_id}/MultiPartyCall/{[name|uuid]_[<name|uuid>]}/Member/{member_id}/Play/

The member_id attribute that’s passed in the URL can be a member_id, a comma-separated list of member IDs on which this operation will be performed, or the string all. In the latter case, the audio stops playing for all members of the conference.

Use either member_id or all the same way you did to start playing audio to a member. If you initiated the play using member_id, calling the stop API with all will not stop the audio.

Arguments

No arguments need to be passed.

import plivo

client = plivo.RestClient(auth_id='<auth_id>', auth_token='<auth_token>')
response = client.multi_party_calls.stop_play_audio('participant_id',
        friendly_name='mpc_name')
print(response)
HTTP Status Code: 204