Jump to content


Photo

OpenWebif [E2OpenPlugins]


  • Please log in to reply
1459 replies to this topic

Re: OpenWebif [E2OpenPlugins] #321 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 19 December 2011 - 23:14

All the "stream" needs to do is yield an .m3u "file" with the stream URL. Not very complicated...


Not entirely true.
With the original setup, the m3u contains an url with port 8001, served by a streamproxy, which connects to the webif (again), this time on port 80, with a stream request.
This request returns the stream parameters, and the streamproxy starts streaming.

A couple of days ago I've looked at how I could add streaming support to the webif, but found that it would take a lot of work to allow convertor/source elements to be used by the webif.
And the original streaming mechanism relies on that.
So instead, I decided to add direct stream support to e2, on port 8001.

Perhaps everybody should pull our recent internal e2 streamserver support.
This makes the job of the webif a lot easier, indeed, just provide an m3u with the stream url (or instead, why not a direct link to the 8001 url?)

Re: OpenWebif [E2OpenPlugins] #322 bacicciosat

  • Senior Member
  • 540 posts

+100
Excellent

Posted 20 December 2011 - 00:21

Uhmm i don't agree pieter,
I think OpenWebif have to be compatible with all e2 firmwares and streaming apis have to be compatible with third part aplications already available for Osx and Android platforms.

Re: OpenWebif [E2OpenPlugins] #323 tilleke

  • Senior Member
  • 50 posts

+5
Neutral

Posted 20 December 2011 - 00:47

+ 1

I'd prefer that you keep full compatibility with current APIs.

Re: OpenWebif [E2OpenPlugins] #324 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 20 December 2011 - 08:25

This makes the job of the webif a lot easier, indeed, just provide an m3u with the stream url (or instead, why not a direct link to the 8001 url?)


From what I see in the code, the streaming could even be done directly on port 80. The webif just parses the request and sends back the HTTP headers, and then transfers the socket handle (probably: duplicate the handle and let the original be closed by the Python GC) to the streaming interface. With the streaming code inside the same process, this is now possible, and it prevents the (ever so ugly) need to put the webserver's own hostname into a response. And one less port to deal with in firewalls and forwarding.
Real musicians never die - they just decompose

Re: OpenWebif [E2OpenPlugins] #325 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 20 December 2011 - 08:26

I think OpenWebif have to be compatible with all e2 firmwares and streaming apis have to be compatible with third part aplications already available for Osx and Android platforms.


There's no need to chose, you can use both. The old webif also works just fine with the new streamer.
Real musicians never die - they just decompose

Re: OpenWebif [E2OpenPlugins] #326 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 20 December 2011 - 22:53

indeed, the internal streaming server just replaces the old streamproxy (and as a bonus, it no longer relies on a particularly ugly part of the old webif).

Re: OpenWebif [E2OpenPlugins] #327 koivo

  • Senior Member
  • 69 posts

+6
Neutral

Posted 24 December 2011 - 08:16

Is it possible to check in the changes from post 314 or 315? With a new update the mistake comes back.

the webinterface doesn't show the et remote.
I have change the line 196 in main.tmpl from
#else if $box == "et9x00" or $box == "et9200":
to
#else if $box == "et9000" or $box == "et9200":

The result of cat /proc/stb/info/boxtype is et9000 and not et9x00 at my box with PLi image.


Edited by koivo, 24 December 2011 - 08:17.


Re: OpenWebif [E2OpenPlugins] #328 Happysat

  • Senior Member
  • 697 posts

+43
Good

Posted 26 December 2011 - 02:33

This makes the job of the webif a lot easier, indeed, just provide an m3u with the stream url (or instead, why not a direct link to the 8001 url?)


I did edit a bit arround and got streaming working thru openwebiface, to get it working open channels.tmpl and swap:

<a href='#' onClick="alert('Sorry function not yet implemented');return false">

With:

<a target="_blank" onclick="('$channel.ref');" href="http://<ip-dream>:8001/$channel.ref">

If the box is off (standby) you can select any channel to stream, when on only the current tuned service will stream.

Octagon SF8008 / TBS5530  DVB-S2/T2 T-85/1.50Mtr/3x90cm (53e 52e 51,5e 28e 25,9e 23e 19e 13e 9e 4e 1w 5w 14w)


Re: OpenWebif [E2OpenPlugins] #329 nobody9

  • Senior Member
  • 187 posts

+76
Good

Posted 26 December 2011 - 03:41

@Happysat,

thanks for the information.
Attached a Patch to stream channel from OpenWebif.

It´s not for the old api only for the new api.
It generates a stream.m3u with the needed information.



This makes the job of the webif a lot easier, indeed, just provide an m3u with the stream url (or instead, why not a direct link to the 8001 url?)

I did edit a bit arround and got streaming working thru openwebiface, to get it working open channels.tmpl and swap:
...
<a target="_blank" onclick="('$channel.ref');" href="http://<ip-dream>:8001/$channel.ref">

Attached Files



Re: OpenWebif [E2OpenPlugins] #330 nobody9

  • Senior Member
  • 187 posts

+76
Good

Posted 26 December 2011 - 03:55

@all,
attached the files put into /usr/lib/enigma2/python/Plugins and restart the gui.

It´s not for the old api only for the new api.
It generates a stream.m3u with the needed information.

Attached Files



Re: OpenWebif [E2OpenPlugins] #331 Happysat

  • Senior Member
  • 697 posts

+43
Good

Posted 26 December 2011 - 04:19

Wow thanks very fast work :)

Octagon SF8008 / TBS5530  DVB-S2/T2 T-85/1.50Mtr/3x90cm (53e 52e 51,5e 28e 25,9e 23e 19e 13e 9e 4e 1w 5w 14w)


Re: OpenWebif [E2OpenPlugins] #332 dylantje

  • Senior Member
  • 2,406 posts

+19
Neutral

Posted 26 December 2011 - 11:43

@all,
attached the files put into /usr/lib/enigma2/python/Plugins and restart the gui.

It´s not for the old api only for the new api.
It generates a stream.m3u with the needed information.


And is the than stream working?
when it is in the updates?

Mut@nt HD51 with PLi 7.2 release - Cccam, PLi HD skin, HDD-1,5TB, USB DVB-T,4GB usb backupsuite. AB: harmony smartcontrol 

XTrend ET6500 with PLi 7.2 release - PLi HD skin, Stream remote, 2GB usb backupsuite. AB: Harmony 650 , 1x zgemma h2h with Cccam.

Met een USB Dvb-T Triax 78cm, 2x ALPS quatro LNB /19,2 en 23,5, SAB GSO-multiswitch: 4 sat. in 12 out. 

 


Re: OpenWebif [E2OpenPlugins] #333 andyblac

  • Senior Member
  • 465 posts

+18
Neutral

Posted 26 December 2011 - 12:38

justed noticed that the remote control does not support long button presses or the option to turn off grab screen screen, is this something that is WIP ?, or did it just get forgot about ?

Edited by andyblac, 26 December 2011 - 12:39.


Re: OpenWebif [E2OpenPlugins] #334 nobody9

  • Senior Member
  • 187 posts

+76
Good

Posted 26 December 2011 - 13:30

@MiLo,
attached patch for OpemWebif

clean up controller/file
fix duplicate request finish error
fix also running under python 2.7

please submit.

thanks

Attached Files



Re: OpenWebif [E2OpenPlugins] #335 nobody9

  • Senior Member
  • 187 posts

+76
Good

Posted 26 December 2011 - 14:37

@MiLo,

add patch to add /web/stream.m3u and /web/streamts.m3u to old api.
Tested with iDreamX.
please submit
thanks

Re: OpenWebif [E2OpenPlugins] #336 Happysat

  • Senior Member
  • 697 posts

+43
Good

Posted 26 December 2011 - 14:42

It would be nice if there was a button/function to stream the current service from the current tab :)

Octagon SF8008 / TBS5530  DVB-S2/T2 T-85/1.50Mtr/3x90cm (53e 52e 51,5e 28e 25,9e 23e 19e 13e 9e 4e 1w 5w 14w)


Re: OpenWebif [E2OpenPlugins] #337 nobody9

  • Senior Member
  • 187 posts

+76
Good

Posted 26 December 2011 - 15:02

@MiLo,
remove old patch
simplify the code new patch

ts.m3u
stream.m3u
video.m3u

please submit
thanks

@MiLo,

add patch to add /web/stream.m3u and /web/streamts.m3u to old api.
Tested with iDreamX.
please submit
thanks


Edited by nobody9, 26 December 2011 - 15:04.


Re: OpenWebif [E2OpenPlugins] #338 nobody9

  • Senior Member
  • 187 posts

+76
Good

Posted 26 December 2011 - 15:44

@MiLo,
removed the old version.
the last version for today.
correct some typing errors and add streamcurrent.m3u


@MiLo,
remove old patch
simplify the code new patch

ts.m3u
stream.m3u
video.m3u

please submit
thanks


@MiLo,

add patch to add /web/stream.m3u and /web/streamts.m3u to old api.
Tested with iDreamX.
please submit
thanks

Attached Files



Re: OpenWebif [E2OpenPlugins] #339 nobody9

  • Senior Member
  • 187 posts

+76
Good

Posted 26 December 2011 - 16:46

Hi,

i have analized the request from the old streamproxy
http://127.0.0.1/web/stream?StreamService=1:0:1:2B:2:85:C00000:0:0:0:

the result (wrap lines for better to read):

=NO STREAM +0:0:pat,8ff:video,900:audio,8ff:pcr,20:text
		   +0:0:pat,8ff:video,900:audio,8ff:pcr,20:text
		   +0:0:pat,8ff:video,900:audio,8ff:pcr,20:text
		   +0:0:pat,6d:pmt,8ff:video,900:audio,901:audio,903:audio,8ff:pcr,20:text
		   +0:0:pat,6d:pmt,8ff:video,900:audio,901:audio,903:audio,8ff:pcr,20:text
		   +0:0:pat,6d:pmt,8ff:video,900:audio,901:audio,903:audio,8ff:pcr,20:text
the connection are remains open.

will we implement it ?

Re: OpenWebif [E2OpenPlugins] #340 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 26 December 2011 - 17:02

Hmm, streaming works fine in Windows, but I can't get VLC to play it directly on Ubuntu.

In Ubunut, when using firefox, clicking on the stream icon starts VLC like it should, but VLC comes and dies immediately without telling why it just quit. If I save the .m3u link to a folder and double-click that, it starts VLC and the stream plays just fine. It behaves the same on the original webinterface, so it's got something to do with my setup. Anyone been able to get this right under Ubuntu or something that looks enough like it?
Real musicians never die - they just decompose


12 user(s) are reading this topic

0 members, 12 guests, 0 anonymous users