tizen_api 1.0.11
tizen_api: ^1.0.11 copied to clipboard
Control your Samsung Tizen TV, written in pure dart native. Trying the example project is highly encouraged :)
tizen #
TV Remote for all mobile devices
How to use #
- 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);
Test the example app #
The example is TV remote app and is very fun to test.
You should to try it up with your TV.
Thanks #
Thanks @shaharhn for developing the base of this package