Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: A way to change video SRC priority and order? Want to list WebM...

Discussion in 'Misc WordPress Requests' started by WordPress.org Forums », Oct 14, 2017.

  1. WordPress.org Forums »

    Guest

    Reply To: A way to change video SRC priority and order? Want to list WebM first, then MP4, by

    Yes, I put it in the functions file.

    I added both pieces of media – the mp4 and the webm, via the media editor in the post. It seemed to be the only way I could “connect” them to each other so they’d be two sources for the same video instead of two separate videos.

    Here’s my code with the video shortlink:
    [video width="450" height="253" webm="https://www.heiseheise.com/blog/wp-content/uploads/2017/10/zach_on_water_elevator.webm" mp4="https://www.heiseheise.com/blog/wp-content/uploads/2017/10/zach_on_water_elevator.mp4"][/video]

    The output in the HTML looks like this, though:

    <video id="wp_mep_1" preload="none" src="https://www.heiseheise.com/blog/wp-content/uploads/2017/10/zach_on_water_elevator.mp4" height="253" width="450">
    <source src="https://www.heiseheise.com/blog/wp-content/uploads/2017/10/zach_on_water_elevator.mp4" type="video/mp4">

    <source src="https://www.heiseheise.com/blog/wp-content/uploads/2017/10/zach_on_water_elevator.webm" type="video/webm">
    <object type="application/x-shockwave-flash" data="https://www.heiseheise.com/blog/wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement/flashmediaelement.swf" height="253" width="450">
    <param name="movie" value="https://www.heiseheise.com/blog/wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement/flashmediaelement.swf">
    <param name="flashvars" value="controls=true&file=https://www.heiseheise.com/blog/wp-content/uploads/2017/10/zach_on_water_elevator.mp4">
    </object>
    </video>

    Reply To: A way to change video SRC priority and order? Want to list WebM first, then MP4
     
    #1

Share This Page

Web Hosting