WordPress.org

Support

What is the shortcode?

  • When I used JW Player plugin in its 1.6.0 version this shortcode worked well when inserted in the source code of a post:

    [jwplayer config=”firstplayer” file=”http://www.mydomain.com/wp-content/videos/example1.mp4″ image=”http://www.mydomain.com/wp-content/videos/example1.jpg” html5_file=”http://www.mydomain.com/wp-content/videos/example1.mp4″]

    However, when I installed this plugin on a new blog (the latest version), the above shortcode doesn’t work. I just see the text of the code in the post and the player isn’t even called.

    I also don’t see that the player was copied to

    mydomain.com/wp-content/uploads/jw-player-plugin-for-wordpress

    in the previous version of the jww player plugin this was essential for the plugin to work, if I remember well.

    So, could you please tell me what is the shortcode for embedding a video from a certain folder on the domain (e.g. mydomain.com/wp-content/videos/), specifying a certain file (mp4) and poster image (.jpg). like in the first example?

    http://wordpress.org/extend/plugins/jw-player-plugin-for-wordpress/

Viewing 15 replies - 1 through 15 (of 20 total)
  • Plugin Author JW Player

    @longtail-video

    I’m afraid that configuring the fallback in the plugin is rather complicated, as you will need to use the shortcode functionality, and cannot use the video manager.

    An example shortcode would look like this:

    [jwplayer image=”http://content.bitsontherun.com/thumbs/Fqfj2vsZ-480.jpg” sources=”{ file: ‘http://content.bitsontherun.com/manifests/Fqfj2vsZ.m3u8′},{ file:’http://content.bitsontherun.com/videos/Fqfj2vsZ-480.mp4’}”]

    The opening curly braces { of the sources always need to be followed by a space in order for the shortcode to work.

    Hi,

    Thanks for answering. I still don’t understand the whole syntax of the shortcode.

    For example, what does this parameter define?

    file: ‘http://content.bitsontherun.com/manifests/Fqfj2vsZ.m3u8’

    and how can I choose which player to embed (I usually make several custom players for each widthxheight combination that I use)?

    Plugin Author JW Player

    @longtail-video

    For example, your shortode:

    [jwplayer config=”firstplayer” file=”http://www.mydomain.com/wp-content/videos/example1.mp4″ image=”http://www.mydomain.com/wp-content/videos/example1.jpg” html5_file=”http://www.mydomain.com/wp-content/videos/example1.mp4″]

    Would look like this, for the new plugin:

    [jwplayer player=”firstplayer” image=”http://www.mydomain.com/wp-content/videos/example1.jpg” sources=”{ file: ‘http://www.mydomain.com/wp-content/videos/example1.mp4′},{ file:’http://www.mydomain.com/wp-content/videos/example1.mp4’}”]

    Hope that helps.

    Thanks, that latest shortcode really works!

    I suggest you put it somewhere in the user manual/readme files.

    Plugin Author JW Player

    @longtail-video

    Np!

    hi admin,
    how do you add playlist with multiple supportive format for live streaming?
    thanks

    Plugin Author JW Player

    @longtail-video

    Right now the multi format support is possible only via a single item. Like the shortcode above.

    @longTail Video.. using the following, where / how do we give the SD/HD label name like 320p, etc:

    [jwplayer player=”firstplayer” image=”http://www.mydomain.com/wp-content/videos/example1.jpg” sources=”{ file: ‘http://www.mydomain.com/wp-content/videos/example1.mp4′},{ file:’http://www.mydomain.com/wp-content/videos/example1.mp4’}”]

    Plugin Author JW Player

    @longtail-video

    That should work, but you need to add the titles into the sources block for each item.

    Ironically you didn’t even answer the question, I have since then tried enough combinations that i got it working already (without titles albeit).

    So for the next person who may come along needing the same code:

    [jwplayer player=”firstplayer” image=”http://www.mydomain.com/wp-content/videos/example1.jpg” sources=”{ file: ‘http://www.mydomain.com/wp-content/videos/example1.mp4’, label: ‘SD’ },{ file:’http://www.mydomain.com/wp-content/videos/example1.mp4′, label: ‘HD’ }”]

    Plugin Author JW Player

    @longtail-video

    It should be title, not label.

    I already have it working with the code above. I’m not trying to put a title alongside the play button, I was trying to give a label to what the different video file qualities are.. when you click on HD (the text that shows for each video quality.

    What I have above is working as of right now.

    Plugin Author JW Player

    @longtail-video

    That should work, can I see where this is running?

    @LongTail Video – I was looking in the wordpress plugins section and found this plugin to use for displaying video. I didnt see anywhere in the documentation about what the shortcode might be.

    Is there a page with full documentation on the shortcode?

    Otherwise, looks to be a great plugin, it just needs clearer directions.

    Plugin Author JW Player

    @longtail-video

    We have an entire section of our support site dedicated to this plugin:

    http://www.longtailvideo.com/support/jw-player/31561/getting-started-with-the-wordpress-plugin

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘What is the shortcode?’ is closed to new replies.
Skip to toolbar