Opencast

Streaming Distribution Service REST Documentation

/distribution/streaming
This service distributes media packages to the streaming server, especially Wowza Streaming Server.

General Notes

Table of Contents

Read methods

Method / Path: GET /publishToStreaming
Description: Checks whether publish to streaming is configured for the current organization
Path params: NONE
Optional (query) params: NONE
Response formats: application/json
Status codes: 200: OK, Whether publish to streaming is configured for the current organization.
Notes:
  • Return value description: Returns whether publish to streaming is configured for the current organization as a boolean.
Testing:
Sample: /publishToStreaming
/distribution/streaming/publishToStreaming

Write methods

Method / Path: POST /
Description: Distribute a media package element to this distribution channel
Path params: NONE
Required (form) params: mediapackage: The mediapackage
channelId: The publication channel ID
elementIds: The elements to distribute as Json Array['IdOne','IdTwo']
Optional (form) params: NONE
Response formats: text/xml
Status codes: 200: OK, An XML representation of the distribution job
204: No Content, There is no streaming distribution service available
Notes:
  • Return value description: The job that can be used to track the distribution
Testing:
Sample: /
Testing form (click to reveal)
Method / Path: POST /distributesync
Description: Syncrhonously distribute a media package element to this distribution channel
Path params: NONE
Required (form) params: mediapackage: The mediapackage
channelId: The publication channel ID
elementIds: The elements to distribute as Json Array['IdOne','IdTwo']
Optional (form) params: NONE
Response formats: text/xml
Status codes: 200: OK, An XML representation of the distribution
204: No Content, There is no streaming distribution service available
Notes:
  • Return value description: The distribution
Testing:
Sample: /distributesync
Testing form (click to reveal)
Method / Path: POST /retract
Description: Retract a media package element from this distribution channel
Path params: NONE
Required (form) params: mediapackage: The mediapackage
channelId: The publication channel ID
elementIds: The elements to retract as Json Array['IdOne','IdTwo']
Optional (form) params: NONE
Response formats: text/xml
Status codes: 200: OK, An XML representation of the retraction job
204: No Content, There is no streaming distribution service available
Notes:
  • Return value description: The job that can be used to track the retraction
Testing:
Sample: /retract
Testing form (click to reveal)
Method / Path: POST /retractsync
Description: Synchronously retract a media package element from this distribution channel
Path params: NONE
Required (form) params: mediapackage: The mediapackage
channelId: The publication channel ID
elementIds: The elements to retract as Json Array['IdOne','IdTwo']
Optional (form) params: NONE
Response formats: text/xml
Status codes: 200: OK, An XML representation of the retraction
204: No Content, There is no streaming distribution service available
Notes:
  • Return value description: The retraction
Testing:
Sample: /retractsync
Testing form (click to reveal)