All the new features about skin customization, introduced with JW Player 8, are now available in the new JW Player for WordPress – Premium 1.5.2!
It is now possible to customize every single color in your player, as is shown in the image below.
If you’re still using the version 7 of the player don’t worry, this page option will show you something specific for your player!
An example? The possibility to add a custom skin, simply by choosing the right option, adding the style file url and indicating the skin name.
This is an example of what is possible to accomplish but I’m sure you’ll be able to do much better than me 😉
How to embed video in post?
Hi Vinh. Just add the full url of your media content in the JW Player Box that you will find in post/ page back-end.
In the plugin options page, you can choose if add the player before the content, after or in a custom position by using a shortcode (Premium).
This post should be useful:
https://ilghera.com/plugins/playlist-shortcode-jw-player-7-wordpress-premium-1-2-0/
I’d really like to use the Media post type for my videos. Is this possible?
Hi Shawn,
are you meaning to upload videos in WordPress?
If yes, you can do it but you have to use the media url anyway, since the plugin doesn’t let you select the video from the WordPress archive.
Thanks for the response. I’m using the WP Rest API to add videos from another application. The data are links to streamed videos but it would be really handy to use to be able to play the videos as Media/Attachments.
Keep in mind that the plugin requires always the direct link to the media source.
You can get the source as you want, even with the WP Rest API of course, and add it to the page/ post with the add_post_meta() function.
The meta name is jwppp_video_url_[number], where [number] is the specific video in the page.
Hope this helps 😉
Thank you, that was super helpful. I was able to use the add_post_meta function in the REST API to create an attachment with the _jwppp-video-url-1 meta. I can see that the correct value is in the database. However… the new meta field does not show up on the attachment edit page, nor does the embedded JW Player show up on the public attachment page to play the video. What do I need to do to have these show up?
If you ‘ve set Custom as player position in the plugin option page, you need to use a shortcode like
[jwp-video n="[number]"]
.You can do it programmatically by using the function
I’ve not set the player position to Custom–it’s at the default ‘Before the Content’. The problem is that the plugin does not seem to be active on Attachment pages (even though there are meta fields, i.e._jwppp-video-url-1, for the Attachment). What can I do to get the embedded JW Player to be active in the Attachment page?
Hi Shawn,
Go to plugin-folder/admin/jwppp-admin.php, line 226.
$exclude = array('attachment', 'nav_menu_item');
Now you can remove ‘attachment’ from the array and make a test.
Hope this helps 😉
Yes that did the trick. Thank you very much. Is there a way I can preserve this setting? I assume the next plugin update will overwrite it.
Hi Shawn,
unfortunately no but we’re talking about a very easy change.
I will probably consider to use hooks for developers in the future but this is not something that I can do at the moment, sorry.
It’s true, it’s a small change that is easily documented. One thing I’ve noticed is that the JW Player form fields on the edit attachment page are not editable (though they are visible). Some of the my videos have multiple sources and poster images that I’d like to modify. Is there another change I can make so that the _jwppp fields can actually be edited/updated? The same sort of thing is true on the public facing attachment page: if a video has multiple sources or a poster image, they are not included in the embedded JW Player. Only the main media URL (_jwppp-video-url-1) is used.
Hi Shawn,
I’m sorry that it is not working as expected.
You need probably a customized version of the plugin but this requires time and I’m focused in many different project at the moment.
I certainly understand having many ongoing projects and not enough time and I appreciate your support.