Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot discover Samsung SmartTV #257

Open
volodymyr-koff opened this issue Oct 12, 2023 · 7 comments
Open

Cannot discover Samsung SmartTV #257

volodymyr-koff opened this issue Oct 12, 2023 · 7 comments

Comments

@volodymyr-koff
Copy link

volodymyr-koff commented Oct 12, 2023

Hey everyone. I am trying to conduct devices search on my physical device, but there are only apple devices found in the network, such as my two MacBoks. My Samsung SmartTV can never be found during discovery. com.apple.developer.networking.multicast entitlement is enabled. Any ideas how to solve it? Thanks a lot in advance

IMG_A7396F091DD9-1

@volodymyr-koff volodymyr-koff changed the title Eternal devices search Cannot discover Samsung SmartTV Oct 12, 2023
@tuanvucourse
Copy link

I had same issue

@MuhammadAsad786
Copy link

any one solve this issue

@HarshadTechmero
Copy link

Hi @MuhammadAsad786 @tuanvucourse @volodymyr-koff

I need one help, i am working on ConnectSDK iOS Configuration for TV Remote, i am setup sdk and give permission for local network and other and Try to find smart TV devices usinf DiscoveryManager class but not find any device,
var discoveryManager = DiscoveryManager.shared() discoveryManager?.registerDefaultServices() let videoCapabilities = [ kMediaPlayerPlayVideo, kMediaControlAny, kVolumeControlVolumeUpDown ]
` let imageCapabilities = [kMediaPlayerDisplayImage]

let videoFilter = CapabilityFilter(capabilities: videoCapabilities)
let imageFilter = CapabilityFilter(capabilities: imageCapabilities)
discoveryManager?.delegate = self
discoveryManager?.capabilityFilters = [videoFilter, imageFilter]
discoveryManager?.pairingLevel = DeviceServicePairingLevelOn
discoveryManager?.registerDeviceService(WebOSTVService.self, withDiscovery: SSDPDiscoveryProvider.self)
discoveryManager?.registerDeviceService(AirPlayService.self, withDiscovery: ZeroConfDiscoveryProvider.self)
discoveryManager?.registerDeviceService(CastService.self, withDiscovery: CastDiscoveryProvider.self)
discoveryManager?.registerDeviceService(DIALService.self, withDiscovery: SSDPDiscoveryProvider.self)
discoveryManager?.registerDeviceService(RokuService.self, withDiscovery: SSDPDiscoveryProvider.self)
discoveryManager?.registerDeviceService(DLNAService.self, withDiscovery: SSDPDiscoveryProvider.self)
discoveryManager?.startDiscovery()

extension ConnectingDeviceViewController: DiscoveryManagerDelegate {

func discoveryManager(_ manager: DiscoveryManager!, didFind device: ConnectableDevice!) {
// A ConnectableDevice was found
print(device.friendlyName ?? "")
}

func discoveryManager(_ manager: DiscoveryManager!, didLose device: ConnectableDevice!) {
// A ConnectableDevice was lost
print(device.friendlyName ?? "")
}
func discoveryManagerDidFailWithError(_ error: Error!) {
print("Discovery error: (error.localizedDescription)")
}`

Please me if i need to add permission or anything else
Screenshot 2024-04-05 at 6 48 49 PM

@MuhammadAsad786
Copy link

Add multicast permission in info.plist, your issue will be solved

@HarshadTechmero
Copy link

@MuhammadAsad786 Thank you so much for help it's resolved now and i am able to find devices.. Thank you so much for your help and your valuable time

@HarshadTechmero
Copy link

Hi @MuhammadAsad786 i need one small help from your side.. My device listing is done but when i am connected to device using Connect() method but i need to send pairing code to Connected Device.. Have you any idea about that?

@tung89hihi1123
Copy link

Add multicast permission in info.plist, your issue will be solved

how can add multicast permission sir?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants