Skip to content

Commit

Permalink
Don't configure things in joinVoice/createStream
Browse files Browse the repository at this point in the history
Does not seem to be needed
  • Loading branch information
Sean-Der committed Aug 22, 2024
1 parent d141fb1 commit b2af40b
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,8 @@ http.createServer(async (req, res) => {

const streamer = new Streamer(new Client())
await streamer.client.login(config.userToken)
await streamer.joinVoice(config.serverIdNumber, config.channelIdNumber, {
width: 1280,
height: 720,
fps: 30,
bitrateKbps: 1000,
maxBitrateKbps: 2500,
videoCodec: 'H264'
})
const udp = await streamer.createStream({
width: 1280,
height: 720,
fps: 30,
bitrateKbps: 1000,
maxBitrateKbps: 2500,
videoCodec: 'H264'
})
await streamer.joinVoice(config.serverIdNumber, config.channelIdNumber, {})
const udp = await streamer.createStream({})

udp.mediaConnection.setSpeaking(true)
udp.mediaConnection.setVideoStatus(true)
Expand Down

0 comments on commit b2af40b

Please sign in to comment.