Okay, thank you Lorenzo. I guess I was conflating something I found in “janus.js” in the sendMessage()
function that assembles a JSON query with:
let request = { "janus": "message", "body": message, "transaction": transaction };
Which maybe that goes directly to the Janus core vs. the HTTP-transport?
Anyway, if I can expand the discussion a little – I’ve copied the Janus example files to my local system, and am going to http://localhost:8000/streaming.html
in my browser. The pull down menu lists the two stream protocols that I have configured (only really need one, but I’ve been testing with two – though only actually streaming to one of them at a time). Anyway, the pull down works, and when I click “Watch”, the stream connects, but I only get the audio.
Here’s what I have for the active configuration in janus.plugin.streaming.jcfg
:
h264-sample: {
type = "rtp"
id = 10
description = "H.264 live stream coming from ffmpeg"
#audio = false
audio = true
audiopt = 111
audiocodec = "opus"
audioport = 8005
video = true
videoport = 8004
#videopt = 126
videopt = 96
videocodec = "h264"
videofmtp = "profile-level-id=42e01f;packetization-mode=1"
secret = "adminpwd"
}
And Janus reports:
[...]
Loading plugin 'libjanus_streaming.so'...
[WARN] -- Invalid type, skipping mountpoint 'dtls'...
JANUS Streaming plugin initialized!
[...]
[h264-sample] New video stream! (#1, ssrc=4109249590, index 0)
[h264-sample] New audio stream! (#0, ssrc=3499262986)
[... (now connecting with the "Watch" button)]
Creating new session: 8737537767661925; 0x7f1ed4001ab0
Creating new handle in session 8737537767661925: 8869882144794039; 0x7f1ed4001ab0 0x7f1ed40022a0
[8869882144794039] Creating ICE agent (ICE Full mode, controlling)
[WARN] [8869882144794039] Failed to add some remote candidates (added 0, expected 1)
[8869882144794039] The DTLS handshake has been completed
[janus.plugin.streaming-0x7f1ea0008fb0] WebRTC media is now available
[WARN] [8869882144794039] Failed to add some remote candidates (added 0, expected 1)
[WARN] [8869882144794039] Error resolving mDNS address (cdbbf5d7-8262-4107-8144-87ee8a199d0c.local): Error resolving “cdbbf5d7-8262-4107-8144-87ee8a199d0c.local”: Name or service not known
[WARN] [8869882144794039] Error resolving mDNS address (f7388223-fb33-4a32-ab20-2c80a936216d.local): Error resolving “f7388223-fb33-4a32-ab20-2c80a936216d.local”: Name or service not known
I feel like I’m soooo close, but just need that last little nudge to get video working.
(This is the problem with developing a useful tool that people from different backgounds – I’m more from computer graphics – who, like me, aren’t familiar with web development. Only enough to make us/me dangerous!)
Thank you so much for the tool and the help!
Bill