import plivo

client = plivo.RestClient('<auth_id>','<auth_token>')
response = client.conferences.member_play(
    conference_name='testing',
    member_id=28485,
    url='https://s3.amazonaws.com/plivocloud/music.mp3')
print(response)
{
  "message" : "play queued into conference",
  "api_id" : "4e44bd4e-f830-11e6-b886-067c5485c240",
  "member_id" : "[u'160005', u'160004', u'160003', u'160002']"
}

This API lets you play a .mp3 or .wav file to a member in the conference.

API Endpoint

POST
https://api.plivo.com/v1/Account/{auth_id}/Conference/{conference_name}/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 play audio action is performed on all members of the conference.

Attributes

NameTypeDescription
urlRequiredURL of the sound file to be played.

Returns

Returns an acknowledgement that the audio is played to the conference.

import plivo

client = plivo.RestClient('<auth_id>','<auth_token>')
response = client.conferences.member_play(
    conference_name='testing',
    member_id=28485,
    url='https://s3.amazonaws.com/plivocloud/music.mp3')
print(response)
{
  "message" : "play queued into conference",
  "api_id" : "4e44bd4e-f830-11e6-b886-067c5485c240",
  "member_id" : "[u'160005', u'160004', u'160003', u'160002']"
}