yashsingh1/xdaforums huggingface dataset:
[One (M7) Themes and Apps] TheBrilliantMistake:
Ok,

Here's a slightly updated version crude skin:

You can now 'hold' a button,,, on the initial press the IR Code will be sent, There is a 1000ms delay before repeats are sent, then each repeat should be 300ms interval

e.g.

Button Down ------> Send IR

Wait 1000ms -----> Send IR

Wait 300ms -----> Send IR

Wait 300ms -----> Send IR

Wait 300ms -----> Send IR

etc

By watching the volume +/- on my TV I can see that it's not as smooth as the real remote control, but if I make the repetition to (say) 200ms, it seems too fast for the URL / API technique to work and (seems) to start queuing the IR requests.... meaning that when you lift your finger off a button, the IR carries on transmitting (due to the buffering / queuing).

I've discovered other issues too - that I may / may not be able to resolve:

1) MouseUp / MouseDown events are inconsistent in Android, so I'm using TouchStart and TouchEnd events (works better)

2) TouchEnd is not always triggered (If you touch a button and hold it, then drag off the button, then release, then the TouchEnd is not triggered, causing the button to continue to send IR. IR is stopped the next time a TouchEnd is detected (just press another button 'cleanly')

3) Holding down a button only works properly in Chrome browser (not the default browser). I've implemented some script to disable the browser's context menu from appearing when a button is held down, but the default browser ignores this :(

I will try and work on fixing issue 2, but it's proving to be quite tricky to solve.

It's not clear how issue 3 will work out in an application webview (maybe context menu is disabled?)

Also, I've determined that the <img> tag is the ONLY viable tag to use for the button elements, because some buttons may require polygonal touch areas (round buttons, curved shapes etc). Since the only way to handle polygonal touch areas is with the usemap html attribute (only for IMG element) - the buttons HAVE to be IMG. Obviously, if a skinner only uses rectangular buttons, they are free to use other elements.

I'm also wondering if the 'window.location.href' technique is slow, could a http 'post' technique be faster?

I'm unsure what's going on behind the scenes... but maybe the browser is executing a whole load of stuff in preparation for a new URL (unnecessary overhead), when a 'post' would avoid the overhead?

I know the skin isn't very attractive or functional at the moment, but I believe the most important parts are getting genuine 'feel' and repetition working smoothly. If those don't work, then having a beautiful skin won't help.

I WILL try and add more buttons to the UI soon... it's just a lesser priority (imo) - do you agree?
[One (M7) Themes and Apps] privoxy1:
One could use svg for polygonal Buttons
[One (M7) Themes and Apps] TheBrilliantMistake:
Updated UI....

This will be the last post for a while, until I build out a more complete remote.

I like the idea of SVG, but need to check out the polygon hotspot stuff. It's not clear to me (yet) if a browser inherently knows the bounding polygon from the SVG, or if you still have to supply it separately. Also... SVG file sizes are pretty large for 'sexy' buttons (once all the shading and polish effects are applied).... I'll maybe try a couple and test the sizes. On the plus side of course, they're vector, so that offers other advantages (and again, nothing to stop a skinner choosing whatever format they like really).

Need to investigate changing the image on button press too (using SVG) and if that's possible or not (without significant JS)

I'll probably incorporate at least one svg button in the next version of the skin (just as a proof of concept).

Need to think about localisation too. For the moment, I'll use raster text in English only, as this is easier for me (and keeps the skin / html file simple).

The thing I like about using HTML is that it remains flexible for skinners and doesn't impact the engine. Just as long as the responsiveness is good, and the event handling issues can be resolved (button holding / dragging issues etc)
[One (M7) Themes and Apps] TheBrilliantMistake:
OK,

SVG appears to be working quite nicely, and the sizes are (so far) better than PNG, even with fairly complex shading etc...

So, I've attached an example skin with SVG (silver buttons) and PNG (black buttons) in the same skin... I looks like SVG takes care of the polygon issue too.

So far, SVG looks the much smarter option. Just need to figure out how to do alternate images for the button. I have a feeling this can be done in the SVG itself, but if not, I can probably script it easily... will test later.

SVG Scaling works perfectly too, making life very easy for skinners, as does SVGz (zip), which I'm using to reduce skin size.

So far so good!

Alas, I have other work to do now... will be back later.
[One (M7) Themes and Apps] din89pm:
Works really good for S4, thank you sooo much for showing support for s4. I got a suggestion, perhaps you can allow uses to create a remote layout and then save it.. If that costs alot of storage size or some issues or slows down the app its OKAY, I rather not spoil something that works well. And maybe one day you can sell the app in google market. Anyways, for now I would love to donate.. where is the donate option? :)
[One (M7) Themes and Apps] antifish:
Thanks for all your work! Working SVG sounds great :D

I agree that it firs should work flawless (including the repeat function) and then creating "beautiful" layouts.

I'm trying to create a new code-behind for sending codes now, to make the repeat function working from the html layouts direclty without the latency and also supporting S4 devices.

I'll send you an .APK with the optimized code when i have something ready.

If you would like to try, i could do you a special version which would import your remote.zip and display it in an webview inside my app?
[One (M7) Themes and Apps] antifish:
Thanks :)

The donate button / link is in the first post (where the download link is) :laugh:

It will go to the playstore as soon it is ready, will make it fully working first. And it will still be free then.

Yes i'm currenlty tring to include the custom remotes (they will be done with a HTML file), [MENTION=477835]TheBrilliantMistake[/MENTION] is currently making a "demo" layout and tries out things for a good remote, thanks to him again!

You can check his .rar files to see how its done and try this URL directly from your phone to try (should work with the S4 too, i dont have one so i cant test)

Demo Remote from [MENTION=5342308]0025[/MENTION]:

http://otrta.nibdev.com/URemotes/UEXXES8090/Remote_UEXXES8090.html
[One (M7) Themes and Apps] TheBrilliantMistake:
That would be excellent (esp the web view).

In theory the webview would be full screen, or just show the notification bar. I'm not sure how much control you have over the webview (disable pinch / zoom etc?).

I'm still checking out if a polygonal SVG has a polygonal or rectangular click area... I thought it was polygonal, but now I'm not so sure.

How will the user get from the webview back to configuration views? (menu button?)

For now, it would be useful if you hardcoded the webview URL to be file:///sdcard/otrta/skin/index.html is that possible?
[One (M7) Themes and Apps] din89pm:
Thank you, yes sorry I noticed that myself. I just didnt look closely :laugh:

I was looking at this app from HTC One itself. I was freaking impressed, thanks to HTC One's IR receiver + transmitter it makes this app godlike hahah. :good:
[One (M7) Themes and Apps] TheBrilliantMistake:
FAO Antifsh:

OK, I've attached a new skin...

New things:

1) When a key is pressed, it requests the 'repeat' API.

It's up to the app engine to implement the repeat functionality, but there should usually be a 'predelay'... i.e.

Send IR --->predelay (1000ms) ---> Send IR ----> delay(300ms) ---> Send IR ---> delay (300ms) etc etc

2) When a key is released, it requests the 'cancel' API.

Again, the engine must break the repeat cycle asap.

3) COOOL UI feature:

The UI can be split into 'panels'.... e.g. TV Panel, DVD Panel, AMP Panel etc. These are basically new layouts for each type of equipment.

The UI can define a 'panel switcher' buttons - these operate in the same way as a normal button (they can send IR) but they will also switch panels.

What does this mean?

Well, it means you can choose 'TV' and have IR automatically switch all your gear to TV use, but also automatically switch the layout for TV watching. When you want to watch a DVD, you can click the DVD switcher button and all your gear will change to DVD mode, and the layout change for DVD viewing!

Note: 'Switching panels' is done by the UI, but the 'switching equipment' stuff will need a macro.

Which now brings me on to a new issue... how to call a macro via API?

FAO Other Users:

Don't use this stuff - it probably won't work for you since it's using unreleased apk. You're free to play with it, just don't expect it to work.
[One (M7) Themes and Apps] tospace2006:
AOSP support soon?? :D
[One (M7) Themes and Apps] antifish:
Not until HTC releases drivers as binary. The is a new ir firmare file in the OTA 4.2.2, if someone want to reverse engineer it, go for it :D
[One (M7) Themes and Apps] tospace2006:
Haha I just read that it might be after the GE rom was released. Great work I'll be eagerly waiting for AOSP support :)
[One (M7) Themes and Apps] antifish:
i think the GE rom still dont have IR support.

As i think it would not be to hard to reverse engineer the CIR APK and the IR blaster firmware, if someone wants to give it a shoot -> let me know, and i propably can make it working with AOSP.

ATM i dont have the time to do it on my own...
[One (M7) Themes and Apps] antifish:
reading your signature, you are not using AOSP rom anyway? :laugh:
[One (M7) Themes and Apps] antifish:
Updated V2 Link.

Changes:

- A lot of new codebehind, should not change anything for you

- a sync-error fixed which could lead to a force close

- getting ready for the new layouts

let me know if you have any issues
[One (M7) Themes and Apps] whips:
How do one actually use this app as a remote? I was playing around with it and I see it can learn code and upload to the database etc, but how do you actually use as a remote similar to the TV app?
[One (M7) Themes and Apps] myvwrocks:
Effing awesome! Cant wait til my next trip worst buy. I was wondering how long it would takemto get noe of these.
[One (M7) Themes and Apps] antifish:
[MENTION=477835]TheBrilliantMistake[/MENTION] is currenty working on a HTML base layout which will then can be used inside the app.

Every user can than customize it to his need or do a totaly new skin/layout.

Until then, you can try the 0.5c version which can create custom remotes using a simple gridlayout and buttons(but has a old and bugy codebehinde) , or use the widgets on a homescreen with the V2 version.
[One (M7) Themes and Apps] pangiotis24:
why don't you ask the dev of this for permission to use his library?it's for xperia tablet z and it works on aosp so i hope it will work with htc one aosp with minimum or no effort at all
[One (M7) Themes and Apps] antifish:
Thanks, i will check if the HTC uses a similar blaster as the sony device. If yes, ill contact the dev :)
[One (M7) Themes and Apps] pangiotis24:
it's on cm now;)

i think you can use it for htc.the blaster is of the same type(uei ir blaster with the ability to learn codes);)

that's the lib http://review.cyanogenmod.org/#/c/45560/ or if you prefer it on github https://github.com/BuzzBumbleBee/lib_sony_ir

and thats the apk but your is far better anyway https://github.com/BuzzBumbleBee/android_packages_apps_SonyOpenIR
[One (M7) Themes and Apps] BBs19:
Hey, with the older version the "all off" function worked extremely fast, it just finished in under 5 secs. Now it takes like forever :( is that because the list got bigger or did you change something in the app?
[One (M7) Themes and Apps] eisteh:
GE ROM indeed doesn't come with IR support. That's a bit sad..
[One (M7) Themes and Apps] 1xinfusion:
Nikon code is having problems. Seems to force close the app no matter what.. help

Edit: the old app doesn't force close, is faster but missing widgets. I'm currently on 4.2.2 sense 5.0 HTC one

Edit 2: canon code fc as well
[One (M7) Themes and Apps] senfgurke:
You can change this.

Settings -» offcode pause

I set it to 75milli, works best for me.
[One (M7) Themes and Apps] antifish:
Will investigate that when im back from holidays
[One (M7) Themes and Apps] antifish:
In the old version, it was not guaranteed that the full code was sent using the all off function, the app waited the time you set in the settings after each code.

In the new version, the app waits exactly the time the blaster needs to send out the code. So it takes longer but is more reliable. Change the filter in setting to make it faster
[One (M7) Themes and Apps] Muhammad.Muayad:
"App is and will always be free, and i'll never add

adds

or something"

Not trying to be a grammar nazi, but its called "ad" NOT "add"

so you can replace the line with "App is and will always be free, and i'll never add

ads

or something"

THANK you very much for your work
[One (M7) Themes and Apps] antifish:
Okay ill change it after my holidays :)
[One (M7) Themes and Apps] BBs19:
Yeah but the problem is that there is no such setting with the newest version :)
[One (M7) Themes and Apps] senfgurke:
I'm sorry. I installed the newest version after I answered...

Gesendet von meinem HTC One
[One (M7) Themes and Apps] BBs19:
I tried to make the filter higher and lower, but it doesn't change anything in the speed.

I would still love to have that offcode pause function as optional setting :)

It was the best for trolling, worked every time :P
[One (M7) Themes and Apps] antifish:
Yes faster because less codes are send :)

As a couple of people requested a faster sendig, ill add an pause multiplikator to the settings, you will the be able to set it to something between 0.0 and 1.0 (1 = sleep time with current version) if it works for you, everythings fine (and fast again :) )
[One (M7) Themes and Apps] los1010:
Just curious about something I did see someone post codes for a PlayStation console on here for testing a while back I know the Xbox one is preloaded in the app but I would love to see the PlayStation one
[One (M7) Themes and Apps] ixrs:
Wow, this app just gets better and better.
[One (M7) Themes and Apps] c5satellite2:
Love the "all off", could we also get "all on"?
[One (M7) Themes and Apps] Nokiacrazi:
Will this work on fully stock 4.2.2?
[One (M7) Themes and Apps] Tetsumi06:
Considering the remote has no idea what state the device is in the on/off is simple the same code with the receiver deciding what it has to do when it detects the code.

----------------------o('_')o----------------------

Sent from an HTC One using xda app and Bulletproof TrickDroid ROM 8.0
[One (M7) Themes and Apps] antifish:
Updated V2 preview:

- Bugfix for the Canon / Nikon codes - no more force close (i hope)

- "all off delay factor" setting. You edit the wait factor between all off codes from 0.1 .. to 1 (1 = original).

i would not recommend to go below 0.5, otherwise the ir blaster will proapably "drop" your codes and they will not be sent.

sorry for no update this long time, had holidays :)
[One (M7) Themes and Apps] antifish:
If you mean Sense fully stock, yes.

Not on the Google Edition
[One (M7) Themes and Apps] :
Is this a copy of your app?

https://play.google.com/store/apps/...ontent=htc107282013&utm_campaign=free%20trial
[One (M7) Themes and Apps] antifish:
It has the same functionatly like the TV Terminator App (and there are two or three other apps which do the same in the playstore).

But i dont think these are codes from my (your :D) database.

At least the decompiled .apk does not look like it :)

Edit:

I would not care anyway
[One (M7) Themes and Apps] :
Ahh good. I just wanted to make sure, the guy is posting it on reddit like he is the first person to think of it and saying the other (Your's) has a bad interface. When his is no better
[One (M7) Themes and Apps] antifish:
Thanks for the info anyway!

Yeah the OTRTA gui is not the best and it can be complicated to use, but has more functionalities then just turning TVs off and on... Its just a hobby for me, i hope the custom layouts will be ready soon so it can really be used as a "remote"
[One (M7) Themes and Apps] :
To be honest, for me atleast I could never use a touch screen as a remote. It means having to look at the screen all the time because you can't feel the buttons.

So the interface right now is good enough for me :P
[One (M7) Themes and Apps] antifish:
You are right, i would never use the OTRTA app as a replacement for my TV remote, you cant use it "blind".

I use it when im abroad/in school etc, somewherr where i dont have the original remote for a device which i would like to control :)

If i had an AC or another easy to control dwvice, wherr you most of the time just turn or off, i would use the widget in the OTRTA app
[One (M7) Themes and Apps] FangorX:
Haha as soon as I read about the One's IR blaster, I figured someone would make an app like this. I work at Walmart and I just tried out the all-off function in the electronics department; the other employees were very impressed ;)

Thanks for the awesome app!
[One (M7) Themes and Apps] 0025:
I remember the Hotels where you need to pay, to get the Remote for the TV. This time is over now. :D
[One (M7) Themes and Apps] smarty2322:
looks cool
[One (M7) Themes and Apps] paul_59:
Didn't know that, neat trick
[One (M7) Themes and Apps] DoubleYouPee:
Why doesn't this work on my xperia zl? says no IR hardware found
[One (M7) Themes and Apps] antifish:
The current Sony IR api does not allow sending custom codes. Only codes from the original remote device database can be sent.

I know... FU sony :mad:
[One (M7) Themes and Apps] bellumus:
Love it
[One (M7) Themes and Apps] suku_patel_22:
Hope layout gets implemented soon
[One (M7) Themes and Apps] DoubleYouPee:
men, any idea how to control a Panasonic ac? I don't have the remote
[One (M7) Themes and Apps] antifish:
Buy a HTC ONE, best IR implemtation i think. It can LEARN codes, which the S4 doesnt. And the Sony devices can't send custom codes.

I remember i saw a property in the Sony IR API, "isCodeLearned", so maybe the Sony devices can learn codes too?

Anyway, if you dont have the remote, that doenst serves you...

Sorry
[One (M7) Themes and Apps] antifish:
OTRTA works now on the new 4.3 Rom Google Edition!! No new APK needed, the 4.3 Version of the GE ROM does support IR Blaster.

So i think there will be soon some 4.3 AOSP ROMs and if a good dev does a custom kernel + flashable .zip with IR libs/binarys, it (maybe) will work on any 4.3 AOSP ROM.

As i'm not a ROM developer, dont ask me when that will be. I only know it works on 4.3 GE :)
[One (M7) Themes and Apps] Bastaerd:
Intervigilium was already testing IR two weeks ago, so AOSP users shouldn't have to wait to long :)
[One (M7) Themes and Apps] DoubleYouPee:
yep xperia zl can learn.. however I haven't gotten it to work the time I tried. I was hoping someone knew that Panasonic AC uses same codes as Panasonic tv or other make. Sony app has pretty big database just no ACs.
[One (M7) Themes and Apps] antifish:
So the learned codes are saved somewhere localy on the device - there should be option to read them out (propably in a sqlite db) and save them on another device? Then there is a little chance that the otrta codes could be used with an xperia. But as i dont have one, i cant do any development without knowing how the xperia saves the learned codes... No dev did an IR app for the xperia?
[One (M7) Themes and Apps] id_mew:
Can I get this if I'm not rooted?

Thanks
[One (M7) Themes and Apps] antifish:
Yes, this does not need root rights. Only thing you have to do is enable unknown sources in the security settings, to be able to install an .Apk
[One (M7) Themes and Apps] gunza:
When I click on layouts, nothing happens. Is this normal for the new version? I'm running GE 4.3.
[One (M7) Themes and Apps] suku_patel_22:
Layouts hasn't been implemented yet..
[One (M7) Themes and Apps] eisteh:
Layouts are only available on the old official version 0.5
[One (M7) Themes and Apps] dillonr:
can i request a feature?

being able to send all commands (or all commands that have the name Power, for ex.) for a specific brand (samsung, panasonic, sony, lg..etc)

cheers
[One (M7) Themes and Apps] benblb:
Help?

I can't get this app (or Smart IR Remote) to learn the color codes for my LED strip using the built in receiver on my GPE One running 4.3. I started a thread and was hoping someone from this thread would be willing to take a look. Thanks.

-Ben

Link to thread:

http://xdaforums.com/showthread.php?t=2403818
[One (M7) Themes and Apps] bigrushdog:
Alrighty guys, this looks like a good thread for this.

Full HTC IR blaster support for 4.3 aosp builds

https://github.com/codefireXperimen...mmit/4a62c827fda0d79dc162685a9da3c6975fae633e

I have the TMobile variant in which IR mode and learn mode work. I'll be dropping builds under team name CodefireX as soon as i fix bluetooth. Or if you have tmobile and don't mind not having bluetooth for a bit, i can drop a build here.
[One (M7) Themes and Apps] dc4:
:eek:
[One (M7) Themes and Apps] RobBull69:
Nice to see you here BRD!
[One (M7) Themes and Apps] The5Venomz:
I have Tmo, I can test and I don't care about Bluetooth lol
[One (M7) Themes and Apps] eisteh:
IIRC someone asked about having custom names for buttons some time ago, like I have a "display" button to turn on and off the display of my Teufel decoder, there's no preset that suits what the button does (same applies for all the buttons labeled with the input etc.) will we have further possibilities to name buttons in future releases?
[One (M7) Themes and Apps] antifish:
Guys at the moment i'm really lacking the time to take this project further as i'm very busy in job.

If someone has the time and wants to take this project further (and have some skills to), send me a PM what you would like

to do with it and i can send you the source for the app.

Or should i upload it somewhere like github so anybody can make his own improvments?
[One (M7) Themes and Apps] bedoig:
One vote for github.
[One (M7) Themes and Apps] maxxhtc:
Can't I use this with arhd 12.3 then? If not what would be recommended for similar effect?

Thanks

/maxxy
[One (M7) Themes and Apps] Bastaerd:
+1
[One (M7) Themes and Apps] antifish:
It should run on every sense based rom
[One (M7) Themes and Apps] bigrushdog:
If you have no further financial interest in the project, good old github is the way to go. At the same time, you lose all control of the code. Yep. Push some code. And thanks for the m7 blaster fun!
[One (M7) Themes and Apps] antifish:
No financial interest in this project, was just for fun.

Ill put it on github tomorow, but no the source for the webservice / database. Ill keep it online anyway, but if someone wants to clone / modify the service, send me a PM
[One (M7) Themes and Apps] perosredo:
What does 'V2 Preview' mean? V2 Beta?
[One (M7) Themes and Apps] antifish:
More or less :) V2 is more stable and gui looks better, works on Samsung devices etc, the old version is "dead". But both versions are kind of alpha/beta

Gesendet von meinem HTC One mit Tapatalk 4
[One (M7) Themes and Apps] upstandingcitizen:
Thanks so much fish. The app sure gave me a ton of laughs. Best of luck!
[One (M7) Themes and Apps] antifish:
Here is the github repo

Be warned, code is very messy, no comments, etc. If you have questions, send me an email or a PM :laugh:

https://github.com/nibdev/otrta
[One (M7) Themes and Apps] bigrushdog:
Awesome. Forked. No worries. I love messy code. There's always gems hiding in the rough ;D Thanks again.
[One (M7) Themes and Apps] antifish:
Your welcome. I hope you find something usefull :D
[One (M7) Themes and Apps] Alexzander:
It works fine with my old Samsung 5 series LCD TV. I have the 32" model LE32B554M2WQXH and it worked witth the 6100 SERIES 6 codes (all of them) . Thanks a lot !
[One (M7) Themes and Apps] Bllooi:
I tried using this with an AOSP Rom and the app couldn't find the IR Blaster :(