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
Video element: add support for HTTP Live Streaming playlist #402
Comments
This line adds the URL to the player: https://github.com/openhab/openhab.android/blob/master/mobile/src/main/java/org/openhab/habdroid/ui/OpenHABWidgetAdapter.java#L554 It adds http://openhab/proxy?sitemap=test.sitemap&widgetId=0100 which returns (in FF) But when I hardcode on of the URLs you mentioned here than it works. So is this more a openhab server problem? |
Very exciting to know that it can work. |
It just opens the URL it gets from the rest api |
The sitemap REST API ? |
How does the basic ui access videos? Directly or through oh proxy? |
Basic UI is using the proxy except when encoding is set to HLS.
On my side, I can change the REST API. |
When we can get the configured url from the rest api, I can change the android app. |
I submitted the PR for the REST API change: eclipse-archived/smarthome#4412 |
Does oh 2.1 support item in a video element? I'm getting the following error: Items: Sitemap: Error: |
The url= is mandatory in the video element and must contain a default url in case the item is not set. |
For information, if I try |
If I disable the proxying, the video is rendered. It looks like the proxying generates problems with the openHAB app. I don't really know why it is done lkie that (proxy) and if it makes sense for video. |
@kaikreuzer : can you please remind us why we are proxying all images and videos ? It seems to be the source of problems... |
@mueller-ma : I have now an Android dev env, I can work on this one if you like. |
Sure, if you want. |
@mueller-ma : I have a first and stupid problem. My Android emulator is running openHAB app but is unable to connect to any openHAB server on my local network. I just read that the emulator is in fact hidden behind a firewall. Can you please explain what I have to do to connect to any local openHAB server, like the server I am running from Eclipse ? |
I have the same problem, but mostly I use my physical tablet to run apps. |
@digitaldan : what's your solution ? If I use my tablet, the dev app will be installed on my tablet and replace the app installed from the Hoogle store? |
Yes |
REST API change is now merged. |
Would it be possible to get short explanations on how the app is handling wiidget updates and where is the entry point in the code for the handling of these update events ? Is SSE used ? |
I don't know it either, but you could start with OpenHABWidgetListFragment line 306 |
I want to understand how is worling the app and how the update from server are handled. |
The REST API fix is now available in all OH snapshots. |
Fixes openhab#402 Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Please note I opened issue #417 for the problem with the display of the file smarthome.mp4. |
Please add support for HTTP Live Streaming playlist.
As it is working in Chrome on Android, I suppose it could work in the app too.
You can see how it was easy to update Basic UI and Classic UI: eclipse-archived/smarthome#4386
The general idea is to bypass the proxying and to use a particular media type.
The text was updated successfully, but these errors were encountered: