# Video Stream Authentication

<figure><img src="/files/T3PzDLSbWWKvKqDml1TK" alt=""><figcaption></figcaption></figure>

An operator can set parameters when initialising the event centre to enable or disable video in the UI. The message displayed to users can be configured in advance.

```
frontRowSeat.eventCentre({
  ..
  options: {
    videoPlaybackEnabled: true/false
  }
)
```

it would also be possible to update this value at runtime

```
eventCentreInstance.emit(MessageTopics.OPTIONS_UPDATE, {
    videoPlaybackEnabled: true
});
```

When a user presses play the event-centre will emit a message requesting the operator to authenticate the video playback.

```
.on(VideoPlaybackAuthRequest, {
  messageType: 'VideoPlaybackAuthRequest'
})
```

The operator should respond with the auth token using the existing guidelines described in [IMG ALC Streaming documentation](https://docs.sportradar.com/streaming-integration/). It is important that the operatorId, and timestamp match those used to create the token.

```
.emit(VideoPlaybackAuthResponse, {
  messageType: 'VideoPlaybackAuthResponse',
  operatorId: '<OPERATOR-ALC-ID>'.
  auth: '<OPERATOR-ALC-TOKEN>',
  timestamp: 1576339325918
})
```

**Stream Quality**

The Event Centre plays a custom bitrate low latency stream which is suited for betting, streaming a 728kbps stream (600kbps Video and 128kbps Audio) at a resolution of 640x360.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sportradar.com/betlink-integration/front-end-integration/video-stream-authentication.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
