Can I use Twilio Video JS SDK 2.0 in jQuery?

前端 未结 1 889
一个人的身影
一个人的身影 2020-12-21 06:52

The official documentation does not have any example for implementation in jQuery or plain JavaScript. We do not use Node for our projects unless specifically demanded which

相关标签:
1条回答
  • 2020-12-21 07:27

    Twilio developer evangelist here.

    If you're not using Node to install dependencies and build a client bundle then you can still use Twilio Video SDK version 2. You can do so by loading the SDK from the CDN here:

    <script src="//media.twiliocdn.com/sdk/js/video/releases/2.0.0-beta11/twilio-video.min.js"></script>
    

    When you include that on the page you will then find the global Twilio object. You can use all the video functions from the Video namespace.

    const Video = Twilio.Video;
    Video.connect(token);
    

    You can see examples of this in the Video SDK documentation.

    Let me know if this helps at all.

    0 讨论(0)
提交回复
热议问题