Here is a test beta s2Member video ShortCode add on plugin thing.
(use at own risk)
https://dl.dropbox.com/u/40574414/s2videos-shotcodes.zip
Edit: new version in below post
If anyone would like it extended to suit your needs please let me know, and if you use it please tell if it works for you.
Features:
HD support
Playlist Support
HTML5 fallback
Download keys
works with/without s3 and/or cloudfront
Usage:
[s2videos]
Required parameters:
[s2videos size="1" width="630" height="335"]
size = number of videos(always 1 unless using playlist(HD versions do not count)),
width = width of player,
height = height of player.
Examples:
ShortCode for 1 video with html5 fallback then download fallback:
[s2videos html5="true" download="true" size="1" width="630" height="335" video1="video.mp4" image1="http://www.site.com/wp-content/thumb.jpg"]
htm5 = use if you want that fall back
download = use if you want that fall back
video1 = file relative to /s2member-files/ or your amazon s3 bucket,
image1 = full-path-to-video-thumbnail.
ShortCode for 1 video with HD option:
[s2videos hd="true" size="1" width="630" height="335" video1="video.mp4" hdvideo1="hdvideo.mp4" image1="http://www.site.com/wp-content/thumb.jpg"]
hd = use if you want to allow HD mode
hdvideo1 = the HD version file relative to /s2member-files/ or your amazon s3 bucket.
ShortCode for playlist with 3 videos:
Required parameters for playlist:
[s2videos size="3" playlistsize="250" playlistthumbs="true" playlistposition="right" width="630" height="335"]
playlistsize = size of playlist in pixels,
playlistthumbs = if you want video thumbnails on the playlist,
playlistposition= postion of playlist in player.
Example:
[s2videos html5="true" download="true" size="3" width="630" height="335"
video1="video.mp4" image1="http://www.site.com/wp-content/thumb.jpg" title1="Title One" desc1="Description one"
video2="video2.mp4" image2="http://www.site.com/wp-content/thumb2.jpg" title2="Title Two" desc2="Description Two"
video3="video3.mp4" image3="http://www.site.com/wp-content/thumb3.jpg" title3="Title Three" desc3="Description Three" ]
size = number of videos in the playlist
title1 = Title of the first video
desc1 = Description of the first Video
Playlist with HD
For each video add the:
hdvideo1="hdvideo.mp4" hdvideo2="hdvideo2.mp4" etc etc
For larger playlist you can see the pattern video1, video2, video3, video4, title1, title2, title3, title4, etc etc. It just has to be sequential eg: 1,2,3,4,5,6 not 1,3,7,9 or it won’t work.
Assumes jwplayer.js is located yoursite.com/jwplayer/jwplayer.js
and player.swf is located yoursite.com/jwplayer/player.swf
I hope I explained how to use it good enough :/ let me know if you get stuck.
-
This topic was modified 4 years, 5 months ago by
Philly. Reason: New version available, don't use this one