kevin_zhang
New Member
I had set bitrate : 20000 in playStream options which locate in examples/demo/streaming/player/player.js. It is't work in WSPlayer .
following is code snippet:
function playStream(session) {
var streamName = $('#streamName').val();
var options = {
constraints : {
audio : false,
video : {
bitrate: 200000,
}
},
name: streamName,
display: remoteVideo,
...
and i check out server log in /usr/local/FlashphonerWebCallServer/logs/server_logs/flashphoner.log. show the following info :
20:40:11,603 INFO WCS4CallbackHandler - VideoDistributor-MPV-640x480-200000-3e6e4797-c7b9-4840-b358-f2bc0f077c76 notifyVideoFormat format: VideoFormat{playerVideoWidth=640, playerVideoHeight=480, streamerVideoHeight=480, streamerVideoWidth=640, playerBitrate=0, streamerBitrate=200000, quality=0}; user - 9vfpt298g89p41qcikdn3unsfo@null
20:40:11,661 INFO WSServerHandler - WSS-pool-8-thread-2 Orgign: https://catchervideo.zvga.me:7443
20:40:11,669 INFO DelegateHandler - WSS-pool-8-thread-2 Added ws transport WSClient{channel=[id: 0x301d3b4d, /163.177.136.58:24361 => /10.13.38.129:8443], handler=com.flashphoner.server.client.handler.DelegateHandler@3dbdbd33, closed=false, pageUrl='null', countUnansweredPing=0} to client com.flashphoner.server.client.MediaWCSClient@1e757b34
and use command iftop to check realtime transmission, current bitrate is reach to 1.13M .
10-13-38-129 => 163.177.136.58 1.13Mb 897Kb 897Kb
...
any idea ?
following is code snippet:
function playStream(session) {
var streamName = $('#streamName').val();
var options = {
constraints : {
audio : false,
video : {
bitrate: 200000,
}
},
name: streamName,
display: remoteVideo,
...
and i check out server log in /usr/local/FlashphonerWebCallServer/logs/server_logs/flashphoner.log. show the following info :
20:40:11,603 INFO WCS4CallbackHandler - VideoDistributor-MPV-640x480-200000-3e6e4797-c7b9-4840-b358-f2bc0f077c76 notifyVideoFormat format: VideoFormat{playerVideoWidth=640, playerVideoHeight=480, streamerVideoHeight=480, streamerVideoWidth=640, playerBitrate=0, streamerBitrate=200000, quality=0}; user - 9vfpt298g89p41qcikdn3unsfo@null
20:40:11,661 INFO WSServerHandler - WSS-pool-8-thread-2 Orgign: https://catchervideo.zvga.me:7443
20:40:11,669 INFO DelegateHandler - WSS-pool-8-thread-2 Added ws transport WSClient{channel=[id: 0x301d3b4d, /163.177.136.58:24361 => /10.13.38.129:8443], handler=com.flashphoner.server.client.handler.DelegateHandler@3dbdbd33, closed=false, pageUrl='null', countUnansweredPing=0} to client com.flashphoner.server.client.MediaWCSClient@1e757b34
and use command iftop to check realtime transmission, current bitrate is reach to 1.13M .
10-13-38-129 => 163.177.136.58 1.13Mb 897Kb 897Kb
...
any idea ?