SocketException with rtmpe. Help please ! | Page 3

Discussion in 'OnlineVideos' started by titof, October 20, 2010.

  1. offbyone
    • Team MediaPortal

    offbyone Development Group

    Joined:
    April 26, 2008
    Messages:
    3,981
    Likes Received:
    2,704
    Gender:
    Male
    Location:
    Stuttgart
    Ratings:
    +3,303 / 3
    Home Country:
    Germany Germany
    Show System Specs
    I am guessing that the server is simply taking it's time to respond on the first connect. Our timeout is now 5 seconds for that. I could set it higher, but this also means longer waiting on failed connections :( So after 5 seconds we assume no answer and disconnect. If you start the same video again, the server probably remembers the client connection (e.g. by IP) and responds earlier this time or another time. You can try to set the timeout higher (find the 5000 in the rtmp class and up it to like 60000 for a minute).



    I can test your dll in the evening.
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. titof

    titof Portal Pro

    Joined:
    March 3, 2008
    Messages:
    2,248
    Likes Received:
    63
    Ratings:
    +63 / 0
    Home Country:
    France France
    Re : Re: SocketException with rtmpe. Help please !

    I already tried that but it's no change.

    What is weird is that with rtmpdump it works every time. I can run ten times, each time he answers OK.

    Perhaps a problem with the proxy on 127.0.0.1 ? Or the port is blocked ?

    I'll try disabling the firewall and antivirus ...

    EDIT : Same result with no firewall and no antivirus
     
  4. offbyone
    • Team MediaPortal

    offbyone Development Group

    Joined:
    April 26, 2008
    Messages:
    3,981
    Likes Received:
    2,704
    Gender:
    Male
    Location:
    Stuttgart
    Ratings:
    +3,303 / 3
    Home Country:
    Germany Germany
    Show System Specs
    Just tested your sites. Works pretty nice!
    I could (again) not reproduce the aborting thread. But also here sometimes the buffering would not start and would work on the second try. (We might have to accept that ...) It also happens on other sites with rtmp connections.

    I committed another fix which prevented the timeout field value from beeing used correctly (it was overriden...).
     
  5. titof

    titof Portal Pro

    Joined:
    March 3, 2008
    Messages:
    2,248
    Likes Received:
    63
    Ratings:
    +63 / 0
    Home Country:
    France France
    Re : Re: SocketException with rtmpe. Help please !

    Ok, so, you also have this log : "failed to read RTMP packet header" ?

    I test with Desperate Housewives, or "Les bleus", because they are big videos.

    Same problem with your last commit.

    So, I think it's acceptable as it, I will not take all your time !! :)

    Many thanks for your help, very nice ;)

    I'll get back to when I finished to see if it is possible to integrate my sites as standard.

    By !
     
  6. offbyone
    • Team MediaPortal

    offbyone Development Group

    Joined:
    April 26, 2008
    Messages:
    3,981
    Likes Received:
    2,704
    Gender:
    Male
    Location:
    Stuttgart
    Ratings:
    +3,303 / 3
    Home Country:
    Germany Germany
    Show System Specs
    "failed to read RTMP packet header" is logged after the timeout elapsed when trying to read a new rtmp package. Yes, I have them as well, not very often, but regularly ;)
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!