jitsi / jitsi-videobridge

Jitsi Videobridge is a WebRTC compatible video router or SFU that lets build highly scalable video conferencing infrastructure (i.e., up to hundreds of conferences per server).
https://jitsi.org/jitsi-videobridge
Apache License 2.0
2.91k stars 988 forks source link

(multi-stream) setVideoType - source description not found #1849

Open mabocoglu opened 2 years ago

mabocoglu commented 2 years ago

Description

I am using jitsi-meet jitsi-meet/unstable 2.0.7132-1

I have set sourceNameSignaling and sendMultipleVideoStreams flags as true,

In addition I have enabled multi-stream with that config in jvb.conf

multi-stream {
    enabled = true
}

When I try to share my screen, I get that error on videobridge

*JVB 2022-03-31 14:11:01.912 SEVERE: [175] [confId=9222d7fda71dd3d9 epId=586d333a gid=18828 stats_id=Americo-ufZ conf_name=test@conference.alpha****] AbstractEndpoint.setVideoType#164: setVideoType - source description not found for: 586d333a-v0 JVB 2022-03-31 14:11:01.949 SEVERE: [175] [confId=9222d7fda71dd3d9 epId=62458fa0 gid=18828 stats_id=Americo-ufZ conf_name=test@conference.alpha****] AbstractEndpoint.setVideoType#164: setVideoType - source description not found for: 62458fa0-v0 JVB 2022-03-31 14:11:08.351 SEVERE: [209] [confId=9222d7fda71dd3d9 epId=62458fa0 gid=18828 stats_id=Americo-ufZ conf_name=test@conference.alpha****] AbstractEndpoint.setVideoType#164: setVideoType - source description not found for: 62458fa0-v1 *


Current behavior

I cannot get any video for screenshare both on local and remote side and I get an SEVERE error log on videobridge. In addition I cannot see inbound video stream on receiver side, while I can see on outbound video stream on sender side. There is no error on negotiation for sdp.

Expected Behavior

I want to see a video screen on both local and remote side. In addition I should see inbound video stream for screenshare.

Possible Solution

While setVideoType function in AbstractEndpoint.java

public void setVideoType(String sourceName, VideoType videoType) {
        MediaSourceDesc mediaSourceDesc = findMediaSourceDesc(sourceName);

        if (mediaSourceDesc != null)
        {
            if (mediaSourceDesc.getVideoType() != videoType)
            {
                mediaSourceDesc.setVideoType(videoType);
                conference.getSpeechActivity().endpointVideoAvailabilityChanged();
            }
        }
        else
        {
            logger.error("setVideoType - source description not found for: " + sourceName);
        }
    }

cannot find media source description, somewhere in lib-jitsi-meet or videobridge

Steps to reproduce

1- Disable p2p 2- Enable sourceNameSignaling and sendMultipleVideoStreams flags to true 3- Enable multi-stream in jvb.conf 4- Create a conference with two participant with camera and audio 5- Click on screenshare button on toolbox to share screen or video (I have shared window) 6- Select the window you want to share 7- While there is a notification says Google Chrome sharing your screen, there is no video on conference.

Environment details

jitsi-meet 2.0.7132-1 jitsi-videobridge2/unstable,now 2.1-651-gf10ad5e7-1 Ubuntu 20.04.4 LTS AMD64

senders-local-description receivers-local-description outbound-video-streams inbound-video-streams sender-media-stream receiver-media-stream

paweldomas commented 2 years ago

you still need to wait at least for those two PRs: https://github.com/jitsi/jitsi-videobridge/pull/1842 and https://github.com/jitsi/jitsi-meet/pull/11272

mabocoglu commented 2 years ago

Thank you for letting me know 👍 I haven't notice them. I would make some user interface changes if I succeeded to get remote side video stream.