WordPress.org

Ready to get started?Download WordPress

Forums

JW Player for Flash & HTML5 Video
What is the shortcode? (21 posts)

  1. MasterBen
    Member
    Posted 1 year ago #

    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/

  2. JW Player
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. MasterBen
    Member
    Posted 1 year ago #

    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)?

  4. JW Player
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  5. MasterBen
    Member
    Posted 1 year ago #

    Thanks, that latest shortcode really works!

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

  6. JW Player
    Member
    Plugin Author

    Posted 1 year ago #

    Np!

  7. tariq.inaam@gmail.com
    Member
    Posted 1 year ago #

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

  8. JW Player
    Member
    Plugin Author

    Posted 1 year ago #

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

  9. bernardberry646
    Member
    Posted 1 year ago #

    @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'}"]

  10. JW Player
    Member
    Plugin Author

    Posted 1 year ago #

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

  11. bernardberry646
    Member
    Posted 1 year ago #

    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' }"]

  12. JW Player
    Member
    Plugin Author

    Posted 1 year ago #

    It should be title, not label.

  13. bernardberry646
    Member
    Posted 1 year ago #

    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.

  14. JW Player
    Member
    Plugin Author

    Posted 1 year ago #

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

  15. robbiegod
    Member
    Posted 1 year ago #

    @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.

  16. JW Player
    Member
    Plugin Author

    Posted 1 year ago #

    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

  17. may29
    Member
    Posted 12 months ago #

    Hi.
    I am trying to run pre-roll VAST ad on JW player.
    Already purchased ads edition.
    I have to run different ads on each video.
    How should I config the shortcode to do this?

    I tried like the following for example:
    [jwplayer mediaid="2165" "advertising":"{"client":"vast","tag":"http://www.adotube.com/php/services/player/OMLService.php?avpid=oRYYzvQ&platform_version=vast20&ad_type=linear&groupbypass=1&HTTP_REFERER=http://www.longtailvideo.com&video_identifier=longtailvideo.com,test","admessage":"Hello..."}"]

    It's not working. :(
    Please give me an advice.
    Thank you.

  18. JW Player
    Member
    Plugin Author

    Posted 12 months ago #

    Can you provide a link?

  19. may29
    Member
    Posted 12 months ago #

    Thank you for your quick reply.
    Following is the post that I made for test.
    http://freelancewritingjournal.com/testwp/2013/08/02/one-big-rabbit/
    When I look at the page source html, the ads tag is unset.
    I want to know the shortcode for the ads tag.
    Thank you for your support.

  20. bernardberry646
    Member
    Posted 11 months ago #

    What would also be nice would be a way to hide the full url to the video source! I know if it were streaming then it could be as simple as mp4:video_filename.mp4

    LongTail Author, just wondering if you were aware of a way to obfuscate the full url some way? JS maybe?

  21. JW Player
    Member
    Plugin Author

    Posted 11 months ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.