If Quanteec feature is enabled in Bradmax admin panel, package with player will include Quanteec P2P plugin.
The Quanteec P2P enables peer-to-peer (P2P) functionality within Bradmax player, leveraging Quanteec’s decentralized network for efficient content delivery. This plugin optimizes bandwidth usage by enabling direct video stream exchanges between peers, reducing server load and improving playback performance in real-time.
more at: https://quanteec.com/
NOTE: Quanteec key is required. If you do not already have a Quanteec Key, please contact us or directly Quanteec to obtain one.
| Field name | Type | Description |
|---|---|---|
| quanteecKey | string | Required - key used for authentication in Quanteec. |
| media | object | Optional - object containing video metadata mapping. |
| activated | boolean | Optional - activate/deactivate Quanteec plugin. |
| analyticsVideoID | string | Optional - name to identify a video for the analytics process. |
| cellularActivated | boolean | Optional - activate/deactivate transfer functionality within the cellular network. |
| checkUrls | boolean | Optional - check that the url of the segment is the same before sending in P2P. |
| collection | string | Optional - Quanteec collection of the video. |
| controller | string | Optional - url of the controller. |
| hideInUi | boolean | Optional - hide quanteec button in player ui. |
| iceServers | array | Optional - array with iceServers. |
| ignoreTokenInUrls | string | Optional - regular expression (string) used to exclude tokens in the URLs. |
| logLevel | number | Optional - log level of the Quanteec plugin. |
| lowLatency | boolean | Optional - activates/deactivates the low-latency mode of Quanteec. |
| lowLatencyBufferLimit | number | Optional - low buffer level, in milliseconds (WebRTS only). |
| maxUploadPercent | number | Optional - percentage of upload to use. |
| p2pActivated | boolean | Optional - activates/deactivates Quanteec P2P system. |
| p2pConfiguration | string | Optional - Quanteec P2P configuration name. |
| p2pOptimizedStart | boolean | Optional - slow down the download speed of the very first segments. |
| useSubnets | boolean | Optional - use subnetwork rules defined in the Quanteec Panel. |
| validateData | boolean | Optional - validate received data in CDN for every single segments. |
| videoID | string | Optional - name to identify a video in the Quanteec system. |
| withCredentials | boolean | Optional - sends the HTTP requests with credentials. |
| streamboost | object | Optional - configuration for Quanteec streamboost panel. |
Data type: string
Configuration path: .quanteecConfig.quanteecKey
Description: Required, Quanteec key used to authenticate the plugin.
NOTE: This parameter is required. If you do not already have a Quanteec Key, please contact us to obtain one.
Example:
{
quanteecConfig: {
quanteecKey: "UNIQUE-QUANTEEC-KEY";
}
}
Data type: object
Configuration path: .quanteecConfig.media
Description: Optional, configuration object for mapping media id to quanteec videoID, collection or analyticsVideoID.
Example:
{
quanteecConfig: {
media: {
'<media.id>': {
analyticsVideoID: 'Quanteec analyticsVideoID value', // optional.
collection: 'Quanteec collection value', // optional.
videoID: 'Quanteec videoID value' // optional, if not present <media.id> will be used, useful for overriding.
},
}
}
}
Data type: boolean
Configuration path: .quanteecConfig.activated
Description: Optional, activate/deactivate Quanteec, including the connection with the controller. This value overrides p2p.activated which does not stop the connection to the controller.
Default value: true
Data type: string
Configuration path: .quanteecConfig.analyticsVideoID
Description: Optional, specific name to identify a video for the analytics process. By default, videoID is used.
The value will be overridden by the quanteecConfig.media configuration. For more details, refer to the quanteecConfig.media configuration.
Default value: videoID value.
Data type: boolean
Configuration path: .quanteecConfig.cellularActivated
Description: Optional, activates or deactivates the possibility to send data if the device is connected to a cellular network.
Default value: true
Data type: boolean
Configuration path: .quanteecConfig.checkUrls
Description: Optional, if true, the plugin will check that the url of the segment is the same before sending the data in P2P. Useful for Server-Side Ad Isertion (SSAI) use cases where users may not request the same segments every time.
Default value: false
Data type: string
Configuration path: .quanteecConfig.collection
Description: Optional, collection of the video. Used in the panel to sort and manage the parameters of Quanteec for several videos at the same time.
Collection can be a string representing a JSON array of strings to define several collections at once.
The value will be overridden by the quanteecConfig.media configuration. For more details, refer to the quanteecConfig.media configuration.
Example:
{
quanteecConfig: {
collection: '["Coll1", "Coll2", "Coll3"]';
}
}
Data type: string
Configuration path: .quanteecConfig.controller
Description: Optional, url of the controller. Used only in specific scenarios where the signalling/controller server is deployed on premises.
Data type: array
Configuration path: .quanteecConfig.iceServers
Description: Optional, array with iceServers used by Quanteec WebRTC connections. Should be compatible with WebRTC object.
Example:
{
quanteecConfig: {
iceServers: [
{ urls: ["stun:localhost:3478"] },
{
urls: ["turn:localhost:3478"],
username: "username",
credential: "password",
},
];
}
}
Data type: string (Js Regex)
Configuration path: .quanteecConfig.ignoreTokenInUrls
Description: If checkUrls is true, the urls will be checked WITHOUT the regex defined in ignoreTokenInUrls. Useful if the url embeds an unique token for every user, for security reasons.
Data type: number
Configuration path: .quanteecConfig.logLevel
Description: Indicates the loglevel of the plugin.
Default value: 0. available levels: 0 - ERROR, 1 - INFOS, 2 - DEBUG, 3 - TRACE
Data type: boolean
Configuration path: .quanteecConfig.lowLatency
Description: Activates or deactivates the low-latency mode of Quanteec. Only set this value to true for low-latency streams, using DASH-LL or HLS-LL. Low-latency is currently only supported for dash and hls
Default value: false
Data type: number
Configuration path: .quanteecConfig.lowLatencyBufferLimit
Description: The low buffer level, in milliseconds. When the buffer level is lower than the value lowLatencyBufferLimit, the P2P request is dropped and the remaining bytes are requested in HTTP. If -1, uses the “bufferLimitLow” of the player.
Default value: -1 (Not activated)
NOTE: WebRTS only
Data type: number
Configuration path: .quanteecConfig.maxUploadPercent
Description: Percentage of upload to use. Number between 0 and 1. If 0, nothing is sent, but the peer still receives data.
Default value: 0.5
Data type: boolean
Configuration path: .quanteecConfig.p2pActivated
Description: Activates Quanteec P2P system.
Default value: true
Data type: string
Configuration path: .quanteecConfig.p2pConfiguration
Description: Select a collection and use the P2P configurations associated with this configuration for this plugin. If the name of the collection is invalid, the configuration used will fall back to the configuration selected for this video in the panel.
Data type: boolean
Configuration path: .quanteecConfig.p2pOptimizedStart
Description: If true, slow down the download speed of the very first segments in order to create P2P connections as fast as possible.
Default value: false
Data type: boolean
Configuration path: .quanteecConfig.useSubnets
Description: Get the private IP of the peer to group the peers according to the subnetwork rules defined in the Panel.
Default value: false
Data type: boolean
Configuration path: .quanteecConfig.validateData
Description: Validate the data received in P2P with the help of the CDN for every single segments. This feature needs the CDN to support Range HTTP requests.
Default value: false
Data type: string
Configuration path: .quanteecConfig.videoID
Description: Specific name to identify a video in the Quanteec system. Defaults to media id if present or media source url value. Useful if the media source url contains a token which is different for every user.
The value will be overridden by the quanteecConfig.media configuration. For more details, refer to the quanteecConfig.media configuration.
Default value: media id or media source url
Data type: boolean
Configuration path: .quanteecConfig.withCredentials
Description: Sends the HTTP requests with credentials.
Default value: false
NOTE: Web only
Data type: StreamBoost configuration object
Configuration path: .quanteecConfig.streamboost
Description: Optional, configuration for Quanteec StreamBoost panel.
more at: https://quanteec.com/streamboost/
| Field name | Type | Description |
|---|---|---|
| userId | string | Required - a unique id to identify the viewer. |
| sponsorId | string | Optional - unique id to identify the advertising campaign. |
| sponsorImage | string | Optional - url to an ad banner with a 1:4 ratio. |
| sponsorUrl | string | Optional - url to make the image clickable. |
| dashboardCards | string | Optional - list of card names for the streamboost panel dashboard. |
| defaultIsStreamboostOn | boolean | Optional - enable/disable the boost by default. |
| defaultSection | string | Optional - default section to open in the streamboost panel. |
| color | string | Optional - custom color for the streamboost panel. |
Data type: string
Configuration path: .quanteecConfig.streamboost.userId
Description: Required, a unique id to identify the viewer.
Example:
{
quanteecConfig: {
quanteecKey: "UNIQUE-QUANTEEC-KEY";
streamboost: {
userId: "UNIQUE-USER-ID";
}
}
}
Data type: string
Configuration path: .quanteecConfig.streamboost.sponsorId
Description: Optional, unique id to identify the advertising campaign.
Data type: string
Configuration path: .quanteecConfig.streamboost.sponsorImage
Description: Optional, url to an ad banner with a 1:4 ratio.
Data type: string
Configuration path: .quanteecConfig.streamboost.sponsorUrl
Description: Optional, url to make the image clickable.
Data type: string
Configuration path: .quanteecConfig.streamboost.dashboardCards
Description: Optional, comma-separated list of card names for the dashboard.
Default value: "Peers, Shared, Energy, Speed", allowed card names are: CO2, Energy, Peers, Power, Ranking, Shared, Speed, Water.
Data type: boolean
Configuration path: .quanteecConfig.streamboost.defaultIsStreamboostOn
Description: Optional, boolean to enable/disable the boost by default (the user can still change the vale afterward).
Data type: string
Configuration path: .quanteecConfig.streamboost.defaultSection
Description: Optional, “dashboard” or “status” to force the default open section.
Data type: string
Configuration path: .quanteecConfig.streamboost.color
Description: Optional, custom color for the panel.