Represents a live video broadcast ingest stream.
An ingest stream for a live video
GET /v24.0/{live-video-input-stream-id} HTTP/1.1
Host: graph.facebook.com/* PHP SDK v5.0.0 */
/* make the API call */
try {
// Returns a `Facebook\FacebookResponse` object
$response = $fb->get(
'/{live-video-input-stream-id}',
'{access-token}'
);
} catch(Facebook\Exceptions\FacebookResponseException $e) {
echo 'Graph returned an error: ' . $e->getMessage();
exit;
} catch(Facebook\Exceptions\FacebookSDKException $e) {
echo 'Facebook SDK returned an error: ' . $e->getMessage();
exit;
}
$graphNode = $response->getGraphNode();
/* handle the result *//* make the API call */
FB.api(
"/{live-video-input-stream-id}",
function (response) {
if (response && !response.error) {
/* handle the result */
}
}
);/* make the API call */
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/{live-video-input-stream-id}",
null,
HttpMethod.GET,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
/* handle the result */
}
}
).executeAsync();/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
initWithGraphPath:@"/{live-video-input-stream-id}"
parameters:params
HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
id result,
NSError *error) {
// Handle the result
}];| Parameter | Description |
|---|---|
target_tokenstring | A target token recently returned by the speed test API |
| Field | Description |
|---|---|
idnumeric string | The ID of the input stream |
dash_ingest_urlstring | The dash ingest stream URL of this stream |
dash_preview_urlstring | Preview URL for input to use with dash player |
is_masterbool | Set to true if this is input is being served to viewers |
secure_stream_urlstring | The RTMPS URL for this stream |
stream_healthLiveVideoStreamHealth | Parameters indicating the input stream health |
stream_idnumeric string | 0-indexed ID for this ingest stream |
stream_urlstring | The ingest RTMP URL for this stream |
| Error | Description |
|---|---|
| 100 | Invalid parameter |
input_streams edge from the following paths: id in the return type.id: numeric string, | Error | Description |
|---|---|
| 200 | Permissions error |