Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incoming streams: browser. Unable to view from browser #1527

Open
damianoct opened this issue Dec 27, 2024 · 3 comments
Open

incoming streams: browser. Unable to view from browser #1527

damianoct opened this issue Dec 27, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@damianoct
Copy link

damianoct commented Dec 27, 2024

Hi, I don't know if the way incoming streams are intended to work is what I understood.

I am using 1.9.7 version.

I would like to create a stream sharing my desktop and then be able to see my desktop (the stream) from another browser or publish this stream to telegram.

So I created in the config an empty stream using the following config below:

streams:
    mystream:

and then I added a producer in this stream using the following link: http://localhost:1984/webrtc.html?dst=mystream&media=display+speaker
so in my browser I selected the screen to share and the stream mystream now has one producer.

{
  "producers": [
    {
      "id": 14,
      "format_name": "webrtc",
      "protocol": "ws+udp",
      "remote_addr": "[fd07:b51a:cc66:0:a617:db5e:ab7:e9f1]:65447 host",
      "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",
      "medias": [
        "video, recvonly, VP8, H264, AV1, VP9",
        "audio, recvonly, OPUS/48000/2"
      ],
      "receivers": [
        {
          "id": 18,
          "codec": {
            "channels": 2,
            "codec_name": "opus",
            "codec_type": "audio",
            "sample_rate": 48000
          },
          "bytes": 281151,
          "packets": 8033
        }
      ],
      "bytes_recv": 448531
    }
  ],
  "consumers": null
}

At this point I tried to create a consumer of this screen by simply visiting the following url:
http://localhost:1984/stream.html?src=mystream
and the error is: unknown error
Probably this is due to the empty stream, but since this is an incoming stream I thought it was the right way to do it.

I also tried to see the stream using the url: http://localhost:1984/webrtc.html?src=mystream&media=video+audio but it hangs indefinitely

Anyone can help me how to manage incoming sources properly? There is not enough documentation on this top.

@AlexxIT AlexxIT added the bug Something isn't working label Dec 28, 2024
@AlexxIT AlexxIT self-assigned this Dec 28, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Dec 28, 2024

This can be 1.9.7 version bug for incoming stream. You should try master version or previous release.

@damianoct
Copy link
Author

damianoct commented Dec 28, 2024

with 1.96 it works. However, I tried to publish the stream via rtmp and the sounds does not work.
From the connection page this is what I see:
image
only the h264 is being sent to rtmp. I don't know how to also send opus (audio)

@AlexxIT
Copy link
Owner

AlexxIT commented Dec 28, 2024

That's right. This audio codec is not supported in RTMP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants