首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何用韵律将媒体发送到吉思视频?

如何用韵律将媒体发送到吉思视频?
EN

Stack Overflow用户
提问于 2017-04-21 04:14:25
回答 1查看 3.4K关注 0票数 1

我对xmpp和webrtc比较陌生。现在,我尝试用Jitsi视频和韵律创建简单的视频会议网络应用程序,我不想使用jitsi-meet,因为我需要知道如何让jitsi-视频编码工作。到目前为止,我可以用韵律来接受吉斯-视频部分。因此,当我运行./jvb.sh --domain=localhost --port=5347 --secret=componentsecret时,它将显示以下日志:

代码语言:javascript
复制
JVB 2017-04-21 10:52:53.798 INFO: [38] 
org.jitsi.videobridge.xmpp.ComponentImpl.log() RECV: <iq id="f68D9-340" 
type="result" to="jitsi-videobridge.localhost" from="localhost"/>
JVB 2017-04-21 10:53:03.801 INFO: [40] 
org.jitsi.videobridge.xmpp.ComponentImpl.log() RECV: <iq id="f68D9-341" 
type="result" to="jitsi-videobridge.localhost" from="localhost"/>
JVB 2017-04-21 10:53:13.801 INFO: [42] 
org.jitsi.videobridge.xmpp.ComponentImpl.log() RECV: <iq id="f68D9-342" 
type="result" to="jitsi-videobridge.localhost" from="localhost"/>
JVB 2017-04-21 10:53:23.801 INFO: [44] 
org.jitsi.videobridge.xmpp.ComponentImpl.log() RECV: <iq id="f68D9-343" 
type="result" to="jitsi-videobridge.localhost" from="localhost"/>
JVB 2017-04-21 10:53:33.801 INFO: [46] 
org.jitsi.videobridge.xmpp.ComponentImpl.log() RECV: <iq id="f68D9-344" 
type="result" to="jitsi-videobridge.localhost" from="localhost"/>

我把它当作我的吉思-录影带正在正常工作(不是吗?)但现在我不知道下一步该怎么办了。

那么,如何将我的客户端(我的web客户端使用strophe.js )连接到jitsi视频?我的客户怎样才能将媒体(视频和音频)发送给吉思视频。我已经搜索了一段时间了,但是我找不到任何文档或者任何如何做到这一点的例子。

这是我的韵律prosody.cfg.lua:

代码语言:javascript
复制
admins = { 
    "agent@localhost", 
    "subkhan@localhost", 
    "subkhan@192.168.8.108", 
    "focus@auth.jitsi.localhost"
}

modules_enabled = {
        "message_logging";  -- Enable chat archive
        "tls"; -- Enable mod_tls

        "roster"; -- Allow users to have a roster. Recommended ;)
        "saslauth"; -- Authentication for clients and servers. Recommended if you want to log in.
        "tls"; -- Add support for secure TLS on c2s/s2s connections
        "dialback"; -- s2s dialback support
        "disco"; -- Service discovery

        "private"; -- Private XML storage (for room bookmarks, etc.)
        "vcard"; -- Allow users to set vCards

        "version"; -- Replies to server version requests
        "uptime"; -- Report how long server has been running
        "time"; -- Let others know the time here on this server
        "ping"; -- Replies to XMPP pings with pongs
        "pep"; -- Enables users to publish their mood, activity, playing music and more
        "register"; -- Allow users to register on this server using a client and change passwords

        "admin_adhoc"; -- Allows administration via an XMPP client that supports ad-hoc commands
        "admin_telnet"; -- Opens telnet console interface on localhost port 5582

        "bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
        "http_files"; -- Serve static files from a directory over HTTP

        "posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
};

bosh_ports = {
        {
            port = 5280;
        path = "http-bind";
        },
        {
        port = 5281;
            path = "http-bind";
            ssl = {
                key = "/var/lib/prosody/localhost.key";
                certificate = "/var/lib/prosody/localhost.crt";
            }
        }
    }

bosh_max_inactivity = 60
consider_bosh_secure = true
cross_domain_bosh = true

modules_disabled = {
    -- "offline"; -- Store offline messages
    -- "c2s"; -- Handle client connections
    -- "s2s"; -- Handle server-to-server connections
};

allow_registration = true;

daemonize = true;

pidfile = "/var/run/prosody/prosody.pid";

ssl = {
    key = "/etc/prosody/certs/localhost.key";
    certificate = "/etc/prosody/certs/localhost.crt";
}

c2s_require_encryption = true

s2s_secure_auth = true

authentication = "internal_plain"

log = {
    -- Log files (change 'info' to 'debug' for debug logs):
    info = "/var/log/prosody/prosody.log";
    error = "/var/log/prosody/prosody.err";
    -- Syslog:
    { levels = { "error" }; to = "syslog";  };
}

VirtualHost "localhost"
    enabled = true -- Remove this line to enable this host

    ssl = {
        key = "/etc/prosody/certs/localhost.key";
        certificate = "/etc/prosody/certs/localhost.crt";
    }

Component "conference.localhost" "muc"
    restrict_room_creation = true
    max_history_messages = 10
        modules_enabled = {
        "muc_log";
        "muc_log_http";
    }
    muc_log_http = { -- These are the defaults
        show_join = true;
        show_presences = true;
        show_status = true;
        theme = "prosody";
        url_base = "muc_log";
    }

VirtualHost "jitsi.localhost"
    enable = true
    authentication = "internal_plain"

VirtualHost "auth.jitsi.localhost"
    authentication = "internal_plain"

Component "jitsi-videobridge.localhost"
    component_secret = "asdqwe123"

Include "conf.d/*.cfg.lua"

这是我的sip-通信器。属性:

代码语言:javascript
复制
org.jitsi.impl.neomedia.transform.srtp.SRTPCryptoContext.checkReplay=false
org.jitsi.videobridge.NAT_HARVESTER_LOCAL_ADDRESS=127.0.0.1
org.jitsi.videobridge.NAT_HARVESTER_PUBLIC_ADDRESS=192.168.43.110

有什么帮助或想法吗?谢谢。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-04-21 06:02:34

这种情况不可能一蹴而就。我们使用Jicofo作为焦点,它是与JVB和用户“交谈”的实体。下面是它的工作原理(我假设您在一个web环境中,因为您提到了strophe.js):

  • 通过XMPP的用户连接
  • 用户加入一个MUC
  • Jicofo是一名管理人员,为每一位MUC服务。
  • 另一个用户加入了MUC。
  • Jicofo使用COLIBRI协议从JVB请求音频/视频通道
  • Jicofo编写了“静乐节”,并通过MUC的直接信息发送给每个参与者。
  • 用户获取静乐节并将其转换为SDP。
  • 用户可以使用远程SDP设置WebRTC PeerConnection。
  • 利润?-)

希望这能有所帮助。免责声明:我为吉思工作。

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43533846

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档