Skip to content

Commit 62f4f66

Browse files
committed
updated readme
1 parent 7630c7b commit 62f4f66

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,21 @@ npm install sendbird-calls
2424
yarn add sendbird-calls
2525
```
2626

27+
Import as es6 module
28+
```
29+
import SendBirdCall from "sendbird-calls";
30+
31+
SendBirdCall.init(YOUR_APP_ID)
32+
```
33+
or include in header as global variable
34+
```
35+
<script type="text/javascript"> src="SendBirdCall.min.js"></script>
36+
<script type="text/javascript">
37+
SendBirdCall.init(YOUR_APP_ID)
38+
</script>
39+
```
40+
41+
2742
## Audio Permissions
2843
If user dial or accept for the first time in the given domain, browser prompts for permission to use microphone.
2944

0 commit comments

Comments
 (0)