Видеозвонок с OpenTok - PullRequest
       12

Видеозвонок с OpenTok

0 голосов
/ 20 февраля 2020

Следуя документации, используя образец в репозитории github.

import React from 'react'
import { View } from 'react-native'
import { OTSession, OTPublisher, OTSubscriber } from 'opentok-react-native';


const Video = () => {
    const apiKey = '*********'
    const sessionId = '-*****************-fg'
    const token = 'B1==c*********************************9'

    return (
        <View>
            <OTSession apiKey={apiKey} sessionId={sessionId} token={token}>
                <OTPublisher style={{ width: 100, height: 100 }} />
                <OTSubscriber style={{ width: 100, height: 100 }} />
            </OTSession>

        </View>
    )
}

export default Video

Когда я перехожу на эту страницу, я получаю запрос на разрешение использовать Microphone et c. Но тогда просто пустой экран

...