1

我正在尝试使用 opentok 白板功能。

场景:作为会话的参与者,我无法捕捉到发起白板操作的主机发出的 otWhiteboard_update 信号。

https://github.com/aullman/opentok-whiteboard/blob/master/demo.html

OT.checkSystemRequirements = function () {
            return true;
        };
        angular.module('demo', ['opentok', 'opentok-whiteboard'])
        .controller('DemoCtrl', ['$scope', 'OTSession', function ($scope, OTSession) {
            $scope.connected = false;
            OTSession.init('YOUR_API_KEY', 'YOUR_SESSION_ID', 'YOUR_TOKEN', function (err) {
                if (!err) {
                    $scope.$apply(function () {
                        $scope.connected = true;
                    });
                }
            });
        }]);
  • 我必须发布 OTSession 吗?
  • 我必须连接 OTSession 吗?
  • 会话中的其他参与者是否必须订阅 OT 会话流(现在不可用)?

请帮我完成这个实现。我尝试了很多,但没有任何效果;我一无所知:(

4

0 回答 0