Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
599 views
in Technique[技术] by (71.8m points)

webrtc - Can I use Twilio Video JS SDK 2.0 in jQuery?

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 is rare.

Do we really have to limit our projects to v1? Or can someone point me to a related tutorial?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...