|
From: | Saumar Hajjar |
Subject: | Re: [Linphone-developers] Building a custom linphone web client |
Date: | Fri, 25 Apr 2014 00:07:29 -0300 |
User-agent: | Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
Saumil, The following works for me. I'm not sure if there is any better way of doing it. I've empirically ended up with the following properties and function call orders: - Before setting up the call: core.videoPolicy.automaticallyAccept = true; core.videoDevice = $("#cam option:selected").text(); // selected combo box with available video devices core.videoCaptureEnabled = true; core.captureDevice = $("#mic option:selected").text(); // selected combo box with available audio capture devices - After the call is established (state == 7): // add the linphone video object to my #video div. This will call loadVideo when loaded $("#video").append("<object id='remoteVideo' type='application/x-linphone-web-video'><param name='onload' value='loadVideo' /><param name='magic' value='1' /></object>"); - The loadVideo() function: function loadVideo() { var v = document.getElementById('remoteVideo'); var core = getCore(); core.nativeVideoWindowId = v.window; core.nativePreviewWindowId = v.window; core.selfViewEnabled = false; // change this to true if needed core.videoDisplayEnabled = true; } Hope this helps Em 24/4/2014 08:58, Saumil Gandhi
escreveu:
|
[Prev in Thread] | Current Thread | [Next in Thread] |