<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                [TOC] github:[https://github.com/open-webrtc-toolkit/owt-server](https://github.com/open-webrtc-toolkit/owt-server) 參考鏈接:[https://blog.piasy.com/2019/04/14/OWT-Server-Quick-Start/index.html](https://blog.piasy.com/2019/04/14/OWT-Server-Quick-Start/index.html) 參考鏈接:[https://blog.csdn.net/impingo/article/details/104344621](https://blog.csdn.net/impingo/article/details/104344621) 參考鏈接:[https://www.cnblogs.com/GuoXinxin/p/11162581.html](https://www.cnblogs.com/GuoXinxin/p/11162581.html) ## 概述 owt是一套完整的webrtc視頻會議系統。包含的功能模塊有: 1. 視頻會議 2. p2p 服務器是owt-server通過nodejs編寫的webrtc信令。依賴是licode。licode依賴webrtc。 客戶端系列web/windows/linux/ios/android都有相應的sdk。 ## OWT Server 源碼編譯、部署 1. Ubuntu 18.04 2. CentOS 7.6 ## 安裝 nodejs 環境 ``` apt-get install nodejs npm -y ``` ## 下載源碼 ``` apt-get update && apt-get install -y git htop unzip make wget unzip\ && git config --global user.name z \ && git config --global user.email 2@gmail.com \ && git clone -b 4.2.x https://github.com/open-webrtc-toolkit/owt-server.git ``` ## 安裝依賴 注意安裝依賴環境的腳本有兩個,運行任意一個都可以,但是為了安裝簡便性,建議運行非交互式安裝腳本。 交互式安裝,scripts/installDeps.sh,在安裝每個依賴包前需要操作者手動確認yes/no,比較繁瑣 非交互式安裝,./scripts/installDepsUnattended.sh,自動安裝所有依賴的軟件包,不需要手動確認,方便快捷,推薦使用。 ``` cd owt-server-4.3 ./scripts/installDepsUnattended.sh && \ npm install -g node-gyp graceful-fs grunt-cli ``` ## 編譯OWT-Server ``` ./scripts/build.js -t mcu --check ``` > [OWT-Server](https://github.com/open-webrtc-toolkit/owt-server)在GitHub README 上描述的是 -t all,但是對于不支持硬件加速的云主機或者虛擬機來說這樣 build 會失敗,所以如果不支持硬件加速或者不需要硬件加速的話,請使用-t mcu ## 編譯 owt-client-javascript ``` git clone -b 4.3x https://github.com/open-webrtc-toolkit/owt-client-javascript.git cd owt-client-javascript/scripts/ npm install grunt ``` 解決 npm install報錯問題: ``` npm i --unsafe-perm 然后重新執行`npm install`和`grunt` ``` ## 打包 owt-server ``` npm config set unsafe-perm false npm --unsafe-perm=true --user=0 i cd ~/owt-server-4.3/ ./scripts/pack.js -f -s ~/owt-client-javascript-4.3/dist/samples/conference/ ``` >說明: pack 成功后,會生成dist目錄,dist目錄里就是我們運行需要的所有文件。如果你修改了源碼,需要重新執行pack。 ## 配置 owt-server 如果你的機器有多塊網卡,或者對外提供服務的IP不是你本地網卡的IP,而是公網IP,你需要做如下配置。 **配置公網IP或域名,參考[Use Internet Name](https://gitee.com/winlinvip/owt-docker#use-internet-name)。** ``` # vi dist/webrtc_agent/agent.toml [webrtc] network_interfaces = [{name="eth0",replaced_ip_address="182.28.12.12"}] # default: [] # vi dist/portal/portal.toml [portal] ip_address = "182.28.12.12" #default: "" ``` ## 運行 owt-server ``` cd ~/owt-server/dist ./bin/init-all.sh --deps ./bin/start-all.sh ``` ## 驗證結果 如果以上流程都順利,接下來你就可以訪問服務器的demo體驗mcu功能了。 ### 測試mcu功能 訪問頁面:https://ip:3004 ### 測試sfu功能 訪問頁面:https://ip:3004/?forward=true 打開OWT的默認演示頁面,私有證書需要選擇`Advanced => Proceed to 192.168.1.4 (unsafe)`: * [https://192.168.1.4:3004/](https://192.168.1.4:3004/) 由于證書問題,第一次需要在瀏覽器,先打開OWT信令服務(Portal)頁面(后續就不用了): * [https://192.168.1.4:8080/socket.io/?EIO=3&transport=polling&t=N2UmsIn](https://192.168.1.4:8080/socket.io/?EIO=3&transport=polling&t=N2UmsIn) 訪問管理后臺,注意啟動服務時有個sampleServiceId和sampleServiceKey,打開頁面會要求輸入這個信息: * [https://192.168.1.4:3300/console](https://192.168.1.4:3300/console) ## Docker安裝部署 參考鏈接:[https://gitee.com/winlinvip/owt-docker](https://gitee.com/winlinvip/owt-docker) 下載鏡像 ``` sudo docker run -it -p 3004:3004 -p 3300:3300 -p 8080:8080 -p 60000-60050:60000-60050/udp \ registry.cn-hangzhou.aliyuncs.com/ossrs/owt:config bash ``` **設置OWT的IP信息,設置為Mac的IP地址。也可以自動獲取和設置IP** ``` # vi dist/webrtc_agent/agent.toml [webrtc] network_interfaces = [{name="eth0",replaced_ip_address="192.168.1.4"}] # default: [] # vi dist/portal/portal.toml [portal] ip_address = "192.168.1.4" #default: "" ``` **輸入命令,初始化OWT和啟動服務。** ``` (cd dist && ./bin/init-all.sh && ./bin/start-all.sh) ``` ## # 問題處理 ffmpeg這些依賴在根目錄build/libdeps目錄下。 webrtc源碼目錄在third_party目錄下。 node:請從頭到尾使用 v8.15版本的node ``` nvm install v8.15 nvm use v8.15 ``` ### 構建無法下載chromium.googlesource.com中的代碼webrtc代碼的下載使用代理 需要修改wget代理, 編輯 ~/.wgetrc 文件, 設置如下內容: ``` 1. `https_proxy = http://127.0.0.1:8123/` 2. `http_proxy = http://127.0.0.1:8123/` 3. `#ftp_proxy = http://proxy.yoyodyne.com:18023/` 5. `# If you do not want to use proxy at all, set this to off.` 6. `use_proxy = on` ``` 2. licode licode 需要用到patch文件 可能會出現removeRemoteCandidate成員變量不存在 需要打補丁,是因為腳本`installCommonDeps.sh`執行不成功導致的: ``` 291 行 git am $PATHNAME/patches/licode/*.patch ``` 手動執行: ``` git am ./source/patches/licode/*.patch ``` source/agent/webrtc/webrtcLib/ 目錄下的文件是licode的文件的軟鏈接。需要直接在linux系統上git clone下來使用。而不能從,windows上git clone 然后再上傳到linux機器上。 ` ` 3.owt-server的buid完成,docker鏡像制作完成。 7.77G 4. owt-server的pack的細節: 打包不簡單: 需要執行指令: ``` npm --unsafe-perm=true --user=0 i ``` ### 啟動錯誤 訪問后發現頁面全部白屏, 檢查發現tokens方法返回400. 添加參數 room=sampleRoom 返回401權限錯誤 更新服務器到2核4G內存,問題消失. ### 錯誤Could not run pkg-config ``` apt-get install -y pkg-config apt-get install libglib2.0-dev ``` ### 錯誤 webrtc構建錯誤 ``` 1. `File "/home/sunz/webrtc/owt-server-all/owt-server-4.3/third_party/webrtc/src/tools-woogeen/tmp/depto_tools/gclient_utils.py", line 264` 2. `except OSError, e:` 3. `^` 4. `SyntaxError: invalid syntax` 5. `ninja: Entering directory `out'` 6. `ninja: fatal: chdir to 'out' - No such file or directory` 7. `find: ‘./out/obj/’: 沒有那個文件或目錄` 8. `Generate libwebrtc.a Fail` ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看