Jump to content


Photo

Is it possible for the devs to add auto reconnect to mediaplayer ?


  • Please log in to reply
11 replies to this topic

#1 ian1095

  • Senior Member
  • 462 posts

+6
Neutral

Posted 26 April 2016 - 09:12

Currently if a stream being played from bouquets dips the connection to the server breaks and we have to change channel then change channel back again to connect once more.

 

Ive tried using Livestreamer rather than Gstreamer as this supports continuous-http but it wont work as mediaplayer doesn't support this and the same changing of channels and back again is still required.

 

This would be a great update if its possible and one many users would appreciate.

 

Ian.


Edited by ian1095, 26 April 2016 - 09:13.


Re: Is it possible for the devs to add auto reconnect to mediaplayer ? #2 ian1095

  • Senior Member
  • 462 posts

+6
Neutral

Posted 28 April 2016 - 09:14

I cant believe this is of no interest to the devs ?

 

Its one of the most annoying problems when streaming IPTV from bouquets.

 

It really cannot be difficult to fix as sometimes simply entering the mediaplayer plugin and then exiting it again causes the stream to auto restart,in the same manor as changing channel and then changing back again does.

 

Can someone please look into adding this enhancement ?

 

Ian.


Edited by ian1095, 28 April 2016 - 09:16.


Re: Is it possible for the devs to add auto reconnect to mediaplayer ? #3 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 30 April 2016 - 11:03

IPtv is not the main function of a sat-top-box. As long as it plays satellite, cable and terrestrial using the built-in tuners, it works, as fas as I am concerned. Everything additional, like media and IPtv is a nice extra but not core business. There are dedicated devices available for these purposes.


Edited by Erik Slagter, 30 April 2016 - 11:04.

* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Is it possible for the devs to add auto reconnect to mediaplayer ? #4 ian1095

  • Senior Member
  • 462 posts

+6
Neutral

Posted 30 April 2016 - 11:18

Maybe not at the moment, but as more and more providers are pairing their cards,IPTV is fast catching up in how users use a sat-box.

 

In fact I would go as far as to say that most users use Sat and IPTV from their boxes on a 50-50 basis.

 

This is also as time goes by, only going to increase.

 

Ian.



Re: Is it possible for the devs to add auto reconnect to mediaplayer ? #5 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 30 April 2016 - 11:23

If you want to mainly watch IPtv, you'd really better buy a dedicated internet player.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Is it possible for the devs to add auto reconnect to mediaplayer ? #6 ian1095

  • Senior Member
  • 462 posts

+6
Neutral

Posted 30 April 2016 - 12:29

So why go to the trouble of adding User Agents and Headers then to the Pli code then ? In fact why have IPTV streaming capabilities at all in the Pli image if this is how you think.

 

When a basic feature such as remaining connected to the stream doesnt work this problem practically renders all of your previous work regarding ITPV streams useless.

 

The mind boggles at how the Devs on here think sometimes.

 

Ian.


Edited by ian1095, 30 April 2016 - 12:32.


Re: Is it possible for the devs to add auto reconnect to mediaplayer ? #7 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 30 April 2016 - 13:01

Reconnect is not in all cases a very good idea. Some streams show a movie from beginning to end. If you reconnect to the stream the movie starts again from the beginning. I don't know whether this can be fixed at all.

Edited by betacentauri, 30 April 2016 - 13:01.

Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Is it possible for the devs to add auto reconnect to mediaplayer ? #8 ian1095

  • Senior Member
  • 462 posts

+6
Neutral

Posted 30 April 2016 - 13:07

Thats a shame betacentauri

 

Because streams that frequently stop when added to an Enigma2 box play perfectly well in VLC on the PC when you use the loop feature.

 

So this does show that auto reconnects are required.

 

Ian.

 

Re: Is it possible for the devs to add auto reconnect to mediaplayer ? #9 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 30 April 2016 - 13:11

Actually gstreamer auto reconnects up on tcp break (and this 3 times before giving it up) Trough is well that http timeout is a bit big , someone set 30 sec into servicemp3 for a reason if You reduce this You have faster a reconnect attempt.

 

Ok some sparse streams m3u8 like for example :

#SERVICE 4097:0:1:12:1:41:0:0:0:0:http%3a//rtmp.infomaniak.ch/livecast/tvm3/PAZ.m3u8:TVM3
#DESCRIPTION TVM 3

or same stream m3u8 

#SERVICE 4097:0:1:12:1:41:0:0:0:0:http%3a//rtmp.infomaniak.ch/livecast/tvm3/playlist.m3u8:TVM3
#DESCRIPTION TVM 3

Do have problems with interuptions

 

But:

 

It's the same on every pc using vlc or whatever player (inclusif ffmpeg based players on pc like mplayer)

It is even the same on a MacBookPro from safari . Which supports normally so what all live streams.

 

On the other hand the very same stream can be played trough rtmp whitout any problem. then the service link is :

#SERVICE 4097:0:1:0:0:0:0:0:0:0:rtmp%3a//rtmp.infomaniak.ch/livecast playpath=tvm3 swfUrl=http%3A//static.infomaniak.ch/livetv/playerMain-v4.2.9.swf?sTitle=&sVersion=4.2.9&sDescription= pageUrl=http%3A//livevideo.infomaniak.com/iframe.php?stream=tvm3&name=html5&player=922:rtmp TV M3
#DESCRIPTION rtmp TV M3

Ok I'm now well working with master-next image and gstreamer is at master head 1. 9.0.1.xx  . Just concerning hls and sparse streams there is a very great improvement by gstreamer 1.9.0.1 and above (ok it's in full development so a bug may raise) like we just had since a certain commit but bug report has been acknowledged and a new procedure to wait has some issues which cause a deadlock at race condition. While gstreamer was supposed to stop when changing to another channel iptv or even regular channel due to that new wait we where in one module stucked into a g_cond_wait loop while a mutex lock was on. off course segfault could occure.

 

But those works are now just at the adaptive streaming required by hls and a couple off other spare streams. dash and ...

 

@ian1095 Erik Slagter has well right when he say that the stb is not really made for live stream playing. Only the fact that due to the dvbapi and his limitation does require us to work asynchronous is on it a big problem. For live streaming and streaming in general.

 

However it works if the code is ok but the facts that we must work async make it verry difficult.



Re: Is it possible for the devs to add auto reconnect to mediaplayer ? #10 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 30 April 2016 - 13:14

Reconnect is not in all cases a very good idea. Some streams show a movie from beginning to end. If you reconnect to the stream the movie starts again from the beginning. I don't know whether this can be fixed at all.

On this point You're right, If You wan't to stream full movies. But that's more a thing which can be solved into player (for non live streams) .It is not an easy task however.



Re: Is it possible for the devs to add auto reconnect to mediaplayer ? #11 ian1095

  • Senior Member
  • 462 posts

+6
Neutral

Posted 1 May 2016 - 07:59

Thank You Christopher

 

One thing which still puzzles me though is the fact that entering the mediaplayer plugin,doing nothing,then exiting it again,often restarts a stopped stream ?

 

Something in the exit code is calling for the stream to reconnect. Its this simple fact that led me to believe that this could be fixed easily within the mediaplayer plugin itself ?

 

Ian.



Re: Is it possible for the devs to add auto reconnect to mediaplayer ? #12 ian1095

  • Senior Member
  • 462 posts

+6
Neutral

Posted 3 May 2016 - 08:09

Reconnect is not in all cases a very good idea. Some streams show a movie from beginning to end. If you reconnect to the stream the movie starts again from the beginning. I don't know whether this can be fixed at all.

But isnt a duration requested in the header ?

 

So of course as Live doesnt have this duration,then couldnt it simply be a case of if no duration found then auto reconnect ?

 

Or is this over simplifying things ?

 

Ian.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users