SamsungDForum / SmartViewSDKCastVideo

Smart View SDK Reference app to cast video
34 stars 16 forks source link

Cannot find Smart TV #9

Open rangav opened 4 years ago

rangav commented 4 years ago

Hi

The software provided in sdk cannot find the tv (2014 model)

I testing with pod 'smart-view-sdk', "2.5.8"

But the TV is found with Samsung Smart View iOS app.

The library doesn't work well with Xcode 11 and iOS 13.

Can you please update the example to support laster version.

Sample Code Used:

class ViewController: UIViewController, ServiceSearchDelegate, ConnectionDelegate{

    private var ss:ServiceSearch!;
    override func viewDidLoad() {
         super.viewDidLoad()
            self.ss = Service.search();
            self.ss.delegate = self;
            self.ss.start(true)
    }

    @objc func onServiceFound(_ service: Service)
    {
        print("Samsung found");
    }

    @objc func onServiceLost(_ service: SmartView.Service) -> Void
    {
        print("Samsung device lost");
    }
}