Your Time:
Our Time:
← Back to discussions

Delay to run the audio (HTTP Request returns Status Code 200 instead of 206)

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 1 reply, 1 voice, and was last updated 4 years, 10 months ago by Fem.

  • 2021-10-18 at 3:28 pm
    Support Expired
    #28469
    vipchristian
    Participant
    • Topics: 11
    • Replies: 13
    • Total posts: 24
    • Post count: 16

    Hello guys!
    I’ve already asked for support via Skype (unsuccessful) but I’ll leave my observation here.

    To summarize the problem:: Previously (MusicPlay version 4.2) the theme played the songs instantly, even before the audio was completely downloaded (which made the player super agile).
    In the most modern versions (including the current one) the player downloads the entire audio file and only then starts playing the song. (not good, especially if the audio is long or the client’s internet connection is slow.)

    Digging deeper: I looked at all the settings on my server, I ran several tests with the old themes and the new one on the same server and the only difference I found was the following.

    HTTPRange (partial download)

    Essentially, if you use the “Developer Tools” function in Google Chrome, we can see that in the old theme or even a concurrent theme, when playing an audio, the HTTP request returns a status code of 206 (This is a partial request. Images below)
    https://giro95.com.br/wp-content/uploads/2021/Screenshot-36.png
    https://giro95.com.br/wp-content/uploads/2021/Screenshot-37.png

    The newest version of the theme makes an HTTP request that returns the status code 200 (a normal request) which downloads the entire file and only then plays the audio. (Image below)
    Screenshot from https://www.aivahthemes.com/musicplay/album/monsta-bass/
    https://giro95.com.br/wp-content/uploads/2021/Screenshot-38.png

    Once the audio has already played, and you want to listen to it again. The theme loads it from the local cache, then with the correct request “206”. (Image below)
    https://giro95.com.br/wp-content/uploads/2021/Screenshot-39.jpg

    So, as you can see, I’ve been using the theme since version 4 and it was really good for me. But I would like to be able to update my theme as I already have several internal conflicts on the server for still using version 4.2.

    Hope you can fix this one day or even in a future version of the theme.

    I’m not a professional programmer but I believe the answer or at least the beginning of it is here: https://www.php.net/manual/en/function.readfile.php#86244

    Thanks for the Theme, it’s awesome!

    2021-10-19 at 2:45 pm
    #28472
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Hi vipchristian,
    Sorry for the inconvenience. We really appreciate you’re effort to summarize the problem with the latest version. We will take a closer look at it.

The topic ‘Delay to run the audio (HTTP Request returns Status Code 200 instead of 206)’ is closed to new replies.