Skip to content

uwejan/janus-api-mqtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Javascript (node and browser side) API for Janus WebRTC Gateway, Using MQTT

To test it on localhost, visit: chrome://flags/#allow-insecure-localhost


Thanks to the awesome original implementation using web-sockets TechTeamer/janus-api


Quick and might be buggy implementation on using mqtt transport. #HowTos

import { JanusMQTT } from '@uwejan/janus-api-mqtt' // instead of Janus use JanusMQTT

const common = {
    janus: {
        url: 'mqtt.broker.com', // has to be using SSL
        port: 9000,
        userName: 'userName',
        password: 'password',
        clientId: 'clientId12345',
        subTopic: 'from-janus',
        pubTopic: 'to-janus',
        filterDirectCandidates: true,
        recordDirectory: '/workspace/records/',
        bitrate: 774144,
        firSeconds: 10,
        publishers: 20
        .....
    }
}
const janusConfig = new JanusConfig(common.janus)

About

Janus WebRTC-Gateway API, using MQTT.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published