Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add localTag on "initialization" and "video support" pages #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions _posts/2015-10-13-initializing-verto.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ function bootstrap(status) {
// In this case, once call is finished, newly generated element will be
// destroyed automatically)
tag: "video-container",
// Optional. Similar to the "tag" above, but "localTag" is a video
// element id that will render only the input device chosen
// by "deviceParams.useCamera" (if you make a call using video as
// you can see in further doc pages)
localTag: "my-local-video",
// Below are some more advanced configuration parameters.
// Google Chrome specific adjustments/filters for audio.
// Official documentation is scant, best to try them out and see!
Expand Down
3 changes: 3 additions & 0 deletions _posts/2015-10-19-adding-video-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Verto was built for video conferences, so adding support for it is very simple.
<button id="hang-up-call">Hang up call</button>
<button id="answer-call">Answer call</button>
<video id="video-container" autoplay="autoplay" class="video-style"></video>
<video id="my-local-video" autoplay="autoplay" class="local-video-style"></video>
</div> <!-- /container -->
```

Expand All @@ -28,6 +29,8 @@ function bootstrap(status) {
vertoHandle = new jQuery.verto({
// ID of HTML video tag where the video feed is placed.
tag: "video-container",
// Optional, video tag to render the stream got from the chosen deviceParams.useCamera device
localTag: "my-local-video",
deviceParams: {
// Asking for camera permissions and devices.
useCamera: 'any',
Expand Down