Skip to content

CyBear-Jinni/tizen_api

Repository files navigation

tizen

TV Remote for all mobile devices

How to use

  1. 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');
  });
}
  1. Set the selected TV
TizenHelperMethods.selectedTv = tvVar;
  1. 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