WordPress.org

Ready to get started?Download WordPress

Forums

JW Player for Flash & HTML5 Video
[Plugin: JW Player Plugin for WordPress] Using JW Player Thumbnails (6 posts)

  1. helgatheviking
    Member
    Posted 3 years ago #

    When I add external media (say from youtube) i see that jwplayer is aware of the video's URL. but where is this information stored? when i insert the jwplayer into my post and save there is a custom field for the thumbnail src but it is empty.

  2. JW Player
    Member
    Plugin Author

    Posted 3 years ago #

    @helgatheviking,

    Media in WordPress is saved in the wp_posts table with the type set to attachment. Additional metadata is saved in the wp_postmeta table. The thumbnail url is saved in the wp_postmeta table. The meta_key is jwplayermodule_thumbnail_url.

    Thanks.

  3. helgatheviking
    Member
    Posted 3 years ago #

    thanks for the reply. i was aware that the jw thumbnail was being saved as post meta for the attachment, but i was/am stuck on how to grab this thumbnail while in a loop... so that the jw_thumb is the thumbnail for the post the jw player is inserted into in the way that the featured image / the_post_thumbnail() works.

  4. JW Player
    Member
    Plugin Author

    Posted 3 years ago #

    I'm not completely sure what you're looping through but if you happen to know the mediaid at the time, that is actually the id for the attachment. Using this id you can grab the thumbnail from the post_meta table.

    Hope that helps.

  5. close
    Member
    Posted 3 years ago #

    If I change an image in the Media Library (for instance cropping) the newly saved image can't be selected as movie thumbnail by the JW Player. It still shows the original (uncropped) image.

  6. JW Player
    Member
    Plugin Author

    Posted 3 years ago #

    @close,

    Hmm, I'll have to take a look at this. I believe it's probably a result of me pointing directly to the original since WordPress likely creates a new file.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic