From 0588c2a1772905ede2dede54c0d73953f8d993da Mon Sep 17 00:00:00 2001 From: JasWSInc Date: Wed, 13 Aug 2014 01:55:08 -0800 Subject: [PATCH] Updating inline docs. See: websharks/s2member#179 --- s2member/includes/menu-pages/down-ops.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/s2member/includes/menu-pages/down-ops.inc.php b/s2member/includes/menu-pages/down-ops.inc.php index 6f0785f0..1a54e395 100644 --- a/s2member/includes/menu-pages/down-ops.inc.php +++ b/s2member/includes/menu-pages/down-ops.inc.php @@ -647,6 +647,7 @@ public function __construct() echo '
  • player="jwplayer-v6-rtmp" Required. Current supported players in this Shortcode include: jwplayer-v6 (works with any audio/video file, and you do NOT need to have Amazon S3 or CloudFront integrated for this to work), jwplayer-v6-rtmp (streams with the RTMP protocol, plus there is a full download fallback of the source file if streaming is not possible on a particular device; this requires both Amazon S3 and CloudFront integration), jwplayer-v6-rtmp-only (streams with the RTMP protocol only, with no access to the source file, only to the RTMP stream; this requires both Amazon S3 and CloudFront integration).
  • '."\n"; echo '
  • player_id="" Optional. HTML div ID for the audio/video player. Defaults to a unique ID generated by s2Member for each instance of your Shortcode.
  • '."\n"; echo '
  • player_path="/jwplayer/jwplayer.js" Required. Path to the player\'s JavaScript file (ex: /jwplayer/jwplayer.js — you should upload the /jwplayer folder to the root of your web directory).
  • '."\n"; + echo '
  • player_resolutions="" Optional. This is a comma-delimited list of all available resolution options (should you decide to offer more than just one file download at a single resolution). Please review the full list of Shortcode Attributes (i.e. click the "Shortcode Attributes (Explained)" tab) in this KB article for further details, requirements, and an example of use.
  • '."\n"; echo '
  • player_{setting}="" Optional. Any additional configuration attributes supported by your audio/video player, prefixed with player_. For JW Player v6, see this article please. Examples: player_width="480", player_height="270", player_title="My Video", player_description="A video about something.", player_image="http://www.example.com/wp-content/uploads/video-preview.jpg", player_mediaid="video_ei0wsx23", player_autostart="true", player_skin="/jwplayer/my-skin.xml", player_key="my-license-key", player_captions="{file:\'/assets/captions-en.vtt\',label:\'English\'}" (With Captions, you can exclude the square array brackets to avoid Shortcode parsing issues. s2Member will automatically wrap your Caption objects with square array brackets.). Please note that "Advanced Options Blocks" listed on this page are NOT supported here. For those, please use: player_option_blocks="" (see below).
  • '."\n"; echo '
  • player_option_blocks="" Optional. Any "Advanced Option Blocks" supported by your audio/video player. For JW Player v6, see this article please. Here are some examples: player_option_blocks="sharing:{}", player_option_blocks="sharing:{}, logo: {file: \'/logo.png\', link: \'http://example.com\'}". Or: player_option_blocks="c2hhcmluZzoge30=" (base64 encoded version of sharing:{}). Please note that "Advanced Options Blocks" can be defined in plain text or with a base64 encoded string. Advanced Option Blocks are JavaScript objects with properties. If you have trouble defining JavaScript object properties inside a Shortcode Attribute, please use this tool to base64 encode your Advanced Option Blocks, so that you end up with a string that\'s compatible with Shortcode Attributes.
  • '."\n"; echo '
  • Please check the Shortcode Attributes Tab in this KB article for further details on everything here.
  • '."\n";