Implementation with Vue
🚨
RsiInterpretationPlayer
must be imported beforersiSubtitles
.RsiSubtitles
cannot work without the widgetRsinterpretationPlayer
🚨 In order to use the
widget subtitles
you must add as parameter ofRsiInterpretationPlayer
hasSubtitles
to betrue
.
<template>
<RsiInterpretationPlayer
sdkKey="sdk_key_XXXX"
roomName="your_room_name"
:hasSubtitles="true"
v-on:onLanguageSelected="handleOnLanguageSelected"
v-on:onReady="handleOnReady"
v-on:onConnectionStatusUpdated="handleOnConnectionStatusUpdated"
/>
<RsiSubtitles
sdkKey="sdk_key_XXXX"
roomName="your_room_name"
v-on:onReady="handleOnSubtitlesReady"
/>
</template>
<script lang="js">
import { RsiInterpretationPlayer, RsiSubtitles } from '@akkadu/rsi-vue'
export default {
components: {
RsiInterpretationPlayer,
RsiSubtitles
},
methods: {
handleOnSubtitlesReady(e) {
console.info('handleOnReady event for the subtitles widget:', e);
},
},
}
</script>