Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ class TcpStreamSocketJava(
val socketAddress: SocketAddress = InetSocketAddress(host, port)
socket.connect(socketAddress, timeout.toInt())
socket.soTimeout = timeout.toInt()
if (socket is SSLSocket) {
socket.sslParameters = socket.sslParameters.apply {
endpointIdentificationAlgorithm = "HTTPS"
}
socket.startHandshake()
}
return socket
}
}
}
2 changes: 1 addition & 1 deletion rtmp/src/main/java/com/pedro/rtmp/rtmp/RtmpClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class RtmpClient(private val connectChecker: ConnectChecker) {
get() = rtmpSender.getSentVideoFrames()
val bytesSend: Long
get() = rtmpSender.getBytesSend()
var socketType = SocketType.KTOR
var socketType = SocketType.JAVA
var socketTimeout = StreamSocket.DEFAULT_TIMEOUT
var shouldFailOnRead = false
var shouldSendPings = false
Expand Down
Loading