Shortcodes Ultimate
[resolved] Image preloaded for JW Player? (5 posts)

  1. learning2
    Posted 3 years ago #

    Is there a way of putting an image in the shortcode for a video with your shortcodes? I found something at longtailvideo.com but it talks about putting a script after a div. I removed your shortcode and tried this in a widget on the sidebar, but that didn't work.

    Here is the link that I found telling how to do this with javascript: http://www.longtailvideo.com/support/jw-player/28839/embedding-the-player. And the directions:

    Insert a <div> element with a unique id in the body of your page, at the location you want the player to appear:

    <div id="myElement">Loading the player ...</div>

    Right below it, insert a script that invokes the JW Player setup() call on your <div>:

    <script type="text/javascript">
    file: "/uploads/example.mp4",
    height: 360,
    image: "/uploads/example.jpg",
    width: 640

    The last code block is where the heavy lifting happens. The script tells the JW Player library to setup a player instance over the DOM element with ID container. Inside the setup call, the script provides a list of options for configuring the player.

    I really would like to do this without installing the JW Player plugin...if possible.

    So far I am finding your plugin very helpful...though still lots to learn.
    Thank you for sharing!


  2. Vladimir Anokhin
    Plugin Author

    Posted 2 years ago #


    you can try new version of the plugin, that is already available on GitHub. New version includes new media player. With this player you can easily select poster image.

    Don't forget to deactivate old version before installing new.


    This version will be available at wordpress.org in few weeks.

  3. learning2
    Posted 2 years ago #

    Hi Vladimir,

    Thanks for sharing your time to respond.

    I tried to download but kept getting errors, even right clicking.

    Looking forward to exploring this plugin in depth.

    thank you!

  4. Vladimir Anokhin
    Plugin Author

    Posted 2 years ago #

    Did you tried GitHub version?
    Can you show me the errors?

  5. learning2
    Posted 2 years ago #

    All is ok now. I don't recall the exact error but it did show 500...Will try this out this afternoon or tomorrow. Thanks for the VERY speedy response!!!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Shortcodes Ultimate
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic