shogo4405 / SRTHaishinKit.swift

Camera and Microphone streaming library via SRT for iOS, macOS.
BSD 3-Clause "New" or "Revised" License
70 stars 25 forks source link

Two way connections #2

Closed spllr closed 2 years ago

spllr commented 5 years ago

In SRTConnection two srt sockets are established when calling SRTConnection.connect(:).

From SRTConnection.swift:31:

outgoingSocket = SRTOutgoingSocket()
outgoingSocket?.delegate = self
((try? outgoingSocket?.connect(addr, options: options)) as ()??)

incomingSocket = SRTIncomingSocket()
incomingSocket?.delegate = self
((try? incomingSocket?.connect(addr, options: options)) as ()??)

My question is: is this specific for a server you (@shogo4405) are working with, or is this part of the srt protocol, as I have not been able to find any mention of this in the srt documentation or srt sample code.

themaxsmith commented 4 years ago

I agree that it should be only one socket. one SRT socket can send data in ether way

themaxsmith commented 4 years ago

new PR request to make this library work with standard 'srt-live-transmit'