Skip to content

RTCErrorException with Unity using SrsPlayer #7

@christophheich

Description

@christophheich

Hey, unfortunately i am getting an RTC Exception using the SrsPlayer using the following url:

http://localhost:1985/rtc/v1/whep-play/?app=live&stream=livestream

WebRTC: Exchange SDP ok, answer is {"code":0,"server":"vid-3i79c04","service":"6207a0g0","pid":"1","urls":{"api":"the api root","rtc":{"v1":{"play":"Play stream","publish":"Publish stream","nack":"Simulate the NACK"}}}}

RTCErrorException: Expect line: v=

I am using Unity 2021.3.19f1 and SRS 5.

Streaming a RTMP Stream with OBS to SRS and watching it at http://localhost:8080/players/rtc_player.html?schema=http with the following URL (webrtc://localhost/live/livestream) does work fine.

Is there anything else that needs to be done?

Using the following docker run command:

docker run --rm --env CANDIDATE="192.168.178.83" -p 1935:1935 -p 8080:8080 -p 1985:1985 -p 8000:8000/udp ossrs/srs:5 objs/srs -c conf/rtmp2rtc.conf

Metadata

Metadata

Assignees

Labels

wontfixThis will not be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions