Skip to content

Commit

Permalink
change default group name for screen share
Browse files Browse the repository at this point in the history
  • Loading branch information
mekya committed Apr 25, 2024
1 parent b8d0814 commit d282a7e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 82 deletions.
2 changes: 1 addition & 1 deletion ScreenShare/SampleHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class SampleHandler: RPBroadcastSampleHandler, AntMediaClientDelegate {
override func broadcastStarted(withSetupInfo setupInfo: [String : NSObject]?) {
// User has requested to start the broadcast. Setup info from the UI extension can be supplied but optional.

let sharedDefault = UserDefaults(suiteName: "group.com.antmedia.ios.sdk")!
let sharedDefault = UserDefaults(suiteName: "group.io.antmedia.ios.webrtc.sample")!

streamId = sharedDefault.object(forKey: "streamId") as! String;
let url = sharedDefault.object(forKey: "url");
Expand Down
7 changes: 4 additions & 3 deletions WebRTC-Sample-App/WelcomeViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// ViewController.swift
// AntMediaReferenceApplication
//
// Created by Oğulcan on 11.06.2018.
// Copyright © 2018 AntMedia. All rights reserved.
//

Expand All @@ -28,7 +27,8 @@ class WelcomeViewController: UIViewController {
if let server = Defaults[.server] {
if (server.count > 0) {
self.serverButton.setTitle("Server ip: \(server)", for: .normal)

self.sharedDefault.set(server, forKey:"url");

}
}
}
Expand All @@ -39,7 +39,7 @@ class WelcomeViewController: UIViewController {
var clientToken: String!
var isConnected = false
var tapGesture: UITapGestureRecognizer!
let sharedDefault = UserDefaults(suiteName: "group.com.antmedia.ios.sdk")!
let sharedDefault = UserDefaults(suiteName: "group.io.antmedia.ios.webrtc.sample")!

override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
Expand All @@ -64,6 +64,7 @@ class WelcomeViewController: UIViewController {

self.roomField.text = "stream1"
sharedDefault.set(self.roomField.text , forKey: "streamId")

}

@IBAction func connectButton(_ sender: UIButton ) {
Expand Down

This file was deleted.

0 comments on commit d282a7e

Please sign in to comment.