Open casolorz opened 9 years ago
Currently DiscoveryManager doesn't have methods for rediscovery but you can call
DiscoveryManager.getInstance().stop();
DiscoveryManager.getInstance().start();
And there are some methods in DiscoveryProvider for that: restart, rescan, reset which are not accessible directly via DIscoveryManager
So I added a call to stop and a call to start and my device list shows less devices after that, essentially all chromecast devices are gone. I've tried it a few times. Here is a log:
06-19 12:20:32.406 9957-9957/mypackage2 D/Connect SDK﹕ Service [Basement east bedroom] has been removed 06-19 12:20:32.406 9957-9957/mypackage2 D/Connect SDK﹕ Service [Living room] has been removed 06-19 12:20:32.406 9957-9957/mypackage2 D/Connect SDK﹕ Service [Gym] has been removed 06-19 12:20:32.406 9957-9957/mypackage2 D/Connect SDK﹕ Service [Master bedroom] has been removed 06-19 12:20:33.001 9957-9957/mypackage2 D/Connect SDK﹕ Service added: Master bedroom (Chromecast) 06-19 12:20:33.001 9957-9957/mypackage2 D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.74 and id 8c596de5-e549-4f30-a7a9-648841e857c6 06-19 12:20:33.015 9957-9957/mypackage2 D/Connect SDK﹕ Service added: Gym (Chromecast) 06-19 12:20:33.015 9957-9957/mypackage2 D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.67 and id f8c6a68a-665e-4682-b1c1-cd2c5df23100 06-19 12:20:33.017 9957-9957/mypackage2 D/Connect SDK﹕ Service added: Living room (Chromecast) 06-19 12:20:33.017 9957-9957/mypackage2 D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.66 and id aeb4cbd5-ebf2-462d-8d3c-06c3edc0e996 06-19 12:20:33.019 9957-9957/mypackage2 D/Connect SDK﹕ Service added: Basement east bedroom (Chromecast) 06-19 12:20:33.019 9957-9957/mypackage2 D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.69 and id bdfe1472-f1dc-4b2e-bbc4-b53efb805aac 06-19 12:20:55.483 15828-15995/? D/Connect SDK﹕ Service added: Apple TV (2) (AirPlay) 06-19 12:20:55.484 15828-15995/? D/Connect SDK﹕ Adding service AirPlay to device with address 192.168.1.92 and id f91a5f4e-9dc6-4b98-b691-ce26b113cc0f 06-19 12:20:55.771 15828-15828/? D/Connect SDK﹕ Service added: TV-55C6400 (DLNA) 06-19 12:20:55.771 15828-15828/? D/Connect SDK﹕ Adding service DLNA to device with address 192.168.1.90 and id 018183cb-d2cd-47ac-8ee1-34863f4a080b 06-19 12:20:55.772 15828-15828/? D/Connect SDK﹕ Service added: TV-55C6400 (Netcast TV) 06-19 12:20:55.772 15828-15828/? D/Connect SDK﹕ Adding service Netcast TV to device with address 192.168.1.90 and id 018183cb-d2cd-47ac-8ee1-34863f4a080b 06-19 12:20:55.823 9957-9957/mypackage2 D/Connect SDK﹕ Service [Basement east bedroom] has been removed 06-19 12:20:55.824 9957-9957/mypackage2 D/Connect SDK﹕ Service [Living room] has been removed 06-19 12:20:55.824 9957-9957/mypackage2 D/Connect SDK﹕ Service [Gym] has been removed 06-19 12:20:55.824 9957-9957/mypackage2 D/Connect SDK﹕ Service [Master bedroom] has been removed 06-19 12:20:55.824 9957-9957/mypackage2 D/Connect SDK﹕ onServiceRemoved: friendlyName: Basement east bedroom 06-19 12:20:55.824 9957-9957/mypackage2 D/Connect SDK﹕ onServiceRemoved: friendlyName: Living room 06-19 12:20:55.825 9957-9957/mypackage2 D/Connect SDK﹕ onServiceRemoved: friendlyName: Gym 06-19 12:20:55.825 9957-9957/mypackage2 D/Connect SDK﹕ onServiceRemoved: friendlyName: Master bedroom 06-19 12:20:55.994 15828-15828/? D/Connect SDK﹕ Service added: Lilian's Fire TV (DIAL) 06-19 12:20:55.994 15828-15828/? D/Connect SDK﹕ Adding service DIAL to device with address 192.168.1.72 and id e41d0f99-4d83-42a5-800f-be11568af6eb 06-19 12:20:56.384 15828-15828/? D/Connect SDK﹕ Service added: Basement east bedroom (Chromecast) 06-19 12:20:56.384 15828-15828/? D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.69 and id 664f7cbe-6f5f-4a1f-9102-dd9e3a8b64c5 06-19 12:20:56.390 9957-9957/mypackage2 D/Connect SDK﹕ Service added: Basement east bedroom (Chromecast) 06-19 12:20:56.390 9957-9957/mypackage2 D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.69 and id bdfe1472-f1dc-4b2e-bbc4-b53efb805aac 06-19 12:20:56.441 15828-15828/? D/Connect SDK﹕ Service added: Master bedroom (Chromecast) 06-19 12:20:56.441 15828-15828/? D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.74 and id 58888117-ea17-43de-b539-ea081f732c12 06-19 12:20:56.447 9957-9957/mypackage2 D/Connect SDK﹕ Service added: Master bedroom (Chromecast) 06-19 12:20:56.447 9957-9957/mypackage2 D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.74 and id 8c596de5-e549-4f30-a7a9-648841e857c6 06-19 12:20:56.502 9957-9957/mypackage2 D/Connect SDK﹕ Service added: Gym (Chromecast) 06-19 12:20:56.502 9957-9957/mypackage2 D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.67 and id f8c6a68a-665e-4682-b1c1-cd2c5df23100 06-19 12:20:56.517 15828-15828/? D/Connect SDK﹕ Service added: Gym (Chromecast) 06-19 12:20:56.518 15828-15828/? D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.67 and id 827decf2-a5f1-4b28-bc9f-1926d322e703 06-19 12:20:56.677 15828-15828/? D/Connect SDK﹕ Service added: Master bedroom (DIAL) 06-19 12:20:56.677 15828-15828/? D/Connect SDK﹕ Adding service DIAL to device with address 192.168.1.74 and id 58888117-ea17-43de-b539-ea081f732c12 06-19 12:20:56.760 15828-15828/? D/Connect SDK﹕ Service added: Gym (DIAL) 06-19 12:20:56.760 15828-15828/? D/Connect SDK﹕ Adding service DIAL to device with address 192.168.1.67 and id 827decf2-a5f1-4b28-bc9f-1926d322e703 06-19 12:20:56.837 15828-15828/? D/Connect SDK﹕ Service added: HT-RC460 (DLNA) 06-19 12:20:56.837 15828-15828/? D/Connect SDK﹕ Adding service DLNA to device with address 192.168.1.91 and id ae0390dc-d51a-43ad-ba56-e0e6b6207b15 06-19 12:20:56.838 15828-15828/? D/Connect SDK﹕ Service added: HT-RC460 (Netcast TV) 06-19 12:20:56.838 15828-15828/? D/Connect SDK﹕ Adding service Netcast TV to device with address 192.168.1.91 and id ae0390dc-d51a-43ad-ba56-e0e6b6207b15 06-19 12:20:57.577 15828-15828/? D/Connect SDK﹕ Service added: Living room (DIAL) 06-19 12:20:57.578 15828-15828/? D/Connect SDK﹕ Adding service DIAL to device with address 192.168.1.66 and id d874e87d-1203-4123-9e95-b4c0d71def44 06-19 12:20:58.256 15828-15828/? D/Connect SDK﹕ Service added: Basement east bedroom (DIAL) 06-19 12:20:58.256 15828-15828/? D/Connect SDK﹕ Adding service DIAL to device with address 192.168.1.69 and id 664f7cbe-6f5f-4a1f-9102-dd9e3a8b64c5 06-19 12:20:58.304 15828-15828/? D/Connect SDK﹕ Service added: Roku 3 - 4124CD116856 (Roku) 06-19 12:20:58.305 15828-15828/? D/Connect SDK﹕ Adding service Roku to device with address 192.168.1.211 and id 90102740-0b9d-4795-9d39-35a730d9e8bd 06-19 12:20:59.346 15828-15828/? D/Connect SDK﹕ Service added: Roku 3 - 4124CD116856 (DIAL) 06-19 12:20:59.346 15828-15828/? D/Connect SDK﹕ Adding service DIAL to device with address 192.168.1.211 and id 90102740-0b9d-4795-9d39-35a730d9e8bd 06-19 12:23:25.191 9957-9957/mypackage2 D/Connect SDK﹕ Service [Basement east bedroom] has been removed 06-19 12:23:25.191 9957-9957/mypackage2 D/Connect SDK﹕ Service [Gym] has been removed 06-19 12:23:25.191 9957-9957/mypackage2 D/Connect SDK﹕ Service [Master bedroom] has been removed 06-19 12:23:25.192 9957-9957/mypackage2 D/Connect SDK﹕ onServiceRemoved: friendlyName: Basement east bedroom 06-19 12:23:25.192 9957-9957/mypackage2 D/Connect SDK﹕ onServiceRemoved: friendlyName: Gym 06-19 12:23:25.192 9957-9957/mypackage2 D/Connect SDK﹕ onServiceRemoved: friendlyName: Master bedroom 06-19 12:23:25.250 15828-15828/? D/Connect SDK﹕ Service [Basement east bedroom] has been removed 06-19 12:23:25.250 15828-15828/? D/Connect SDK﹕ Service [Gym] has been removed 06-19 12:23:25.250 15828-15828/? D/Connect SDK﹕ Service [Master bedroom] has been removed 06-19 12:23:25.253 15828-15828/? D/Connect SDK﹕ onServiceRemoved: friendlyName: Basement east bedroom 06-19 12:23:25.254 15828-15828/? D/Connect SDK﹕ onServiceRemoved: friendlyName: Gym 06-19 12:23:25.254 15828-15828/? D/Connect SDK﹕ onServiceRemoved: friendlyName: Master bedroom 06-19 12:23:25.811 9957-9957/mypackage2 D/Connect SDK﹕ Service added: Master bedroom (Chromecast) 06-19 12:23:25.812 9957-9957/mypackage2 D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.74 and id 8c596de5-e549-4f30-a7a9-648841e857c6 06-19 12:23:25.814 9957-9957/mypackage2 D/Connect SDK﹕ Service added: Gym (Chromecast) 06-19 12:23:25.814 9957-9957/mypackage2 D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.67 and id f8c6a68a-665e-4682-b1c1-cd2c5df23100 06-19 12:23:25.816 9957-9957/mypackage2 D/Connect SDK﹕ Service added: Living room (Chromecast) 06-19 12:23:25.816 9957-9957/mypackage2 D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.66 and id aeb4cbd5-ebf2-462d-8d3c-06c3edc0e996 06-19 12:23:25.823 9957-9957/mypackage2 D/Connect SDK﹕ Service added: Basement east bedroom (Chromecast) 06-19 12:23:25.823 9957-9957/mypackage2 D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.69 and id bdfe1472-f1dc-4b2e-bbc4-b53efb805aac 06-19 12:23:55.515 9957-9957/mypackage2 D/Connect SDK﹕ Service [Basement east bedroom] has been removed 06-19 12:23:55.515 9957-9957/mypackage2 D/Connect SDK﹕ Service [Living room] has been removed 06-19 12:23:55.516 9957-9957/mypackage2 D/Connect SDK﹕ Service [Gym] has been removed 06-19 12:23:55.516 9957-9957/mypackage2 D/Connect SDK﹕ Service [Master bedroom] has been removed 06-19 12:23:55.516 9957-9957/mypackage2 D/Connect SDK﹕ onServiceRemoved: friendlyName: Basement east bedroom 06-19 12:23:55.517 9957-9957/mypackage2 D/Connect SDK﹕ onServiceRemoved: friendlyName: Living room 06-19 12:23:55.517 9957-9957/mypackage2 D/Connect SDK﹕ onServiceRemoved: friendlyName: Gym 06-19 12:23:55.517 9957-9957/mypackage2 D/Connect SDK﹕ onServiceRemoved: friendlyName: Master bedroom 06-19 12:23:55.591 15828-15828/? D/Connect SDK﹕ Service [Basement east bedroom] has been removed 06-19 12:23:55.592 15828-15828/? D/Connect SDK﹕ Service [Gym] has been removed 06-19 12:23:55.592 15828-15828/? D/Connect SDK﹕ Service [Master bedroom] has been removed 06-19 12:23:56.105 9957-9957/mypackage2 D/Connect SDK﹕ Service added: Master bedroom (Chromecast) 06-19 12:23:56.105 9957-9957/mypackage2 D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.74 and id 8c596de5-e549-4f30-a7a9-648841e857c6 06-19 12:23:56.107 9957-9957/mypackage2 D/Connect SDK﹕ Service added: Gym (Chromecast) 06-19 12:23:56.108 9957-9957/mypackage2 D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.67 and id f8c6a68a-665e-4682-b1c1-cd2c5df23100 06-19 12:23:56.110 9957-9957/mypackage2 D/Connect SDK﹕ Service added: Living room (Chromecast) 06-19 12:23:56.110 9957-9957/mypackage2 D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.66 and id aeb4cbd5-ebf2-462d-8d3c-06c3edc0e996 06-19 12:23:56.112 9957-9957/mypackage2 D/Connect SDK﹕ Service added: Basement east bedroom (Chromecast) 06-19 12:23:56.112 9957-9957/mypackage2 D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.69 and id bdfe1472-f1dc-4b2e-bbc4-b53efb805aac 06-19 12:24:21.738 9957-9957/mypackage2 D/Connect SDK﹕ Service [Basement east bedroom] has been removed 06-19 12:24:21.738 9957-9957/mypackage2 D/Connect SDK﹕ Service [Living room] has been removed 06-19 12:24:21.738 9957-9957/mypackage2 D/Connect SDK﹕ Service [Gym] has been removed 06-19 12:24:21.739 9957-9957/mypackage2 D/Connect SDK﹕ Service [Master bedroom] has been removed 06-19 12:24:21.739 9957-9957/mypackage2 D/Connect SDK﹕ onServiceRemoved: friendlyName: Basement east bedroom 06-19 12:24:21.739 9957-9957/mypackage2 D/Connect SDK﹕ onServiceRemoved: friendlyName: Living room 06-19 12:24:21.739 9957-9957/mypackage2 D/Connect SDK﹕ onServiceRemoved: friendlyName: Gym 06-19 12:24:21.740 9957-9957/mypackage2 D/Connect SDK﹕ onServiceRemoved: friendlyName: Master bedroom 06-19 12:24:22.559 9957-9957/mypackage2 D/Connect SDK﹕ Service added: Living room (Chromecast) 06-19 12:24:22.559 9957-9957/mypackage2 D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.66 and id aeb4cbd5-ebf2-462d-8d3c-06c3edc0e996 06-19 12:24:22.605 9957-9957/mypackage2 D/Connect SDK﹕ Service added: Gym (Chromecast) 06-19 12:24:22.605 9957-9957/mypackage2 D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.67 and id f8c6a68a-665e-4682-b1c1-cd2c5df23100 06-19 12:24:22.623 9957-9957/mypackage2 D/Connect SDK﹕ Service added: Basement east bedroom (Chromecast) 06-19 12:24:22.624 9957-9957/mypackage2 D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.69 and id bdfe1472-f1dc-4b2e-bbc4-b53efb805aac 06-19 12:24:22.639 9957-9957/mypackage2 D/Connect SDK﹕ Service added: Master bedroom (Chromecast) 06-19 12:24:22.639 9957-9957/mypackage2 D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.74 and id 8c596de5-e549-4f30-a7a9-648841e857c6 06-19 12:24:43.392 20788-20957/mypackage1 D/Connect SDK﹕ Service added: Apple TV (2) (AirPlay) 06-19 12:24:43.396 20788-20957/mypackage1 D/Connect SDK﹕ Adding service AirPlay to device with address 192.168.1.92 and id b9c099f6-0175-4526-9e2c-174a78c96164 06-19 12:24:43.456 20788-20788/mypackage1 D/Connect SDK﹕ Service added: Living room (DIAL) 06-19 12:24:43.456 20788-20788/mypackage1 D/Connect SDK﹕ Adding service DIAL to device with address 192.168.1.66 and id d874e87d-1203-4123-9e95-b4c0d71def44 06-19 12:24:43.610 9957-9957/mypackage2 D/Connect SDK﹕ Service [Basement east bedroom] has been removed 06-19 12:24:43.611 9957-9957/mypackage2 D/Connect SDK﹕ Service [Living room] has been removed 06-19 12:24:43.611 9957-9957/mypackage2 D/Connect SDK﹕ Service [Gym] has been removed 06-19 12:24:43.611 9957-9957/mypackage2 D/Connect SDK﹕ Service [Master bedroom] has been removed 06-19 12:24:43.611 9957-9957/mypackage2 D/Connect SDK﹕ onServiceRemoved: friendlyName: Basement east bedroom 06-19 12:24:43.611 9957-9957/mypackage2 D/Connect SDK﹕ onServiceRemoved: friendlyName: Living room 06-19 12:24:43.612 9957-9957/mypackage2 D/Connect SDK﹕ onServiceRemoved: friendlyName: Gym 06-19 12:24:43.612 9957-9957/mypackage2 D/Connect SDK﹕ onServiceRemoved: friendlyName: Master bedroom 06-19 12:24:43.672 20788-20788/mypackage1 D/Connect SDK﹕ Service added: TV-55C6400 (DLNA) 06-19 12:24:43.672 20788-20788/mypackage1 D/Connect SDK﹕ Adding service DLNA to device with address 192.168.1.90 and id 1c060602-ae65-41aa-a741-a6bfe5abfbdb 06-19 12:24:43.676 20788-20788/mypackage1 D/Connect SDK﹕ Service added: TV-55C6400 (Netcast TV) 06-19 12:24:43.676 20788-20788/mypackage1 D/Connect SDK﹕ Adding service Netcast TV to device with address 192.168.1.90 and id 1c060602-ae65-41aa-a741-a6bfe5abfbdb 06-19 12:24:43.925 20788-20788/mypackage1 D/Connect SDK﹕ Service added: Gym (DIAL) 06-19 12:24:43.925 20788-20788/mypackage1 D/Connect SDK﹕ Adding service DIAL to device with address 192.168.1.67 and id 3fa22184-f568-46e6-8a59-466483255da7 06-19 12:24:44.156 20788-20788/mypackage1 D/Connect SDK﹕ Service added: Basement east bedroom (Chromecast) 06-19 12:24:44.156 20788-20788/mypackage1 D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.69 and id 998bdf37-3997-4a67-be50-cd1c40542cc8 06-19 12:24:44.165 20788-20788/mypackage1 D/Connect SDK﹕ Service added: Master bedroom (Chromecast) 06-19 12:24:44.165 20788-20788/mypackage1 D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.74 and id 8626a345-c865-41ae-883e-842fab590425 06-19 12:24:44.173 9957-9957/mypackage2 D/Connect SDK﹕ Service added: Basement east bedroom (Chromecast) 06-19 12:24:44.173 9957-9957/mypackage2 D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.69 and id bdfe1472-f1dc-4b2e-bbc4-b53efb805aac 06-19 12:24:44.177 9957-9957/mypackage2 D/Connect SDK﹕ Service added: Master bedroom (Chromecast) 06-19 12:24:44.177 9957-9957/mypackage2 D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.74 and id 8c596de5-e549-4f30-a7a9-648841e857c6 06-19 12:24:44.237 20788-20788/mypackage1 D/Connect SDK﹕ Service added: Lilian's Fire TV (DIAL) 06-19 12:24:44.238 20788-20788/mypackage1 D/Connect SDK﹕ Adding service DIAL to device with address 192.168.1.72 and id c750262a-c23e-4d71-a57d-bf71b9540383 06-19 12:24:44.309 20788-20788/mypackage1 D/Connect SDK﹕ Service added: Gym (Chromecast) 06-19 12:24:44.309 20788-20788/mypackage1 D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.67 and id 3fa22184-f568-46e6-8a59-466483255da7 06-19 12:24:44.311 20788-20788/mypackage1 D/Connect SDK﹕ Service added: Basement east bedroom (DIAL) 06-19 12:24:44.311 20788-20788/mypackage1 D/Connect SDK﹕ Adding service DIAL to device with address 192.168.1.69 and id 998bdf37-3997-4a67-be50-cd1c40542cc8 06-19 12:24:44.313 9957-9957/mypackage2 D/Connect SDK﹕ Service added: Gym (Chromecast) 06-19 12:24:44.316 9957-9957/mypackage2 D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.67 and id f8c6a68a-665e-4682-b1c1-cd2c5df23100 06-19 12:24:44.324 20788-20788/mypackage1 D/Connect SDK﹕ Service added: HT-RC460 (DLNA) 06-19 12:24:44.324 20788-20788/mypackage1 D/Connect SDK﹕ Adding service DLNA to device with address 192.168.1.91 and id 31713598-e6db-42d1-ae81-0802fd13c2a9 06-19 12:24:44.325 20788-20788/mypackage1 D/Connect SDK﹕ Service added: HT-RC460 (Netcast TV) 06-19 12:24:44.325 20788-20788/mypackage1 D/Connect SDK﹕ Adding service Netcast TV to device with address 192.168.1.91 and id 31713598-e6db-42d1-ae81-0802fd13c2a9 06-19 12:24:44.335 20788-20788/mypackage1 D/Connect SDK﹕ Service added: Master bedroom (DIAL) 06-19 12:24:44.336 20788-20788/mypackage1 D/Connect SDK﹕ Adding service DIAL to device with address 192.168.1.74 and id 8626a345-c865-41ae-883e-842fab590425 06-19 12:24:45.083 20788-20788/mypackage1 D/Connect SDK﹕ Service added: Roku 3 - 4124CD116856 (DIAL) 06-19 12:24:45.084 20788-20788/mypackage1 D/Connect SDK﹕ Adding service DIAL to device with address 192.168.1.211 and id d5460a3d-7866-4790-80d0-92ca057b3671 06-19 12:24:45.464 20788-20788/mypackage1 D/Connect SDK﹕ Service added: Roku 3 - 4124CD116856 (Roku) 06-19 12:24:45.464 20788-20788/mypackage1 D/Connect SDK﹕ Adding service Roku to device with address 192.168.1.211 and id d5460a3d-7866-4790-80d0-92ca057b3671 06-19 12:25:24.808 9957-9957/mypackage2 D/Connect SDK﹕ Service [Basement east bedroom] has been removed 06-19 12:25:24.808 9957-9957/mypackage2 D/Connect SDK﹕ Service [Gym] has been removed 06-19 12:25:24.808 9957-9957/mypackage2 D/Connect SDK﹕ Service [Master bedroom] has been removed 06-19 12:25:24.812 9957-9957/mypackage2 D/Connect SDK﹕ onServiceRemoved: friendlyName: Basement east bedroom 06-19 12:25:24.820 9957-9957/mypackage2 D/Connect SDK﹕ onServiceRemoved: friendlyName: Gym 06-19 12:25:24.821 9957-9957/mypackage2 D/Connect SDK﹕ onServiceRemoved: friendlyName: Master bedroom 06-19 12:25:24.878 20788-20788/mypackage1 D/Connect SDK﹕ Service [Basement east bedroom] has been removed 06-19 12:25:24.879 20788-20788/mypackage1 D/Connect SDK﹕ Service [Gym] has been removed 06-19 12:25:24.879 20788-20788/mypackage1 D/Connect SDK﹕ Service [Master bedroom] has been removed 06-19 12:25:24.883 20788-20788/mypackage1 D/Connect SDK﹕ onServiceRemoved: friendlyName: Basement east bedroom 06-19 12:25:24.884 20788-20788/mypackage1 D/Connect SDK﹕ onServiceRemoved: friendlyName: Gym 06-19 12:25:24.885 20788-20788/mypackage1 D/Connect SDK﹕ onServiceRemoved: friendlyName: Master bedroom 06-19 12:25:25.328 9957-9957/mypackage2 D/Connect SDK﹕ Service added: Master bedroom (Chromecast) 06-19 12:25:25.328 9957-9957/mypackage2 D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.74 and id 8c596de5-e549-4f30-a7a9-648841e857c6 06-19 12:25:25.330 9957-9957/mypackage2 D/Connect SDK﹕ Service added: Gym (Chromecast) 06-19 12:25:25.330 9957-9957/mypackage2 D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.67 and id f8c6a68a-665e-4682-b1c1-cd2c5df23100 06-19 12:25:25.338 9957-9957/mypackage2 D/Connect SDK﹕ Service added: Living room (Chromecast) 06-19 12:25:25.338 9957-9957/mypackage2 D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.66 and id aeb4cbd5-ebf2-462d-8d3c-06c3edc0e996 06-19 12:25:25.344 9957-9957/mypackage2 D/Connect SDK﹕ Service added: Basement east bedroom (Chromecast) 06-19 12:25:25.344 9957-9957/mypackage2 D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.69 and id bdfe1472-f1dc-4b2e-bbc4-b53efb805aac
I would like to add that the devices are sort of there but the capabilities check fails. This is my code:
Collection<ConnectableDevice> devicesUnfiltered = discoveryManager.getAllDevices().values();
for (ConnectableDevice dev : devicesUnfiltered) {
if (dev.hasCapabilities(VIDEO_FILTER.capabilities)) {
//only show these devices
Basically that if
fails after the refresh for Chromecast devices.
Forgot to add, my VIDEO_FILTER is:
private static final CapabilityFilter VIDEO_FILTER = new CapabilityFilter(
MediaPlayer.Play_Video,
MediaControl.Any
);
I've seen this exact same problem without calling stop/start. Basically a phone will not show any chromecast devices but if I step the code I can see them on the list of discoveryManager.getAllDevices() but when I check the capabilities they just don't pass that test.
I want to connect to Fire TV without using DIAL, but want to use Fling but when I connect using DIAL it displays on the firetv device but fling does not display, please help me
I had an issue a little bit ago where my phone kept making the Chromecast devices disappear, and also the Apple TV would never show up. Other phones with the same version of the app would see them just fine. Killing the app wouldn't fix it, only turning wifi off and back on fixed it. I captured the logs but I doubt they tell you much, so next time this happens what can I do? Also, is there a way to force rediscovery?
The logs (you can see the wifi going off around 12:50):
06-13 12:45:21.895 31796-31796/mypackage D/Connect SDK﹕ Service added: Master bedroom (DIAL) 06-13 12:45:21.897 31796-31796/mypackage D/Connect SDK﹕ Adding service DIAL to device with address 192.168.1.74 and id 60daf9e2-a61c-46a8-a6ce-6516a6e750d2 06-13 12:45:21.906 31796-31796/mypackage D/Connect SDK﹕ Service added: Basement east bedroom (DIAL) 06-13 12:45:21.906 31796-31796/mypackage D/Connect SDK﹕ Adding service DIAL to device with address 192.168.1.69 and id d996fe3d-00b8-42da-b901-2e2053fcbe9e 06-13 12:45:22.231 31796-31796/mypackage D/Connect SDK﹕ Service added: HT-RC460 (DLNA) 06-13 12:45:22.231 31796-31796/mypackage D/Connect SDK﹕ Adding service DLNA to device with address 192.168.1.91 and id 6b767ca7-e667-4bc7-b144-a14b66bd5795 06-13 12:45:22.234 31796-31796/mypackage D/Connect SDK﹕ Service added: HT-RC460 (Netcast TV) 06-13 12:45:22.234 31796-31796/mypackage D/Connect SDK﹕ Adding service Netcast TV to device with address 192.168.1.91 and id 6b767ca7-e667-4bc7-b144-a14b66bd5795 06-13 12:45:22.425 31796-31796/mypackage D/Connect SDK﹕ Service added: Basement east bedroom (Chromecast) 06-13 12:45:22.425 31796-31796/mypackage D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.69 and id d996fe3d-00b8-42da-b901-2e2053fcbe9e 06-13 12:45:22.576 31796-31796/mypackage D/Connect SDK﹕ Service added: Master bedroom (Chromecast) 06-13 12:45:22.577 31796-31796/mypackage D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.74 and id 60daf9e2-a61c-46a8-a6ce-6516a6e750d2 06-13 12:45:22.582 31796-31796/mypackage D/Connect SDK﹕ Service added: Gym (Chromecast) 06-13 12:45:22.582 31796-31796/mypackage D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.67 and id c67ae830-5a11-42f4-8f65-3ce81074bfc6 06-13 12:45:22.716 31796-31796/mypackage D/Connect SDK﹕ Service added: TV-55C6400 (DLNA) 06-13 12:45:22.716 31796-31796/mypackage D/Connect SDK﹕ Adding service DLNA to device with address 192.168.1.90 and id cab4a7e1-fd8e-4d88-86cc-9fbfd1eb1488 06-13 12:45:22.717 31796-31796/mypackage D/Connect SDK﹕ Service added: TV-55C6400 (Netcast TV) 06-13 12:45:22.717 31796-31796/mypackage D/Connect SDK﹕ Adding service Netcast TV to device with address 192.168.1.90 and id cab4a7e1-fd8e-4d88-86cc-9fbfd1eb1488 06-13 12:45:23.233 31796-31796/mypackage D/Connect SDK﹕ Service added: Roku 3 - 4124CD116856 (Roku) 06-13 12:45:23.233 31796-31796/mypackage D/Connect SDK﹕ Adding service Roku to device with address 192.168.1.208 and id a34d0ad6-5150-4a60-877c-7f1d43346fdb 06-13 12:45:23.778 31796-31796/mypackage D/Connect SDK﹕ Service added: Roku 3 - 4124CD116856 (DIAL) 06-13 12:45:23.778 31796-31796/mypackage D/Connect SDK﹕ Adding service DIAL to device with address 192.168.1.208 and id a34d0ad6-5150-4a60-877c-7f1d43346fdb 06-13 12:45:23.945 31796-31796/mypackage D/Connect SDK﹕ Service added: Living room (DIAL) 06-13 12:45:23.945 31796-31796/mypackage D/Connect SDK﹕ Adding service DIAL to device with address 192.168.1.66 and id 27e5efa4-dc05-47d5-8f96-8cdb2e69a289 06-13 12:45:24.194 31796-31796/mypackage D/Connect SDK﹕ Service added: Gym (DIAL) 06-13 12:45:24.194 31796-31796/mypackage D/Connect SDK﹕ Adding service DIAL to device with address 192.168.1.67 and id c67ae830-5a11-42f4-8f65-3ce81074bfc6 06-13 12:45:24.472 31796-31796/mypackage D/Connect SDK﹕ Service added: Lilian's Fire TV (DIAL) 06-13 12:45:24.472 31796-31796/mypackage D/Connect SDK﹕ Adding service DIAL to device with address 192.168.1.72 and id e8a5cae1-7b51-4902-9faa-5e4eef82af71 06-13 12:46:33.617 31796-31796/mypackage D/Connect SDK﹕ Service added: Nearby device (Chromecast) 06-13 12:46:33.617 31796-31796/mypackage D/Connect SDK﹕ Adding service Chromecast to device with address 127.0.0.1 and id 8cc52a95-94f9-4677-9628-3b7698e00a19 06-13 12:46:33.618 31796-31796/mypackage D/Connect SDK﹕ Service [Basement east bedroom] has been removed 06-13 12:46:33.618 31796-31796/mypackage D/Connect SDK﹕ Service [Gym] has been removed 06-13 12:46:33.618 31796-31796/mypackage D/Connect SDK﹕ Service [Master bedroom] has been removed 06-13 12:46:33.745 31796-31796/mypackage D/Connect SDK﹕ onServiceRemoved: friendlyName: Basement east bedroom 06-13 12:46:33.746 31796-31796/mypackage D/Connect SDK﹕ onServiceRemoved: friendlyName: Gym 06-13 12:46:33.747 31796-31796/mypackage D/Connect SDK﹕ onServiceRemoved: friendlyName: Master bedroom 06-13 12:50:14.036 31796-31796/mypackage W/Connect SDK﹕ Network connection is disconnected 06-13 12:50:14.037 31796-31796/mypackage W/Connect SDK﹕ Network connection is disconnected 06-13 12:50:14.147 31796-31796/mypackage W/Connect SDK﹕ Network connection is disconnected 06-13 12:50:24.310 31796-31796/mypackage W/Connect SDK﹕ Network connection is disconnected 06-13 12:50:24.357 31796-31796/mypackage W/Connect SDK﹕ Network connection is disconnected 06-13 12:50:27.707 31796-31796/mypackage D/Connect SDK﹕ Service added: TV-55C6400 (DLNA) 06-13 12:50:27.707 31796-31796/mypackage D/Connect SDK﹕ Adding service DLNA to device with address 192.168.1.90 and id cab4a7e1-fd8e-4d88-86cc-9fbfd1eb1488 06-13 12:50:27.708 31796-31796/mypackage D/Connect SDK﹕ Service added: TV-55C6400 (Netcast TV) 06-13 12:50:27.708 31796-31796/mypackage D/Connect SDK﹕ Adding service Netcast TV to device with address 192.168.1.90 and id cab4a7e1-fd8e-4d88-86cc-9fbfd1eb1488 06-13 12:50:27.823 31796-31796/mypackage D/Connect SDK﹕ Service added: Roku 3 - 4124CD116856 (DIAL) 06-13 12:50:27.823 31796-31796/mypackage D/Connect SDK﹕ Adding service DIAL to device with address 192.168.1.208 and id a34d0ad6-5150-4a60-877c-7f1d43346fdb 06-13 12:50:27.837 31796-31796/mypackage D/Connect SDK﹕ Service added: Living room (Chromecast) 06-13 12:50:27.837 31796-31796/mypackage D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.66 and id 27e5efa4-dc05-47d5-8f96-8cdb2e69a289 06-13 12:50:27.852 31796-7440/mypackage D/Connect SDK﹕ Service added: Apple TV (2) (AirPlay) 06-13 12:50:27.853 31796-7440/mypackage D/Connect SDK﹕ Adding service AirPlay to device with address 192.168.1.92 and id a28d8d76-b633-448c-8206-47ebe1b8f2b3 06-13 12:50:27.858 31796-31796/mypackage D/Connect SDK﹕ Service added: Basement east bedroom (Chromecast) 06-13 12:50:27.858 31796-31796/mypackage D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.69 and id d996fe3d-00b8-42da-b901-2e2053fcbe9e 06-13 12:50:27.882 31796-31796/mypackage D/Connect SDK﹕ Service added: Master bedroom (Chromecast) 06-13 12:50:27.882 31796-31796/mypackage D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.74 and id 8a6433cc-ed03-4636-8bcd-84f8e0a4c65f 06-13 12:50:27.914 31796-31796/mypackage D/Connect SDK﹕ Service added: Gym (Chromecast) 06-13 12:50:27.914 31796-31796/mypackage D/Connect SDK﹕ Adding service Chromecast to device with address 192.168.1.67 and id c67ae830-5a11-42f4-8f65-3ce81074bfc6 06-13 12:50:28.311 31796-31796/mypackage D/Connect SDK﹕ Service added: Roku 3 - 4124CD116856 (Roku) 06-13 12:50:28.311 31796-31796/mypackage D/Connect SDK﹕ Adding service Roku to device with address 192.168.1.208 and id a34d0ad6-5150-4a60-877c-7f1d43346fdb 06-13 12:50:28.721 31796-31796/mypackage D/Connect SDK﹕ Service added: HT-RC460 (DLNA) 06-13 12:50:28.721 31796-31796/mypackage D/Connect SDK﹕ Adding service DLNA to device with address 192.168.1.91 and id 63d5c615-55e5-4952-be05-892f115a0d46 06-13 12:50:28.722 31796-31796/mypackage D/Connect SDK﹕ Service added: HT-RC460 (Netcast TV) 06-13 12:50:28.722 31796-31796/mypackage D/Connect SDK﹕ Adding service Netcast TV to device with address 192.168.1.91 and id 63d5c615-55e5-4952-be05-892f115a0d46 06-13 12:50:29.027 31796-31796/mypackage D/Connect SDK﹕ Service added: Living room (DIAL) 06-13 12:50:29.027 31796-31796/mypackage D/Connect SDK﹕ Adding service DIAL to device with address 192.168.1.66 and id 27e5efa4-dc05-47d5-8f96-8cdb2e69a289 06-13 12:50:30.013 31796-31796/mypackage D/Connect SDK﹕ Service added: Gym (DIAL) 06-13 12:50:30.013 31796-31796/mypackage D/Connect SDK﹕ Adding service DIAL to device with address 192.168.1.67 and id c67ae830-5a11-42f4-8f65-3ce81074bfc6 06-13 12:50:30.044 31796-31796/mypackage D/Connect SDK﹕ Service added: Master bedroom (DIAL) 06-13 12:50:30.044 31796-31796/mypackage D/Connect SDK﹕ Adding service DIAL to device with address 192.168.1.74 and id 8a6433cc-ed03-4636-8bcd-84f8e0a4c65f 06-13 12:50:30.212 31796-31796/mypackage D/Connect SDK﹕ Service added: Basement east bedroom (DIAL) 06-13 12:50:30.212 31796-31796/mypackage D/Connect SDK﹕ Adding service DIAL to device with address 192.168.1.69 and id d996fe3d-00b8-42da-b901-2e2053fcbe9e 06-13 12:50:31.055 31796-31796/mypackage D/Connect SDK﹕ Service added: Lilian's Fire TV (DIAL) 06-13 12:50:31.055 31796-31796/mypackage D/Connect SDK﹕ Adding service DIAL to device with address 192.168.1.72 and id 2252d34c-e606-423e-96ce-e8b726e58d66