Skip to main content
Version: 5.7.0

GetRecentStreamsForTargetPlayer

Get recent streams for target player, optional parameter: targetPlayerId.

ServiceOperation
playbackStreamGET_RECENT_STREAMS_FOR_TARGET_PLAYER

Method Parameters

ParameterDescription
targetPlayerIdThe player that received the stream
maxNumStreamsThe max number of stream to return in the response

Usage

http://localhost:3000
string targetPlayerId = "player";
int maxNumStreams = 5;
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.PlaybackStreamService.GetRecentStreamsForTargetPlayer(targetPlayerId, maxNumStreams, successCallback, failureCallback);
JSON Response
{
"data": {
"streams": [
{
"playbackStreamId": "6620a4e8-c4a8-4979-b827-0efa6a4a7435",
"gameId": "10228",
"initiatingPlayerId": "38ae8a44-1b24-4ad9-9bb4-a016bdfc6644",
"targetPlayerId": "38ae8a44-1b24-4ad9-9bb4-a016bdfc6644",
"status": "COMPLETE",
"summary": {
"total": 5
},
"expiryTime": null,
"createdAt": 1526580974204,
"updatedAt": 1526582826462
},
{
"playbackStreamId": "90802401-806c-4621-afda-7e11ec910ec4",
"gameId": "10228",
"initiatingPlayerId": "38ae8a44-1b24-4ad9-9bb4-a016bdfc6644",
"targetPlayerId": "38ae8a44-1b24-4ad9-9bb4-a016bdfc6644",
"status": "COMPLETE",
"summary": {},
"expiryTime": null,
"createdAt": 1526578312706,
"updatedAt": 1526582826463
}
]
},
"status": 200
}