Home › Forums › JW Player 7 for WordPress › JW Player for WordPress – Shortcode options
- This topic has 8 replies, 5 voices, and was last updated 4 years, 5 months ago by
divyam.
-
AuthorPosts
-
7 February 2017 at 18:35 #2032
ilGhera
KeymasterThe release of JW Player for WordPress 1.4.0, has Introduced new options for the shortcode [jwp-video].
This page wants to be the reference for this, it will be kept updated with the future changes that will come.n=” “
Video number
A page or post can have more than one video and this option lets insert a specific video into the content.
For the first video, this option can be omitted, then adding [jwp-video] is enough.
The example below will add the video number three.
[jwp-video n="3"]
p=” “
Post/ Page ID
This option let you publish a video from a different post or page.
Down here, you can see how to add the video 2 from the post/ page 243.
[jwp-video n="2" p="243"]
width=” ” height=” “
Custom measures
Even if the measures of the player are set in general in the plugin options page, is possible to assign specific measures for each video player using these shortcode options.
[jwp-video width="640" height="360"]
ar=””
Aspect ratio
With this option is possible to change the aspect ratio of the single video player, like for the vertical video in the example below.
[jwp-video ar="9:16"]
pl_autostart=”1″
Playlist autostart
This option activates the automatic playback on page load for a playlist.
[jwp-video pl_autostart="1"]
pl_mute=”1″
Playlist mute
It mutes the playlist videos during playback.
[jwp-video pl_mute="1"]
pl_repeat=”1″
Playlist repeat
With this option is possible to loop the content after the playlist completes.
[jwp-video pl_repeat="1"]
6 April 2017 at 0:57 #2238Victor
ParticipantI’m a bit confused with available documentation and explanations.
– Where does the user upload the video? What does the shortcode syntax look like with that uploaded video?
– What does the shortcode syntax look like with an external video (YouTube, Vimeo)?
– How should we troubleshoot when the player doesn’t appear?Thanks in advance.
6 April 2017 at 10:25 #2240ilGhera
KeymasterHi @Victor.
Did you upload the player on your site? If not, please have a look here:In the plugin option page you can active the plugin functionalities for posts, pages and all the others post types.
How to publish a video? This video can be useful:
https://ilghera.com/playlist-shortcode-jw-player-7-wordpress-premium-1-2-0/You can upload videos by the WordPress media system or directly in ftp but remember, you have always to use di direct link to the media source, the only exception is YouTube.
Hope this helps 😉
6 April 2017 at 16:30 #2241Victor
Participantthat was it!!!! thanks man!
24 August 2017 at 0:16 #2709reginald williams
ParticipantThe plug-in does not play or even display .m3u8 files but the jw player tester does. Can this plug-in handle .m3u8 formats? if so, how
28 August 2017 at 13:06 #2715ilGhera
KeymasterHi Reginald, sorry for the late 🙁
JWPlayer requires a premium license for .m3u8 format, that’s the reason.
More informations here:
https://support.jwplayer.com/customer/portal/articles/1403635-media-format-reference
https://www.jwplayer.com/pricing/24 February 2019 at 9:05 #4005supperball
ParticipantHello,
I installed your plugin in my wordpress and I already used to it.
But I want to used shortcode in content new post, Can you help me?
I used to: [jwp-video n=”1″ width=”640″ height=”360″ pl_autostart=”1″ pl_repeat=”1″ file=”https://storage.googleapis.com/serv13/30.01/dc402d8a80139c1f0a68d2369a315134fb882e96e13aca0effd7d968cf2809945BBeauty4Kdc402d8a80139c1f0a68d2369a315134fb882e96e13aca0effd7d968cf2809945Ddc402d8a80139c1f0a68d2369a315134fb882e96e13aca0effd7d968cf28099420Jessydc402d8a80139c1f0a68d2369a315134fb882e96e13aca0effd7d968cf28099420C.mp4″%5D in my post content but jwplayer not appear
25 February 2019 at 9:36 #4008ilGhera
KeymasterHi @superball,
There isn’t any “file” option available for the shortcode.The media url must be added using the specific meta box that you can find in the post/ page back-end.
This could be useful for understanding:
Playlist shortcode with JW Player 7 for WordPress – Premium 1.2.0
14 April 2019 at 8:05 #5933divyam
ParticipantHow to add Subtitle in following shortcake ?
[jwplayer zyJderoi]
-
AuthorPosts
- You must be logged in to reply to this topic.
0 Comments