• Resolved disturbed-pixel

    (@disturbed-pixel)


    Hi Guys

    I’ve been trying to make sure that any videos hosted in the media library are also included with the files on the CDN. For some reason every other file works, but not videos.

    in Performance -> CDN i have:

    wp-includes file types to upload: *.css;*.js;*.gif;*.png;*.jpg;*.xml
    Theme file types to upload: *.css;*.js;*.gif;*.png;*.jpg;*.ico;*.ttf;*.otf,*.woff,*.less,*.svg,*.eot,*.json,*.mp4,*.m4a,*.m4v,*.mov

    I’ve even added a few entries into “custom file list”:

    {wp_content_dir}/uploads/*.mp4

    Its a multi-site setup, so the files are in uploads/sites/x/etc

    Any advice?

    Thanks for your help

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @disturbed-pixel

    I am sorry about the issue you are experiencing and I am happy to assist you with this.
    What is a CDN provider?
    Are the files not being served from CDN or you are not able to play those videos?
    Thank you.

    Thread Starter disturbed-pixel

    (@disturbed-pixel)

    Hi Marko

    Stackpath.

    I’ve checked with them and they do support the video formats.

    All of the website files (js/css/jpg/png/etc) are being served from the CDN, apart from the videos and their placeholders. Actually I’ve noticed that the video thumbnail isn’t being served from the CDN either.

    This page has all assets on the CDN, but the video for example doesn’t:

    <video width="513" height="287" preload="metadata" controls="" poster="https://www.domain.co.uk/wp-content/uploads/sites/3/2018/10/video-placholder.jpg"> <source src="https://www.domain.co.uk/wp-content/uploads/sites/3/2018/10/ExplainerOCT2017.mp4" type="video/mp4" autostart="false"></video>

    Thanks

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @disturbed-pixel

    Thank you for the information.
    Can you please check the HTML output in view-source:
    to make sure they are not generated by js?
    Thank you!

    Thread Starter disturbed-pixel

    (@disturbed-pixel)

    Hi Marko,

    Sure, i right clicked, view source, then searched for the video tag.

    Code copied below (i’ve removed references to the company from url and filenames)

    <video width=513 height=287 preload=metadata controls poster=https://www.domain.co.uk/wp-content/uploads/sites/3/2018/10/video-placholder.jpg> <source src=https://www.domain.co.uk/wp-content/uploads/sites/3/2018/10/ExplainerOCT2017.mp4 type=video/mp4 autostart=false></video>

    Extra details: This video code is added to the page as through their WYSIWYG module called “RAW HTML” via WP Bakery (visual composer) plugin – a content editor. When you view the content in WP as Text, you can see they convert it into a long string. (not sure if its base64)

    FYI: Many of the images are added to this page via this plugin (which are also in this type of long string) but they show fine and get uploaded to the CDN as expected.

    Thanks

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @disturbed-pixel

    Thank you for the information. We’ve tested this and it’s working on our end.
    There is a possibility that there is an issue with Http to https.
    You should try using the Generic mirror as a CDN option and simply add the stackp[ath URL to Replace site’s hostname with: in CDN settings.
    As I said it is tested and working as expected on our end.
    Thank you!

    Thread Starter disturbed-pixel

    (@disturbed-pixel)

    Thanks Marko.

    How do you mean http to https? the entire site is forced to use https.

    Ok, i can try your suggestion and see what happens (i’ll report back my findings). It’s just strange that the videos are ignored when everything else works.

    So there are no settings that i need to define the video file types to be included on the CDN.

    Thread Starter disturbed-pixel

    (@disturbed-pixel)

    Update: I’m also getting the video not being sent to CDN issue with videos used in LayerSlider (this one has a relative path to the video)

    Thread Starter disturbed-pixel

    (@disturbed-pixel)

    Update #2:

    Essential Grid videos have their video URLs updated automatically to the CDN correctly.

    I can see in the media library that the all the videos have the correct CDN URL path, but when rendered on the page with those plugins, they point to the original site not the CDN.

    Unless i’m wrong i thought your plugin automatically updates all the links on the page to use the CDN path?

    In my case it seems that videos used with WP Bakery Visual composer and LayerSlider retain their original URLS, but Essential Grid updates correctly.

    I manually changed the URLs in Visual Composer to the CDN link in the media library and they obviously pull the video from the CDN.

    What’s the best way to proceed, so that they are all automatically updated?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @disturbed-pixel

    Thank you for the information. Ist your website URL the same you provided via support channel yourwebsite.com//staging-three/?
    We want to check this so we need confirmation. Thank you.

    Thread Starter disturbed-pixel

    (@disturbed-pixel)

    Yes it is.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @disturbed-pixel

    Thanks for the confirmation, can you please also share where those non-on-cdn videos are? I.E. what page etc.
    Thank you

    Thread Starter disturbed-pixel

    (@disturbed-pixel)

    Sure, i’ve emailed them to you (with notes) via my previous support ticket/email. (hope that’s ok)

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @disturbed-pixel

    Yes, we received both emails. We will check this.
    Thank you for your patience.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘CDN Stackpath not uploading MP4’s in Media library’ is closed to new replies.