WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. learning2
    Member
    Posted 11 months 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">
    jwplayer("myElement").setup({
    file: "/uploads/example.mp4",
    height: 360,
    image: "/uploads/example.jpg",
    width: 640
    });
    </script>

    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!

    http://wordpress.org/plugins/shortcodes-ultimate/

  2. Vladimir Anokhin
    Member
    Plugin Author

    Posted 11 months ago #

    Hello,

    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.

    https://github.com/gndev/shortcodes-ultimate

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

  3. learning2
    Member
    Posted 11 months 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
    Member
    Plugin Author

    Posted 11 months ago #

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

  5. learning2
    Member
    Posted 11 months 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!!!!

Reply

You must log in to post.

About this Plugin

About this Topic