Fetch all existing media sources of a given type. More...
Fetch all existing media sources of a given type.
Path: /mediasource/fetchlist
[in] | type | The type of the media sources to fetch. Possible values are file , folder , audurl , vidurl , imgurl , audfeed , vidfeed , imgfeed |
response
and two attributes status
and message
. The status can be either success
or failure
and the message describes the cause of the error in a user friendly manner. When the request was completed the successfully, the response
element will have a child element resultset
which will have its own child elements result
that will have all the relevent media source attributes with their corresponding values.Examples:
Request: /mediasource/fetchlist?type=audurl
Response:
<response status="success" message=""> <resultset> <result id="25" url="http://mp3stream.wfmu.org/" type="audurl" name="128k mp3 stream" tags="_tversity.libview.WFMU.Live Internet Radio"> <result id="26" url="http://mp3stream.wfmu.org:8004" type="audurl" name="32k mp3 stream" tags="_tversity.libview.WFMU.Live Internet Radio"> <result id="24" url="mms://stream.msn.co.il/gglz" type="audurl" name="GGLZ" tags=""> <result id="23" url="mms://stream.msn.co.il/glz-stream" type="audurl" name="GLZ" tags=""> </resultset> </response>