/
v3.0.11Get access

subscribeToStreamConfig

Subscribes to the streaming configuration data. Returns stream-related fields needed for client setup

Request parameters:

The method works without parameters

Call example:

subscribeToStreamConfig({
  command: 'get',
  params: {
    source: 'notifications',
    what: {
      partner_streams: []
    },
    subscribe: true
  },
  rid: 123456789
})

Response examples:

{
  code: 0,
  data: {
    result: 0,
    result_text: null,
    stream_configs: {
      stream_1: [{
        sport_id: 1,
        video_id: 78432,
        asset_id: 55201,
        provider_id: 3
      }, {
        sport_id: 2,
        video_id: 78433,
        asset_id: 55202,
        provider_id: 3
      }],
      stream_2: [{
        sport_id: 5,
        video_id: 78434,
        asset_id: 55203,
        provider_id: 4
      }]
    }
  },
  rid: 123456789
}

Response parameters:

NameDescriptionTypeValues
stream_configs
a key-value map where each key (e.g. stream_1, stream_2) represents a unique stream group, and the value is an array of video configurations available for that stream.object
└─ stream_1
array-
└─ sport_id
unique identifier of the sport associated with the streamnumber-
└─ video_id
unique identifier of the video streamnumber-
└─ asset_id
unique identifier of the media asset used to load the stream contentnumber-
└─ provider_id
unique identifier of the streaming provider that serves the video contentnumber-