winchester7
Member
Прислал.
service webcallserver stop
ps aux | grep java
kill -9 PID
wget --no-check-certificate https://flashphoner.com/download-wcs5-server.tar.gz
tar -xzf download-wcs5-server.tar.gz
cd FlashphonerWebCallServer-5.0.2175
./install.sh
cd /usr/local/FlashphonerWebCallServer/bin
./activation.sh
service webcallserver start
codecs =opus,alaw,ulaw,g729,speex16,g722,mpeg4-generic,telephone-event,vp8,h264,flv,mpv
<script>function onStopped(index) {
$("#playBtn" + index).text("Старт").off('click').click(function(){
if (validateForm("form" + index)) {
$('#streamName' + index).prop('disabled', true);
$(this).prop('disabled', true);
if (device.ios() || device.windows())
{
$(".stop_link").click();
}
playStream(index);
}
});
//alert(Flashphoner.getSessions()[0].status());
if (Flashphoner.getSessions()[0] && Flashphoner.getSessions()[0].status() == SESSION_STATUS.ESTABLISHED) {
$("#playBtn" + index).prop('disabled', false);
$('#streamName' + index).prop('disabled', false);
} else {
$("#playBtn" + index).prop('disabled', true);
$('#streamName' + index).prop('disabled', true);
}
}</script>
rtc_ice_add_local_component=true
service webcallserver restart
Возможно проблемы с SSL-сертификатом, если его конечно импортировали.Почему-то демо на порту 8888 и 8443 так и не заработали
telnet host 8888
telnet host 8443
http://host:9091
wss://host:8080
function init_page() {
//init api
try {
Flashphoner.init({
flashMediaProviderSwfLocation: 'media-provider.swf',
receiverLocation: 'dependencies/websocket-player/WSReceiver2.js',
decoderLocation: 'dependencies/websocket-player/video-worker2.js',
preferredMediaProvider: mediaProvider
});
} catch(e) {
alert('Ошибка ' + e.name + ":" + e.message + "\n" + e.stack);
alert("Your browser doesn't support Flash or WebRTC technology necessary for work of an example");
return;
}
//$("h2#info").html("device ios? " + device.ios() + "<br/>iphone? " + device.iphone() + "<br/>mobile? " + device.mobile());
//$("#url").val(setURL());
onDisconnected();
}
// disconnect previous sessions
var all_sessions = Flashphoner.getSessions();
for (var i=0; i < all_sessions.length; i++)
all_sessions[i].disconnect();