@cloudflare/realtimekit-react-native 0.1.2-staging.1 → 0.1.2-staging.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ReplayKit
|
|
2
2
|
|
|
3
|
-
open class
|
|
3
|
+
open class RTKScreenshareHandler: RPBroadcastSampleHandler {
|
|
4
4
|
|
|
5
5
|
private var clientConnection: DyteSocketConnection?
|
|
6
6
|
private var uploader: DyteScreenshareUploader?
|
|
@@ -21,7 +21,6 @@ open class DyteScreenshareHandler: RPBroadcastSampleHandler {
|
|
|
21
21
|
super.init()
|
|
22
22
|
if let connection = DyteSocketConnection(filePath: socketFilePath) {
|
|
23
23
|
clientConnection = connection
|
|
24
|
-
print("Setup Connection")
|
|
25
24
|
setupConnection()
|
|
26
25
|
uploader = DyteScreenshareUploader(connection: connection, bundleIdentifier: bundleIdentifier)
|
|
27
26
|
}
|
|
@@ -49,7 +48,6 @@ open class DyteScreenshareHandler: RPBroadcastSampleHandler {
|
|
|
49
48
|
|
|
50
49
|
public override func broadcastFinished() {
|
|
51
50
|
// User has requested to finish the broadcast.
|
|
52
|
-
print("Broadcast Stopped")
|
|
53
51
|
DyteDarwinNotificationCenter.shared.postNotification(.broadcastStopped)
|
|
54
52
|
clientConnection?.close()
|
|
55
53
|
}
|
|
@@ -68,7 +66,7 @@ open class DyteScreenshareHandler: RPBroadcastSampleHandler {
|
|
|
68
66
|
}
|
|
69
67
|
}
|
|
70
68
|
|
|
71
|
-
private extension
|
|
69
|
+
private extension RTKScreenshareHandler {
|
|
72
70
|
|
|
73
71
|
func setupConnection() {
|
|
74
72
|
clientConnection?.didClose = { [weak self] error in
|