[campcaster-dev] xml-rpc associate audioclip to playlist
  • Hi,

    yesterday I have successfully uploaded an audio clip (mp3/ogg) to
    Campcaster using the xml-rpc methods xr_storeAudioClipOpen()
    xr_uploadAudioClip() and xr_storeAudioClipClose() using Perl. Thanks for
    your support on IRC!

    Well, today I have tried to associate an audio clip to a playlist in
    order to schedule it for broadcasting. Unfortunately I have not found a
    way to achieve this. Can anybody please point me to the correct xml-rpc
    methods?

    It would be great to have also a step by step guide, like:
    1.) use method xr_bla() to create the playlist (I guess this is
    xr_createPlayList)
    2.) use method xr_blu() to set the name of the playlist (I really don't
    know how to do this, xr_createPlayList sets no name and has not the
    ablility AFAIK)
    3.) use method xr_blo() to associate the first audio clip
    4.) use method xr_ble() to close the open playlist in order to schedule it
    5.) schedule the playlist using Scheduler::uploadPlayListMethod (this
    already works)

    Thanks,
    Mic

    --
    strg.at design development server
    http://strg.at office@strg.at
    liniengasse 20/12, 1060 wien
    tel +43 1 526 56 29 fax +43 1 526 56 49
  • 1 Comment sorted by
  • Hi,

    I was able to find that out by myself. Don't know if this is the correct
    way, but I did the following:

    # Login
    xr_login

    # Upload the audio clip
    audiometadataxmlstring (own function to generate audio file xml)
    xr_storeAudioClipOpen
    xr_uploadAudioClip
    xr_storeAudioClipClose => now I have the gunid

    # Create playlist
    xr_getAudioClip => xml metadata of the audioclip
    xr_createPlaylist
    xr_editPlaylist
    xr_savePlaylist

    # Upload the saved playlist for scheduling
    Scheduler::uploadPlaylist

    This is just a playlist with one audio file associated. But this should
    be sufficient for our client.

    Mic

    Michael Dosser schrieb:
    > Hi,
    >
    > yesterday I have successfully uploaded an audio clip (mp3/ogg) to
    > Campcaster using the xml-rpc methods xr_storeAudioClipOpen()
    > xr_uploadAudioClip() and xr_storeAudioClipClose() using Perl. Thanks for
    > your support on IRC!
    >
    > Well, today I have tried to associate an audio clip to a playlist in
    > order to schedule it for broadcasting. Unfortunately I have not found a
    > way to achieve this. Can anybody please point me to the correct xml-rpc
    > methods?
    >
    > It would be great to have also a step by step guide, like:
    > 1.) use method xr_bla() to create the playlist (I guess this is
    > xr_createPlayList)
    > 2.) use method xr_blu() to set the name of the playlist (I really don't
    > know how to do this, xr_createPlayList sets no name and has not the
    > ablility AFAIK)
    > 3.) use method xr_blo() to associate the first audio clip
    > 4.) use method xr_ble() to close the open playlist in order to schedule it
    > 5.) schedule the playlist using Scheduler::uploadPlayListMethod (this
    > already works)
    >
    > Thanks,
    > Mic
    >

    --
    strg.at design development server
    http://strg.at office@strg.at
    liniengasse 20/12, 1060 wien
    tel +43 1 526 56 29 fax +43 1 526 56 49