Okay
  Public Ticket #3200813
Player not working with the cloudflare
Closed

Comments

  • Shahnawaz started the conversation

    When I enable the proxy on cloudflare, Player is not working, It's showing the below error.


    Uncaught TypeError: Failed to set the 'currentTime' property on 'HTMLMediaElement': The provided double value is non-finite.
        at HTMLDivElement.<anonymous> (iron-audioplayer.js:782:32)
        at HTMLDivElement.dispatch (jquery.min.js:2:43064)
        at y.handle (jquery.min.js:2:41048)


    please check and reply


  •  1,103
    Max replied

    Hi,

    The issue is related to your server that cant read the ID3 tags of the time duration. If you check by example one of your mp3 here: https://dev.uohnit.com/wp-content/uploads/2022/04/ON-THE-WAY-1.mp3

    You will see that even the native browser player does not show the total time duration. If the native browser player cant fetch the total time duration, then our player wont be neither.

    You will need to check this with your hosting provider or Cloudflare team why they prevent the MP3 to get the total time duration.



    Thanks,


    Max from the Sonaar.io Crew

  • Shahnawaz replied

    I think it is not a server issue because before Cloudflare everything was working fine but after Cloudflare attach it is showing this issue. 

    So, if I turn off Cloudflare DNS proxy then everything is working fine.

    I will also contact with the Cloudflare team for the solution.

    Thanks,

  •  1,103
    Max replied

    Sorry, I should have said that the issue looks related to your server or CDN, rather than saying its related to your server. Im not very familiar with this kind of issue.


    let me know how it goes

    Thanks,


    Max from the Sonaar.io Crew

  • Shahnawaz replied

    Hello Max,

    Thanks for you help, I got the solution

    This issue is resolved by adding this below line on htaccess

    SetEnvIfNoCase Request_URI .(?:gif|mp4|ogv|webm|mp3|js)$ no-gzip dont-vary