Jump to content


Photo

Alternative Channels Saga, Part 2: OpenWebif support

streaming alternative channels OpenWebif

  • Please log in to reply
9 replies to this topic

#1 macnuts

  • Senior Member
  • 420 posts

+14
Neutral

Posted 4 August 2012 - 02:15

At first glimpse, the OpenWebif does not support alternative channels at all.
[list]
[*]Zapping does not work.
[*]Epg cannot be displayed.
[*]No streaming.
[/list]
I managed to overcome those problems, but I am not sure if my solution does not break anything else. You are invited to test it. I tested it myself a bit and did not found any regression bugs, but who knows.

I tested streaming with VLC, this solution does not work for Windows Media Player for some reason. I did not test any other player.

As I am not a python expert, I describe below what I corrected, someone may find a better python-way maybe.

For the first two issues above, the problems are quotation marks in the alternative channel reference string:

1:134:1:0:0:0:0:0:0:0:FROM BOUQUET "alternatives.tvp1_hd.tv" ORDER BY bouquet

Those quotation marks ruin the generated html layout, so javascript onclick handlers are not invoked.
I corrected it by wrapping the 'ref' property with quote/unquote. The layout is OK, and both zapping and epg started to work. And those quote/unquote - that can break the code somewhere (although it seems to work well).

Next, after the epg started to work, I had to correct the picons code. I followed the lovely solution created by littlesat (great work, btw). I could not refer to the new alternatives tools directly as other images may lack it.

Streaming needed one step of redirection for "1:134:*" service references, I followed the pattern from Navigation::playService.

Regards.

Attached File  OpenWebif_patch_v_0_0.tar.gz   1.58KB   14 downloads

Re: Alternative Channels Saga, Part 2: OpenWebif support #2 littlesat

  • PLi® Core member
  • 48,968 posts

+523
Excellent

Posted 4 August 2012 - 09:00

Wy didn't you use the new Tools.Alternative here... see the example in Picon.py? This reduces duplicate code anywhere were the alternatives stuff is buggy. I think in the same tool we coud add a function to get the best service reference.

But I cannot change the WebIf itself.... So someone else have to pick this up...

Edited by littlesat, 4 August 2012 - 09:02.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Alternative Channels Saga, Part 2: OpenWebif support #3 macnuts

  • Senior Member
  • 420 posts

+14
Neutral

Posted 4 August 2012 - 09:18

Next, after the epg started to work, I had to correct the picons code. I followed the lovely solution created by littlesat (great work, btw). I could not refer to the new alternatives tools directly as other images may lack it.


Wy didn't you use the new Tools.Alternative here... see the example in Picon.py? This reduces duplicate code anywhere were the alternatives stuff is buggy. I think in the same tool we coud add a function to get the best service reference.

But I cannot change the WebIf itself.... So someone else have to pick this up...


I love your new Tools.Alternative, but it is OpenPli specific, I am afraid. And OpenWebif is supposed to run on multiple images.

Regards.

Re: Alternative Channels Saga, Part 2: OpenWebif support #4 littlesat

  • PLi® Core member
  • 48,968 posts

+523
Excellent

Posted 4 August 2012 - 10:00

I love your new Tools.Alternative, but it is OpenPli specific

Other images currently likely based on OpenPli can adapt it.... So I suggest this should not be the issue here. For the time being you can download it yourself from our sources. Open it on you browser so you see the code and click with the right mouse button on raw to download it.

I suggest there are still many places in Enigma2 where alternatives were not correctly covered....

But still the WebIf is E2Openplugins and not OpenPli....

Edited by littlesat, 4 August 2012 - 10:33.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Alternative Channels Saga, Part 2: OpenWebif support #5 macnuts

  • Senior Member
  • 420 posts

+14
Neutral

Posted 4 August 2012 - 14:46

Here comes better solution using Tools.Alternatives module... ;)

Note, that fix in stream.py changing group service reference into best playable one is temporary. When I correct the 8001 streaming problem, that fix will not be necessary (playing m3u file ends in streaming from 8001 port).

Regards.

Attached File  OpenWebif_patch_v_0_1.tar.gz   1.54KB   14 downloads

Edited by macnuts, 4 August 2012 - 14:46.


Re: Alternative Channels Saga, Part 2: OpenWebif support #6 littlesat

  • PLi® Core member
  • 48,968 posts

+523
Excellent

Posted 4 August 2012 - 15:29

Please note I cannot commit that... The best what you can do is go to here: https://github.com/E2OpenPlugins and suggest your patch as improvement....

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Alternative Channels Saga, Part 2: OpenWebif support #7 SpaceRat

  • Senior Member
  • 991 posts

+62
Good

Posted 22 September 2012 - 17:02

OpenWebIf is still unusable with Alternatives though obviously a fix exists ...
I have applied the patch above and it fixes a lot of the problems OpenWebIf has with Alternatives, but it breaks whenever something less important gets fixed (or broken) in OpenWebIf and there is a new version on the feed.
1st box: Vu+ Ultimo 4k 4xDVB-S2 FBC / 2xDVB-C / 1.8 TB HDD / OpenATV 6.2
2nd box: Gigablue Quad 4k 2xDVB-S2 FBC / 2xDVB-C / 1.8 TB HDD / OpenATV 6.2
testing boxes: Vu+ Duo² + AX Quadbox HD2400 + 2x Vu+ Solo² + Octagon SF4008
Sats & Pay-TV: Astra 19.2°E + Hotbird 13°E with Redlight / SCT HD / SES Astra HD- / Sky V14 / 4th empire propaganda TV
Card-Server: Raspberry Pi + IPv6-capable oscam
Router: Linksys WRT1900ACS w/ LEDE + Fritz!Box 7390

Re: Alternative Channels Saga, Part 2: OpenWebif support #8 macnuts

  • Senior Member
  • 420 posts

+14
Neutral

Posted 22 September 2012 - 17:07

I'll try to produce proper patch that could be incorporated into webif project, but I've no time to do it yet...

Re: Alternative Channels Saga, Part 2: OpenWebif support #9 SpaceRat

  • Senior Member
  • 991 posts

+62
Good

Posted 22 September 2012 - 17:14

I'll try to produce proper patch that could be incorporated into webif project,

That would be cool, because it's my top 2 annoyance in Enigma2.

Top 1: Freeze when accessing SMB shares after the server restarted
Top 2: No Alternatives in OpenWebIf
Top 3: No usable permanent timeshift
1st box: Vu+ Ultimo 4k 4xDVB-S2 FBC / 2xDVB-C / 1.8 TB HDD / OpenATV 6.2
2nd box: Gigablue Quad 4k 2xDVB-S2 FBC / 2xDVB-C / 1.8 TB HDD / OpenATV 6.2
testing boxes: Vu+ Duo² + AX Quadbox HD2400 + 2x Vu+ Solo² + Octagon SF4008
Sats & Pay-TV: Astra 19.2°E + Hotbird 13°E with Redlight / SCT HD / SES Astra HD- / Sky V14 / 4th empire propaganda TV
Card-Server: Raspberry Pi + IPv6-capable oscam
Router: Linksys WRT1900ACS w/ LEDE + Fritz!Box 7390

Re: Alternative Channels Saga, Part 2: OpenWebif support #10 SpaceRat

  • Senior Member
  • 991 posts

+62
Good

Posted 23 September 2012 - 12:04

BTW: I noticed your patch doesn't fix the timers page of the OpenWebif (Can't edit/delete/toggle timers with recordings on channels with alternatives).
I played around with it a bit and was able to apply changes similar to yours and in the end was able to delete and toggle those timers. The only problem was in editing timers, because the changes lead to the web interface not recognizing the previous channel of the recording. When opening the edit dialog, they all appeared to be on the first channel of the bouquet. They were correctly saved when one manually re-adjusted the channel, but it was still some kind of annoyance left.
1st box: Vu+ Ultimo 4k 4xDVB-S2 FBC / 2xDVB-C / 1.8 TB HDD / OpenATV 6.2
2nd box: Gigablue Quad 4k 2xDVB-S2 FBC / 2xDVB-C / 1.8 TB HDD / OpenATV 6.2
testing boxes: Vu+ Duo² + AX Quadbox HD2400 + 2x Vu+ Solo² + Octagon SF4008
Sats & Pay-TV: Astra 19.2°E + Hotbird 13°E with Redlight / SCT HD / SES Astra HD- / Sky V14 / 4th empire propaganda TV
Card-Server: Raspberry Pi + IPv6-capable oscam
Router: Linksys WRT1900ACS w/ LEDE + Fritz!Box 7390





Also tagged with one or more of these keywords: streaming, alternative channels, OpenWebif

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users