• Resolved Mr Saeed Miri

    (@saeedmiri)


    Hi
    i have problem with dynamic load js , this is very good options in your plugin, But when it is activated player cant play video 1 sec or 2 sec paly then stop.

    i read your doc about performance-preferences-explained and web-components.esm.js , i use wp rocket last version and add your js to exclude but player break and not work after this. I had to disable this option to work properly. I like to use this option because of the small number of files loaded on the page. . .

    Please advise what should be done to solve this problem.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Mr Saeed Miri

    (@saeedmiri)

    sorry, i forget say this, in mobile device video cant play smooth for example please see this video in this adress :

    https://ssa.co.ir/%D8%A8%D8%B1%D8%AC-%D8%B1%D9%88%D8%B4%D9%86%D8%A7%DB%8C%DB%8C/

    in desktop is ok in mobile have delay for play and sometimes stop.

    • This reply was modified 3 years, 3 months ago by Mr Saeed Miri.
    Plugin Author Andre Gagnon

    (@2winfactor)

    Hi There!

    Thanks for reaching out! I see you’re using mp4 files – it sounds like maybe there are not optimized for web viewing. This can cause stuttering and start/stop issues (especially on mobile) since it likely means that your video is encoded with the header file at the end of the file. This means that in order to understand the video, your browser would first need to download the whole file to get to the header part.

    In order to work around this, always make sure that when encoding your video, you use a web optimized presets. This will make sure your video file is prepared and optimized to be delivered in a web browser.

    https://prestoplayer.com/docs/how-to-optimize-video-for-smooth-website-playback-using-handbrake

    Let me know if you need any assistance with this.

    Thread Starter Mr Saeed Miri

    (@saeedmiri)

    Hi Andre Gagnon
    Really Thank You For Reply , remake video with your json settings and now is ok. now we have dynamically load js and this error :

    /wp-content/plugins/presto-player/dist/components/web-components/web-components.esm.js’ is found, but is not used because the request credentials mode does not match. Consider taking a look at crossorigin attribute.

    after exclude web-components.esm.js in wp rocket complate player Stop.

    Plugin Author Andre Gagnon

    (@2winfactor)

    It may be related to the CDN. We preload a few of our dynamic javascript files, and if your CDN does not have CORS headers for javascript files, this can happen. Are you running a CDN?

    Thread Starter Mr Saeed Miri

    (@saeedmiri)

    Hi again and Thank You For Reply. No I dont Use any CDN, Maybe My Host Use CDN in Some Service. For Improve Performance I like Use Dynamic Load JS …I am Sure You Will solve These Small Problems Well. Presto Player Has a Good Future and Congratulations.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Dynamically Load js exclude not work’ is closed to new replies.