Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

146
Visualizações
Can't hear voice and sound while sharing screen in Agora.io

I have some issues with screen sharing. I can't hear any sounds from viewer site. What can i do this for? I am new to this. Source from dennis ivy:https://www.youtube.com/watch?v=QvNzL_FmzLQ&t=33273s

let toggleScreenShare = async() => {
if (sharingScreen){
    sharingScreen = false
    await rtcClient.publish([localScreenTracks])
    toggleVideoShare()
    
    document.getElementById('screen-btn').innerText ='Share screen'

}else{
    sharingScreen = true
    document.getElementById('screen-btn').innerText ='Share camera'
    localScreenTracks = await AgoraRTC.createScreenVideoTrack()
    document.getElementById('video__stream').innerHTML =''
    
    let player = document.getElementById(`user-container-${rtcUid}`)
    if(player != null){
        player.remove()
    }
    player = `<div class="video-container" id="user-container-${rtcUid}">
    <div class="video-player" id="user-${rtcUid}"></div>
    <div class="live-location">
    <span class="live-tag">LIVE</span></div>
    
    </div>
    </div>
    `
    document.getElementById('video__stream').insertAdjacentHTML('beforeend', player)
    localScreenTracks.play(`user-${rtcUid}`)
    await rtcClient.unpublish([localTracks[0], localTracks[1]])
    await rtcClient.publish([localScreenTracks])
}
about 4 years ago · Santiago Gelvez
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda