Reputation: 75
is it possible to make tv remote in flutter?
I want to build tv remote in flutter which can connect with any tv using Bluetooth or WIFI connection.
Upvotes: 0
Views: 2590
Reputation: 2218
You can use ir_sensor_plugin
for sending IR Commands.
// Eg code for sending ok button for LG tv
Future<void> okButton() async {
const String okPattern =
'0000 006C 0022 0002 015B 00AD 0016 0016 0016 0016 0016 0041 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 0016 0016 0041 0016 0041 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0041 0016 0016 0016 0016 0016 0016 0016 0041 0016 0016 0016 0041 0016 0041 0016 0016 0016 0041 0016 0041 0016 0041 0016 0016 0016 0041 0016 05F7 015B 0057 0016 0E6C';
await IrSensorPlugin.transmitString(pattern: okPattern);
}
You can get IR commands for each device from this website
You can use upnp
package, refer this repositoryy
Upvotes: 1