Parameters
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
jwt |
string |
<required> |
||
channelId |
string |
<required> |
Id of channel to open |
|
matchId |
number | Sportradar match id, if provided and match is covered by Sportradar it will enable match events. |
||
onAction |
function | Function/event handler. Is executed when a specific event occurs. Example:
Click on USE BETSLIP executes onAction function with args.type |
||
contactSupport |
function | Function/event handler. Is executed when user clicks contactSupport button. |
||
isTimeSinceTextFormat |
bool | true | Switch between regular timestamp of posted message (13:56) and time since format (4m ago) for chat bubbles. Messages under 1min have the "now" timestamp. |
|
shareNewBetButtonPosition |
'top' | 'bottom' | 'top' | Change 'Share a new bet' button position with 'top' and 'bottom' values. |
|
disableScoreboard |
bool | Disable scoreboard component |
||
'lmtVariant' |
string | LMT Variant |
||
disablePitchClock |
bool | Disable Pitch Clock component |
||
disableNavigation |
bool | Disable Navigation component |
||
disableHeader |
bool | Disable Header section of virtual stadium |
||
hideTournamentName |
bool | Hide Tournament Name in VS header navigation and show VS Name |
||
disableProfile |
bool | Disable Profile component |
||
buttonVariant |
'large' | 'compact' | If integration: floatingButton, control the button size/content
|
Example
```html
<script>
(function(a,b,c,d,e,f,g,h,i){a[e]||(i=a[e]=function(){(a[e].q=a[e].q||[]).push(arguments)},i.l=1*new Date,i.o=f,
g=b.createElement(c),h=b.getElementsByTagName(c)[0],g.async=1,g.src=d,g.setAttribute("n",e),h.parentNode.insertBefore(g,h)
)})(window,document,"script","https://widgets.sir.sportradar.com/sportradar/widgetloader","SIR", {
language: 'en'
});
// Virtual Stadium Widget
SIR('addWidget', '.sr-vs-widget', 'virtualStadium', {matchId: {MATCH_ID}, channelId: "{CHANNEL_ID}", jwt: "{JWT}"});
</script>
<div class="vs-wrapper">
<div class="sr-vs-widget"></div>
</div>