# Video Stream Authentication

<figure><img src="https://1243678755-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBM9X73QlDF7bZ0xQjZAx%2Fuploads%2Fgit-blob-52f18b1522a390c3db15d82b824eec0f8988dff0%2FScreenshot%202023-01-26%20at%2012.13.46.png?alt=media" 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/betlink-integration/front-end-integration/broken-reference). 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.
