main
鲁誉程 2 months ago
parent c94578fab2
commit 24f9111280

@ -36,7 +36,7 @@ class ChatInput extends React.Component {
<div data-component='ChatInput'> <div data-component='ChatInput'>
<textarea <textarea
ref={(elem) => { this._textareaElem = elem; }} ref={(elem) => { this._textareaElem = elem; }}
placeholder={disabled ? '当前聊天不可用' : '请输入聊天内容'} placeholder={disabled ? '当前聊天不可用' : '说点什么...'}
dir='auto' dir='auto'
autoComplete='off' autoComplete='off'
disabled={disabled} disabled={disabled}

@ -76,8 +76,8 @@ class Me extends React.Component
<div <div
data-component='Me' data-component='Me'
ref={(node) => (this._rootNode = node)} ref={(node) => (this._rootNode = node)}
data-tip={tip} // data-tip={tip}
data-tip-disable={!tip} // data-tip-disable={!tip}
> >
<If condition={connected}> <If condition={connected}>
<div className='controls'> <div className='controls'>

@ -34,7 +34,7 @@
border: none; border: none;
+placeholder() { +placeholder() {
color: rgba(#fff, 0.35); color: #C1C1D9;
} }
&:disabled { &:disabled {

@ -13,11 +13,11 @@ const os = require('os');
module.exports = module.exports =
{ {
// Listening hostname (just for `gulp live` task). // Listening hostname (just for `gulp live` task).
domain : process.env.DOMAIN || '0.0.0.0', domain : process.env.DOMAIN || 'localhost',
// Signaling settings (protoo WebSocket server and HTTP API server). // Signaling settings (protoo WebSocket server and HTTP API server).
https : https :
{ {
listenIp : '0.0.0.0', // 换成你的IP地址 listenIp : '192.168.0.167', // 换成你的IP地址
// NOTE: Don't change listenPort (client app assumes 4443). // NOTE: Don't change listenPort (client app assumes 4443).
listenPort : process.env.PROTOO_LISTEN_PORT || 4443, listenPort : process.env.PROTOO_LISTEN_PORT || 4443,
// NOTE: Set your own valid certificate files. // NOTE: Set your own valid certificate files.
@ -124,13 +124,13 @@ module.exports =
[ [
{ {
protocol : 'udp', protocol : 'udp',
ip : process.env.MEDIASOUP_LISTEN_IP || '0.0.0.0', // 换成你的IP地址 ip : process.env.MEDIASOUP_LISTEN_IP || '192.168.0.167', // 换成你的IP地址
announcedAddress : process.env.MEDIASOUP_ANNOUNCED_IP, announcedAddress : process.env.MEDIASOUP_ANNOUNCED_IP,
port : 44444 port : 44444
}, },
{ {
protocol : 'tcp', protocol : 'tcp',
ip : process.env.MEDIASOUP_LISTEN_IP || '0.0.0.0', // 换成你的IP地址 ip : process.env.MEDIASOUP_LISTEN_IP || '192.168.0.167', // 换成你的IP地址
announcedAddress : process.env.MEDIASOUP_ANNOUNCED_IP, announcedAddress : process.env.MEDIASOUP_ANNOUNCED_IP,
port : 44444 port : 44444
} }
@ -147,7 +147,7 @@ module.exports =
[ [
{ {
protocol : 'udp', protocol : 'udp',
ip : process.env.MEDIASOUP_LISTEN_IP || '0.0.0.0', // 换成你的IP地址 ip : process.env.MEDIASOUP_LISTEN_IP || '192.168.0.167', // 换成你的IP地址
announcedAddress : process.env.MEDIASOUP_ANNOUNCED_IP, announcedAddress : process.env.MEDIASOUP_ANNOUNCED_IP,
portRange : portRange :
{ {
@ -157,7 +157,7 @@ module.exports =
}, },
{ {
protocol : 'tcp', protocol : 'tcp',
ip : process.env.MEDIASOUP_LISTEN_IP || '0.0.0.0', // 换成你的IP地址 ip : process.env.MEDIASOUP_LISTEN_IP || '192.168.0.167', // 换成你的IP地址
announcedAddress : process.env.MEDIASOUP_ANNOUNCED_IP, announcedAddress : process.env.MEDIASOUP_ANNOUNCED_IP,
portRange : portRange :
{ {
@ -180,7 +180,7 @@ module.exports =
listenInfo : listenInfo :
{ {
protocol : 'udp', protocol : 'udp',
ip : process.env.MEDIASOUP_LISTEN_IP || '0.0.0.0', // 换成你的IP地址 ip : process.env.MEDIASOUP_LISTEN_IP || '192.168.0.167', // 换成你的IP地址
announcedAddress : process.env.MEDIASOUP_ANNOUNCED_IP, announcedAddress : process.env.MEDIASOUP_ANNOUNCED_IP,
portRange : portRange :
{ {

Loading…
Cancel
Save