TV Remote for all mobile devices
- You can search devices like this
Future<void> searchDevices() async {
final String? ip = await NetworkInfo().getWifiIP();
if (ip == null) {
return;
}
TizenHelperMethods.scanNetwork(ip).listen((tv) {
print('Found TV $tv');
});
}
- Set the selected TV
TizenHelperMethods.selectedTv = tvVar;
- Control the TV using
TizenHelperMethods.selectedTv!.addToSocket(KeyCodes.KEY_VOLDOWN);
TizenHelperMethods.selectedTv!.addToSocket(KeyCodes.KEY_VOLUP);
TizenHelperMethods.selectedTv!.addToSocket(KeyCodes.KEY_POWER);
The example is TV remote app and is very fun to test.
You should to try it up with your TV.
Thanks @shaharhn for developing the base of this package