webrtc2-sign.php
Description: Execute functions of signaling server.
PHP version 8.0.1
Tags
Table of Contents
Functions
- webrtc2_validateBrowserName() : string
- Validate Browser name.
- webrtc2_validateState() : string
- Validate state of videochat.
- webrtc2_validateCmd() : string
- Validate command of signaling.
- webrtc2_validateMsg() : string
- Validate Msg (Strip HTML and PHP tags from a string).
- webrtc2_validateTypeSdp() : string
- Validate Type SDP.
- webrtc2_validateBrowser() : string
- Validate HTTP_USER_AGENT.
- webrtc2_validateLogin() : string
- Validate User login.
- webrtc2_validateIP() : string
- Validate user IP.
- webrtc2_validateURI() : string
- Validate URI.
- webrtc2_sign() : mixed
- WebRTC signaling Server.
Functions
webrtc2_validateBrowserName()
Validate Browser name.
webrtc2_validateBrowserName(mixed $browser_name) : string
Parameters
- $browser_name : mixed
Return values
string —State.
webrtc2_validateState()
Validate state of videochat.
webrtc2_validateState(string $state) : string
Parameters
- $state : string
-
Start or Stop.
Return values
string —State.
webrtc2_validateCmd()
Validate command of signaling.
webrtc2_validateCmd(string $cmd) : string
Parameters
- $cmd : string
-
Unique command identifier of signaling.
Return values
string —Command.
webrtc2_validateMsg()
Validate Msg (Strip HTML and PHP tags from a string).
webrtc2_validateMsg(string $msg) : string
Limits the length of the input string.
Parameters
- $msg : string
-
Message of user.
Return values
string —Message.
webrtc2_validateTypeSdp()
Validate Type SDP.
webrtc2_validateTypeSdp(string $type_sdp) : string
Parameters
- $type_sdp : string
-
Type SDP.
Return values
string —Type SDP.
webrtc2_validateBrowser()
Validate HTTP_USER_AGENT.
webrtc2_validateBrowser(mixed $user_agent) : string
Parameters
- $user_agent : mixed
Return values
string —HTTP_USER_AGENT.
webrtc2_validateLogin()
Validate User login.
webrtc2_validateLogin(string $login) : string
Parameters
- $login : string
-
User login.
Return values
string —User login.
webrtc2_validateIP()
Validate user IP.
webrtc2_validateIP() : string
Return values
string —User IP.
webrtc2_validateURI()
Validate URI.
webrtc2_validateURI() : string
Return values
string —URI.
webrtc2_sign()
WebRTC signaling Server.
webrtc2_sign() : mixed