-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WebInterface] /grab command is broken #23
Comments
Ok, after further investigation problem exists only with OE 2.6 image (Dreambox One). Grab command gets response, but only OSD us visible (if there is any). Video is not visible. Screenshot in web application works as expected. |
DreamOS for One has version 4.4. You can get it with ip:port/web/about |
Not sure I follow you. |
DreamOS will not use grab anymore in the future. So, I showed you a way to identify DreamOS' version and call the correct url. That's a simple if. |
Thanks @dre. Not really sure why you decided to make breaking change. I realize grab was never part of the enigma2 API to begin with, but plenty of clients use it. |
I didn't decide anything. But instead of discussing it's often easier to accept the situation and implement workarounds. |
:) Makes sense. |
After checking enigma2 and webinterface sources I found that neither /web/about or /web/deviceinfo contain any info about OE version. This information is available only in OpenWebif. |
We cloud make /grab an alias to /screenshot to work around this for backwards compat. |
If I may, I would propose additional feature request. This is actually another issue, but I didn't wan't to push my luck. |
DISCLAIMER: My dreambox is old and cannot run new webinterface, so there is no way to test this. I'm reporting this based on a code review and user experiences.
In a recent PR a34f4b2 /grab command was renamed with /screenshot (and some parameters changed).
My python is weak but as far I can see you did keep loadCompat overload available but this is never called in current implementation (default handler calls 'load'), and /grab controller is no longer working.
Please, do correct me if I'm wrong. Like I said, I'm reporting because users of my mobile app cannot use Screenshot command anymore on new Dreambox 900 UHD. You can see command here
https://github.com/shaxxx/EnigmaWeb.Dart/blob/9e7590c06bf72ea06015db63540ff763693ea882/lib/src/commands/screenshot_command.dart#L31
Same thing is used in webbouqueteditor plugin in this repository.
enigma2-plugins/webbouqueteditor/src/web-data/tools.js
Line 1066 in fc6144c
Now, can you please make /grab command available again?
The text was updated successfully, but these errors were encountered: