Methods
-
<inner> connect()
-
Create a connection with the VideoGateway
Returns:
VideoRTC methods (Success): getDevices, splitAgent, splitClient, videoRoom, videoMail, videoPlayer
- Type
- Promise.<VideoRTC>
Example
var connection = myVideoApp.connect() .then(function(usecases) { // Use Cases (Classes) ... }) .catch(function(cause) { console.log(cause || "Error connecting with the VideoRTC"); })
-
<inner> getBrowser()
-
Get the browser name used by the client
Returns:
Browser name: "chrome", "firefox", "safari", "opera" or "IE"
- Type
- string
Example
var browserName = myVideoApp.getBrowser(); // "chrome", "firefox"... console.log("Browser: " + browserName);
-
<inner> isConnected()
-
Return the VideoRTC connection status
Returns:
Is the client connected with the VideoGateway?
- Type
- Boolean
Example
var status = myVideoApp.isConnected(); // true or false console.log("Status: " + status);
-
<inner> isMobile()
-
Detect if the client browser is Mobile.
Returns:
Is the client using a Mobile device?
- Type
- Boolean
Example
var isMobile = myVideoApp.isMobile(); // true or false console.log("Mobile device?: " + isMobile);