OpenWebif [E2OpenPlugins]
Re: OpenWebif [E2OpenPlugins] #141
Posted 18 November 2011 - 20:27
opkg install python-json
@Camping: ZGemma H.2S, Technisat Multytenne 4-in-1 @Home: Edision Mini 4K, Wave Frontier T55, EMP Centauri EMP DiSEqC 8/1 switch, 4x Inverto Ultra Black single LNB
Re: OpenWebif [E2OpenPlugins] #142
Re: OpenWebif [E2OpenPlugins] #143
Posted 19 November 2011 - 09:40
Hi.. i haven't read this post for a while... and you write a lot!
@homey
good to see you here and partecipate to this project
About cheetah templates i think they are really great! As you saw they are a lot of faster than the original web if. And they are reach of features, you can do really many things inside your templates.
If you haven't yet tested it. With cheetah compiler the .tmpl code will be directly translated in python code. At the end, when we compile it, we can enjoy a great speed up in performance.
But you're right. When we play with javascript the JSON is like a must. It's faster than XML in both server and client side.
I just committed some code to let you to use json from javascript: https://github.com/E.../commits/master
Now every xml webapi (that i'm still implementing on the line of original web if) could be generate a json output using http://boxip/api/ instead of http://boxip/web/
An example:
http://172.16.1.101:8088/web/vol
<e2volume> <e2result>True</e2result> <e2resulttext>Status</e2resulttext> <e2current>0</e2current> <e2ismuted>True</e2ismuted> </e2volume>
http://172.16.1.101:8088/api/vol
{"current": 0, "message": "Status", "result": true, "ismute": true}
About the streaming i thought a little about that... and i can't see many solutions
- HTML5
HTML5 finally introduce the capability to stream a video from your HTML code. Great! But HTML5 say only how to use the "<video /> tag". Doesn't speak about the content (mean as formats and codecs). So every browser is different. Someone use H264, someone use VP8. Someone can read a .ts, someone need an .avi or similar and need to know the file size before. Someone need a small playlist with a series of .ts links (like ios and android honeycomb). Really a mess.
On our stb we must use the video with original codec. Because the CPU doesn't permit us to reencode the video. Probabilly we can only change the format to the video.. but with a large usage of resources
- FLASH
As i can read on the web it work only with H264. If we are lucky we can only play some HD stream.. but what we can do with an SD MPEG2 stream?
And flash will not work on many mobile devices.
- VLC PLUGIN
This seem to be the only solution.
Sincerly i don't like it. You need to install a plugin. It won't work on mobile devices. And it work only with some browser/platform combinations.
Any idea?
If possible don't break currently mobile apps available, like DreamDroid for Android or other apps for Apple device....
Mass storage: internal SATA-II HDD 1TB WD10EACS GreenPower 5400rpm
Mass storage: external USB pen drive 2GB
Firmware: OpenPLi kernel 3.x.x
Tuner A: AVL2108 (DVB-S2) HotBird 13E
Tuner B: AVL2108 (DVB-S2) HotBird 13E
Tuner C: AverMedia A867 (DVB-T HD) (AF9035 + MXL5007T)
TV: plasma PANASONIC GT30 fullHD
Audio: PCM through HDMI (no Dolby decoder)
Re: OpenWebif [E2OpenPlugins] #144
Re: OpenWebif [E2OpenPlugins] #145
Posted 19 November 2011 - 13:32
If possible don't break currently mobile apps available, like DreamDroid for Android or other apps for Apple device....
Yes.. keep "api compatibility" with original webif is one of our purpose.
But actually original webif expose 73 web api.. openwebif only 18
So for now client applications couldn't work... but with some patience they will do
Re: OpenWebif [E2OpenPlugins] #146
Posted 19 November 2011 - 14:03
So I had finally some time this morning to develop some stuff.
I've created some screens and stuff:
- I've created an feed containing volume, mute status, current channel and standby mode (using skamans json api)
- This feed is used in javascript and fetched every 15 seconds to update the volume control and sets current channel-name in the header
- A simple Power-Control Screen for restart and power on/off buttons
- An experimental bouquet screen to watch channellists. The HTML Table is created via javascript on the client completly based on the json channellist feed (also json api from skamans). The Full Channellist loads in about 2 seconds now, instead 5-6 when using the old method where the box has to render HTML completly with cheetah tpl engine.
- Movielist Screen already finished days ago.
- Currently working on "Send Message" and Sreenshot Screens which should be also finished an hour or so.
Re: OpenWebif [E2OpenPlugins] #147
Re: OpenWebif [E2OpenPlugins] #148
Re: OpenWebif [E2OpenPlugins] #149
Re: OpenWebif [E2OpenPlugins] #150
Posted 19 November 2011 - 21:54
Thanx for the great work.
Attached Files
Re: OpenWebif [E2OpenPlugins] #151
Re: OpenWebif [E2OpenPlugins] #152
Posted 19 November 2011 - 22:10
This is a development thread, where the developers are discussing technical issues and making design choices.
A lot of functionality is still missing, so it does not look like the developers are sitting here not knowing what to do next
Perhaps someone could start a new thread with wishes and feature requests.
Re: OpenWebif [E2OpenPlugins] #153
Re: OpenWebif [E2OpenPlugins] #154
Re: OpenWebif [E2OpenPlugins] #155
Re: OpenWebif [E2OpenPlugins] #156
Re: OpenWebif [E2OpenPlugins] #157
Re: OpenWebif [E2OpenPlugins] #158
Re: OpenWebif [E2OpenPlugins] #159
Posted 20 November 2011 - 15:22
Just a suggestion is it possible to put a feature in this openwebif, that allows you to update your box?
Nice feature but this is not useful in all images as they dont have built-in update system (OpenPLi is an exception of course).
Edited by Taykun345, 20 November 2011 - 15:22.
Matrix10 MH-HD2 skin modification by me: https://github.com/B...-MX-HD2-OpenPli
MetrixHD skin modification by me: https://github.com/T...xHD-WPstyle-mod
Slovenian translation for OpenPLi E2: https://github.com/T...ion-for-OpenPLi
Re: OpenWebif [E2OpenPlugins] #160
Posted 20 November 2011 - 15:37
Just a suggestion is it possible to put a feature in this openwebif, that allows you to update your box?
Nice feature but this is not useful in all images as they dont have built-in update system (OpenPLi is an exception of course).
A "package manager" inside the webif could still be an interesting feature (but not the most important for now).
If someone want implement it please contact me. I already have some python code (from other projects) who parse the packages list without wrap opkg command line tool. We can recycle that code if necessary.
Otherwise i can do it but only after finish all web apis
8 user(s) are reading this topic
0 members, 8 guests, 0 anonymous users