Open MishaMgla opened 1 week ago
I confirmed that the example app in the main branch + ffmpeg at https://github.com/shogo4405/HaishinKit.swift/tree/main/Examples/macOS is working.
Is it the way you wrote your code, or is it a problem with HaishinKit? First, please try running the sample app and let me know what errors you encounter.
ffplay -fflags nobuffer 'srt://0.0.0.0:9998?mode=listener'
Modify Preference.swift as follows and start the example app. Publish from Ingest Text.
// Temp
static nonisolated(unsafe) var `default` = Preference()
var uri: String? = "srt://$yourIpAddress:9998"
var streamName: String? = ""
}
I ran macOS example, and have no encountered any errors. I didn't take a look at /Examples before, I will rewrite my code using iOS example to define is it the problem with a way I wrote a code or something else.
Describe the bug
I am having trouble to publish stream using SRT. I am using SRS as media server, I can see that stream started, but no video track publishing. Any clues how to resolve it? I believe SRS working properly and I have valid srt url, as I can make it work with OBS.
To Reproduce
Publish SRT stream. Code:
Expected behavior
Validate that stream is published to SRS server
Version
1.8.0
Smartphone info.
No response
Additional context
Also, I cant make it work with SRT example in the readme, so I used SRTConnection.open() to establish connection and observer for connected state (as if I publish stream before the connection established, app fails with 'Socket broken' error). Previously I published stream with RTMP and it worked.
Screenshots
SRS status
Relevant log output
No response