Stellar Video Player

jQuery plugin


Thank you for purchasing our item. If you have any questions that are beyond the scope of this help file, please feel free to email us via our user page contact form on CodeCanyon. Thanks so much! CreativeMedia team

This is pure HTML5 video player that plays videos from:

- YouTube,

Vimeo,

- self hosted videos (mp4),

- Google Drive video,

- Amazon S3 video,

- local videos,

- Dropbox video,

- LiveStreaming HLS m3u8 videos,

with optional pre-roll,  mid-roll, post-roll and pop-up advertising system for each video you create.

Player can be used with playlist (with unlimited videos) , or as single video player.

Inside the download zip from CodeCanyon you'll find the following structure:



deploy - containes "minified" versions of all scripts (js/css). This means the scripts/css files have been compressed so they load faster. These files will be used for your production website.

documentation - containes documentation files

source - containes original versions of all scripts (js/css).Identical to "deploy" folder except nothing is minified. If you wish to change css and javascript files use this folder. After making changes, for faster loading you can minify the CSS/JS files by using the following tools:

JS: http://closure-compiler.appspot.com/home
CSS: http://refresh-sf.com/

 

Open index.html file from the "deploy" folder with some text editor ( Notepad++, or Atom).

Video player only needs few lines of code to get started:

  1. $(document).ready(function($)
  2. {
  3. videoPlayer = $("#Stellar_video_player").Video();
  4. });

But you can also override the default settings by passing the arguments.

Below is example of calling the plugin with explanation of arguments (all plugin options) and added 1 video to the playlist:

  1. $(document).ready(function($)
  2. {
  3. videoPlayer = $("#Stellar_video_player").Video({ <!-- ALL PLUGIN OPTIONS -->
  4. <!-- GLOBAL SETTINGS -->
  5. instanceName:"player1", //name of the player instance (for multiple players per page change this name)
  6. instanceTheme:"dark", //choose video player theme: "dark", "light"
  7. playerLayout: "fixedSize", //Select player layout: "fitToContainer" (responsive mode), "fixedSize" (fixed size on page load,responsive on resize), "fitToBrowser" (fill the browser window)
  8. playerOrientation:"LTR", //adjust player text orientation: "LTR", "RTL" (left to right or right to left for eastern countries)
  9. autohideControls:5, //autohide controls
  10. hideControlsOnMouseOut:false, //hide controls on mouse out of the player: true, false
  11. videoPlayerWidth:768, //fixed total player width (only for playerLayout: "fixedSize")
  12. videoPlayerHeight:432, //fixed total player height (only for playerLayout: "fixedSize")
  13. videoRatio: 16/9, //set any video ratio (calculate video width/video height)
  14. videoRatioStretch: false, //adjust video ratio for case when playlist is "opened" : true/false
  15. iOSPlaysinline: true, //on iOS device: play videos inline (like on desktop) or in Fullscreen by default: true/false
  16. autoplay:false, //autoplay when webpage loads: true/false
  17. colorAccent:"#ff0000", //plugin colors accent (hexadecimal or RGB value - http://www.colorpicker.com/)
  18. videoAnimationTime: 350, //video transition animation when using show/hide playlist [miliseconds], 0-instant animation, larger number will increase animation time
  19. playSpecificVideo: 0, //load and play specific video from playlist on page load [0-first video, 1-second video...]
  20. progressBarThickness: 3, //adjust progress bar height [px]
  21. progressBarThicknessOnMouseover: 6, //adjust video progress bar height on mouse over [px]
  22. tooltipFontSize:12, //adjust tooltip font size
  23. videoPlayerShadow:"effect1", //choose player shadow: "effect1" , "effect2", "effect3", "effect4", "effect5", "effect6", "off"
  24. loadRandomVideoOnStart:false, //choose to load random video when webpage loads: true, false
  25. shuffle:false, //choose to shuffle videos when playing one after another: true, false (shuffle button enabled/disabled on start)
  26. posterImg:"assets/images/poster.jpg", //player poster image
  27. posterImgOnVideoFinish:"assets/images/poster2.jpg", //player poster image on video finish (works if enabled onFinish:"Stop video")
  28. onFinish:"Play next video", //"Play next video","Restart video", "Stop video",
  29. nowPlayingText:true, //enable disable now playing title: true, false
  30. showAllControls:true, //enable/disable all player controls: true/false
  31. allowSkipAd:true, //enable/disable "Skip advertisement" option: true/false
  32. infoShow:true, //enable/disable info option: true, false
  33. nextShow:true, //enable/disable next video option: true, false
  34. rewindShow:true, //enable/disable rewind video option: true, false
  35. qualityShow:true, //enable/disable rewind video option: true, false
  36. fastForwardShow:true, //enable/disable fast forwarding video option: true, false
  37. fastBackwardShow:true, //enable/disable fast backwarding video option: true, false
  38. stepFastForwardAndBackward: 5, //step for how much player will fast forward and fast backward (seconds)
  39. <!-- LIGHTBOX SETTINGS -->
  40. lightBox:false, //lightbox mode :true/false
  41. lightBoxAutoplay: false, //autoplay when lightbox opens: true/false
  42. lightBoxThumbnail:"assets/images/poster.jpg", //lightbox thumbnail image
  43. lightBoxThumbnailWidth: 400, //lightbox thumbnail image width
  44. lightBoxThumbnailHeight: 220, //lightbox thumbnail image height
  45. lightBoxCloseOnOutsideClick: true, //close lightbox when clicked outside of player area
  46. <!-- PLAYLIST SETTINGS -->
  47. playlist:"Right playlist", //choose playlist type: "Right playlist", "Bottom playlist", "Off"
  48. playlistScrollType:"inset", //choose scrollbar type: "light","minimal","light-2","light-3","light-thick","light-thin","inset","inset-2","inset-3","rounded","rounded-dots","3d","dark","minimal-dark","dark-2","dark-3","dark-thick","dark-thin","inset-dark","inset-2-dark","inset-3-dark","rounded-dark","rounded-dots-dark","3d-dark","3d-thick-dark"
  49. playlistBehaviourOnPageload:"opened (default)", //choose playlist behaviour when webpage loads: "closed", "opened (default)" (not apply to Vimeo player)
  50. <!-- VIMEO PLAYER SETTINGS -->
  51. vimeoColor:"00adef", //set "hexadecimal value", default vimeo color is "00adef"
  52. <!-- YOUTUBE SETTINGS -->
  53. youtubeControls:"custom controls", //choose youtube player controls: "custom controls", "default controls"
  54. youtubeSkin:"dark", //default youtube controls theme: light, dark
  55. youtubeColor:"red", //default youtube controls bar color: red, white
  56. youtubeQuality:"default", //choose youtube quality: "small", "medium", "large", "hd720", "hd1080", "highres", "default"
  57. youtubeShowRelatedVideos:true, //choose to show youtube related videos when video finish: true, false (onFinish:"Stop video" needs to be enabled)
  58. <!-- HTML5 SELF HOSTED VIDEOS SETTINGS -->
  59. HTML5VideoQuality:"HD", //choose HTML5 video quality (HD, SD)
  60. preloadSelfHosted:"none", //choose preload buffer for self hosted mp4 videos (video type HTML5): "none", "auto"
  61. rightClickMenu:true, //enable/disable right click over HTML5 player: true/false
  62. hideVideoSource:false, //option to hide self hosted video 'src' attribute from <video> tag (to prevent users from download/steal your videos): true/false
  63. <!-- SHARE SETTINGS -->
  64. shareShow:true, //enable/disable complete share options (facebook/twitter/googlePlus): true, false
  65. facebookShow:true, //enable/disable facebook option individually: true, false
  66. twitterShow:true, //enable/disable twitter option individually: true, false
  67. googlePlusShow:true, //enable/disable googlePlus option individually: true, false
  68. facebookShareName:"Stellar video player", //first parametar of facebook share in facebook feed dialog is title
  69. facebookShareLink:"http://codecanyon.net/", //second parametar of facebook share in facebook feed dialog is link below title
  70. facebookShareDescription:"Stellar Video Player is stunning, modern, responsive, fully customisable high-end video player for WordPress that support advertising and the most popular video platforms like YouTube, Vimeo or self-hosting videos (mp4).", //third parametar of facebook share in facebook feed dialog is description below link
  71. facebookSharePicture:"https://0.s3.envato.com/files/123866118/preview.jpg", //fourth parametar in facebook feed dialog is picture on left side
  72. twitterText:"Stellar video player", //first parametar of twitter share in twitter feed dialog is text
  73. twitterLink:"http://codecanyon.net/", //second parametar of twitter share in twitter feed dialog is link
  74. twitterHashtags:"wordpressvideoplayer", //third parametar of twitter share in twitter feed dialog is hashtag
  75. twitterVia:"Creative media", //fourth parametar of twitter share in twitter feed dialog is via (@)
  76. googlePlus:"http://codecanyon.net/", //share link over Google +
  77. <!-- LOGO SETTINGS -->
  78. logoShow:true, //true, false
  79. logoClickable:true, //true, false
  80. logoPath:"assets/images/logo.png", //logo image url
  81. logoGoToLink:"http://codecanyon.net/", //redirect to specific page when logo clicked
  82. logoPosition:"bottom-left", //choose logo position: "bottom-right","bottom-left"
  83. <!-- EMBED SETTINGS -->
  84. embedShow:true, //enable/disable embed option: true, false
  85. embedCodeSrc:"www.yourwebsite.com/videoplayer/index.html", //path to your jQuery version of video player on server
  86. embedShareLink:"www.yourwebsite.com/videoplayer/index.html", //direct link to your site (or any other URL) you want to be "shared"
  87. <!-- GLOBAL PREROLL ADS SETTINGS -->
  88. showGlobalPrerollAds: false, //enable/disable 'global' ads and overwrite each individual ad in 'videos' :true/false
  89. globalPrerollAds: "url1;url2;url3;url4;url5", //set 'pool' of url's that are separated by ; (global prerolls will play randomly)
  90. globalPrerollAdsSkipTimer: 5, //skip global advertisement seconds
  91. globalPrerollAdsGotoLink: "http://codecanyon.net/", //global advertisement goto link
  92. <!-- TRANSLATE TEXTS TO YOUR LANGUAGE --> //translate all texts to any language
  93. advertisementTitle:"Advertisement",
  94. skipAdvertisementText:"Skip advertisement",
  95. skipAdText:"You can skip this ad in",
  96. playBtnTooltipTxt:"Play",
  97. pauseBtnTooltipTxt:"Pause",
  98. rewindBtnTooltipTxt:"Rewind",
  99. downloadVideoBtnTooltipTxt:"Download video",
  100. qualityBtnOpenedTooltipTxt:"Close quality",
  101. qualityBtnClosedTooltipTxt:"Select quality",
  102. muteBtnTooltipTxt:"Mute",
  103. unmuteBtnTooltipTxt:"Unmute",
  104. fullscreenBtnTooltipTxt:"Fullscreen",
  105. exitFullscreenBtnTooltipTxt:"Exit fullscreen",
  106. infoBtnTooltipTxt:"Show info",
  107. embedBtnTooltipTxt:"Embed",
  108. shareBtnTooltipTxt:"Share",
  109. volumeTooltipTxt:"Volume",
  110. fastForwardBtnTooltipTxt:"Fast forward",
  111. fastBackwardBtnTooltipTxt:"Fast backward",
  112. playlistBtnClosedTooltipTxt:"Show playlist",
  113. playlistBtnOpenedTooltipTxt:"Hide playlist",
  114. facebookBtnTooltipTxt:"Share on Facebook",
  115. twitterBtnTooltipTxt:"Share on Twitter",
  116. googlePlusBtnTooltipTxt:"Share on Google+",
  117. nextBtnTooltipTxt:"Next video",
  118. previousBtnTooltipTxt:"Previous video",
  119. playlistSearchText: "Search for video...",
  120. nextVideoInPlaylistText: "UP NEXT",
  121. autoplayNextVideoInPlaylistOn: "Autoplay next video on",
  122. autoplayNextVideoInPlaylistOff: "Autoplay next video off",
  123. countVideos: "of",
  124. shuffleBtnOnTooltipTxt:"Shuffle on",
  125. shuffleBtnOffTooltipTxt:"Shuffle off",
  126. embedWindowTitle2:"EMBED PLAYER IN YOUR SITE:",
  127. embedWindowTitle3:"SHARE CURRENT VIDEO:",
  128. copyTxt:"Copy",
  129. copiedTxt:"Copied!",
  130. <!-- AUTOMATIC YOUTUBE PLAYLIST/CHANNEL SETTINGS -->
  131. youtubePlaylistID:"", //automatic youtube playlist ID (leave blank "" if you want to use manual playlist) PLuFX50GllfgP_mecAi4LV7cYva-WLVnaM
  132. youtubeChannelID:"", //automatic youtube channel ID (leave blank "" if you want to use manual playlist) UCHqaLr9a9M7g9QN6xem9HcQ
  133.  
  134. <!-- MANUAL PLAYLIST -->
  135. videos:[
  136. {
  137. videoType:"youtube", //choose video type: "HTML5", "youtube", "vimeo", "image"
  138. title:"Youtube video", //video title
  139. youtubeID:"Ts2vpJpoLoc", //last part if the URL https://www.youtube.com/watch?v=0dJO0HyE8xE
  140. youtubeIDStartSeconds: "", //specifies the time from which the video should start
  141. youtubeIDEndSeconds: "", //specifies the time when the video should stop playing
  142. vimeoID:"119641053", //last part of the URL http://vimeo.com/119641053
  143. //mp4HD:"http://creativeinteractivemedia.com/player/videos/Pieces.mp4", //HTML5 video HD mp4 url
  144. mp4HD:"assets/videos/Short_Elegant_Logo_Reveal.mp4", //HTML5 video HD mp4 url
  145. //mp4SD:"http://creativeinteractivemedia.com/player/videos/PiecesSD.mp4", //HTML5 video SD mp4 url
  146. mp4SD:"assets/videos/Short_Elegant_Logo_Reveal.mp4", //HTML5 video SD mp4 url
  147. enable_mp4_download:false, //enable download button for self hosted videos: true, false
  148. imageUrl:"assets/images/poster2.jpg", //display image instead of playing video
  149. imageTimer:4, //set time how long image will display
  150. prerollAD:false, //show pre-roll true, false
  151. prerollGotoLink:"http://codecanyon.net/", //pre-roll goto link
  152. preroll_mp4:"http://creativeinteractivemedia.com/player/videos/Short_Elegant_Logo_Reveal.mp4", //pre-roll video mp4 format
  153. prerollSkipTimer:5,
  154. midrollAD:false, //show mid-roll true, false
  155. midrollAD_displayTime:"00:10", //show mid-roll at any custom time in format "minutes:seconds" ("00:00")
  156. midrollGotoLink:"http://codecanyon.net/", //mid-roll goto link
  157. midroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Explode.mp4", //mid-roll video mp4 format
  158. midrollSkipTimer:5,
  159. postrollAD:false, //show post-roll true, false
  160. postrollGotoLink:"http://codecanyon.net/", //post-roll goto link
  161. postroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Light.mp4", //post-roll video mp4 format
  162. postrollSkipTimer:5,
  163. popupImg:"assets/images/popup.jpg", //popup image URL
  164. popupAdShow:false, //enable/disable popup image: true, false
  165. popupAdStartTime:"00:03", //time to show popup ad during playback
  166. popupAdEndTime:"00:07", //time to hide popup ad during playback
  167. popupAdGoToLink:"http://codecanyon.net/", //re-direct to URL when popup ad clicked
  168. description:"Video description goes here.", //video description
  169. thumbImg:"assets/images/pic1.jpg", //set "auto" or leave blank "" to grab it automatically from youtube, or set your own thumbnail url
  170. info:"Video info goes here.<br>This text can be <i>HTML formatted</i>, <a href='http://codecanyon.net/user/_zac_' target='_blank'><font color='008BFF'>find out more</font></a>.<br>You can disable this info window in player options. <br><br>Lorem ipsum dolor sit amet, eu pri dolores theophrastus. Posidonium vituperatoribus cu mel, cum feugiat nostrum sapientem ne. Vis ea summo persius, unum velit erant in eos, pri ut suas iriure euripidis. Ad augue expetendis sea. Ne usu saperet appetere honestatis, ne qui nulla debitis sententiae." //video info
  171. }
  172. ]
  173. });
  174. });
  1. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  2. <meta name="description" content="Stellar Video Player"/>
  3. <meta property="og:title" content="Stellar Video Player by _CreativeMedia_"/>
  4. <meta property="og:image" content="http://creativeinteractivemedia.com/player/imgFB/stellar.png"/>
  5. <link rel="stylesheet" href="css/stellar.css" type="text/css" media="screen"/>
  6. <link rel="stylesheet" href="css/stellar-font-awesome.css" type="text/css">
  7. <link rel="stylesheet" href="css/jquery.mCustomScrollbar.css" type="text/css">
  8. <script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
  9. <script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
  10. <script src="js/froogaloop.js" type="text/javascript"></script>
  11. <script src="js/jquery.mCustomScrollbar.js" type="text/javascript"></script>
  12. <script src="js/videoPlayer.js" type="text/javascript"></script>
  13. <script src="js/Playlist.js" type="text/javascript"></script>
  14. <script src="js/iphone-inline-video.js" type="text/javascript"></script>
  15. <script type="text/javascript" charset="utf-8">
  16. $(document).ready(function($)
  17.  
  18. {
  19. videoPlayer = $("#Stellar_video_player").Video({ <!-- ALL PLUGIN OPTIONS -->
  20. <!-- GLOBAL SETTINGS -->
  21. instanceName:"player1", //name of the player instance (for multiple players per page change this name)
  22. instanceTheme:"dark", //choose video player theme: "dark", "light"
  23. playerLayout: "fixedSize", //Select player layout: "fitToContainer" (responsive mode), "fixedSize" (fixed size on page load,responsive on resize), "fitToBrowser" (fill the browser window)
  24. playerOrientation:"LTR", //adjust player text orientation: "LTR", "RTL" (left to right or right to left for eastern countries)
  25. autohideControls:5, //autohide controls
  26. hideControlsOnMouseOut:false, //hide controls on mouse out of the player: true, false
  27. videoPlayerWidth:768, //fixed total player width (only for playerLayout: "fixedSize")
  28. videoPlayerHeight:432, //fixed total player height (only for playerLayout: "fixedSize")
  29. videoRatioStretch: false, //adjust video ratio for case when playlist is "opened" : true/false
  30. iOSPlaysinline: true, //on iOS device: play videos inline (like on desktop) or in Fullscreen by default: true/false
  31. videoRatio: 16/9, //set any video ratio (calculate video width/video height)
  32. autoplay:false, //autoplay when webpage loads: true/false
  33. colorAccent:"#ff0000", //plugin colors accent (hexadecimal or RGB value - http://www.colorpicker.com/)
  34. videoAnimationTime: 350, //video transition animation when using show/hide playlist [miliseconds], 0-instant animation, larger number will increase animation time
  35. playSpecificVideo: 0, //load and play specific video from playlist on page load [0-first video, 1-second video...]
  36. progressBarThickness: 3, //adjust progress bar height [px]
  37. progressBarThicknessOnMouseover: 6, //adjust video progress bar height on mouse over [px]
  38. tooltipFontSize:12, //adjust tooltip font size
  39. videoPlayerShadow:"effect1", //choose player shadow: "effect1" , "effect2", "effect3", "effect4", "effect5", "effect6", "off"
  40. loadRandomVideoOnStart:false, //choose to load random video when webpage loads: true, false
  41. shuffle:false, //choose to shuffle videos when playing one after another: true, false (shuffle button enabled/disabled on start)
  42. posterImg:"assets/images/poster.jpg", //player poster image
  43. posterImgOnVideoFinish:"assets/images/poster2.jpg", //player poster image on video finish (works if enabled onFinish:"Stop video")
  44. onFinish:"Play next video", //"Play next video","Restart video", "Stop video",
  45. nowPlayingText:true, //enable disable now playing title: true, false
  46. showAllControls:true, //enable/disable all player controls: true/false
  47. allowSkipAd:true, //enable/disable "Skip advertisement" option: true/false
  48. infoShow:true, //enable/disable info option: true, false
  49. nextShow:true, //enable/disable next video option: true, false
  50. rewindShow:true, //enable/disable rewind video option: true, false
  51. qualityShow:true, //enable/disable rewind video option: true, false
  52. fastForwardShow:true, //enable/disable fast forwarding video option: true, false
  53. fastBackwardShow:true, //enable/disable fast backwarding video option: true, false
  54. stepFastForwardAndBackward: 5, //step for how much player will fast forward and fast backward (seconds)
  55. <!-- LIGHTBOX SETTINGS -->
  56. lightBox:false, //lightbox mode :true/false
  57. lightBoxAutoplay: false, //autoplay when lightbox opens: true/false
  58. lightBoxThumbnail:"assets/images/poster.jpg", //lightbox thumbnail image
  59. lightBoxThumbnailWidth: 400, //lightbox thumbnail image width
  60. lightBoxThumbnailHeight: 220, //lightbox thumbnail image height
  61. lightBoxCloseOnOutsideClick: true, //close lightbox when clicked outside of player area
  62. <!-- PLAYLIST SETTINGS -->
  63. playlist:"Right playlist", //choose playlist type: "Right playlist", "Bottom playlist", "Off"
  64. playlistScrollType:"inset", //choose scrollbar type: "light","minimal","light-2","light-3","light-thick","light-thin","inset","inset-2","inset-3","rounded","rounded-dots","3d","dark","minimal-dark","dark-2","dark-3","dark-thick","dark-thin","inset-dark","inset-2-dark","inset-3-dark","rounded-dark","rounded-dots-dark","3d-dark","3d-thick-dark"
  65. playlistBehaviourOnPageload:"opened (default)", //choose playlist behaviour when webpage loads: "closed", "opened (default)" (not apply to Vimeo player)
  66. <!-- VIMEO PLAYER SETTINGS -->
  67. vimeoColor:"00adef", //set "hexadecimal value", default vimeo color is "00adef"
  68. <!-- YOUTUBE SETTINGS -->
  69. youtubeControls:"custom controls", //choose youtube player controls: "custom controls", "default controls"
  70. youtubeSkin:"dark", //default youtube controls theme: light, dark
  71. youtubeColor:"red", //default youtube controls bar color: red, white
  72. youtubeQuality:"default", //choose youtube quality: "small", "medium", "large", "hd720", "hd1080", "highres", "default"
  73. youtubeShowRelatedVideos:true, //choose to show youtube related videos when video finish: true, false (onFinish:"Stop video" needs to be enabled)
  74. <!-- HTML5 SELF HOSTED VIDEOS SETTINGS -->
  75. HTML5VideoQuality:"HD", //choose HTML5 video quality (HD, SD)
  76. preloadSelfHosted:"none", //choose preload buffer for self hosted mp4 videos (video type HTML5): "none", "auto"
  77. rightClickMenu:true, //enable/disable right click over HTML5 player: true/false
  78. hideVideoSource:false, //option to hide self hosted video 'src' attribute from <video> tag (to prevent users from download/steal your videos): true/false
  79. <!-- SHARE SETTINGS -->
  80. shareShow:true, //enable/disable complete share options (facebook/twitter/googlePlus): true, false
  81. facebookShow:true, //enable/disable facebook option individually: true, false
  82. twitterShow:true, //enable/disable twitter option individually: true, false
  83. googlePlusShow:true, //enable/disable googlePlus option individually: true, false
  84. facebookShareName:"Stellar video player", //first parametar of facebook share in facebook feed dialog is title
  85. facebookShareLink:"http://codecanyon.net/", //second parametar of facebook share in facebook feed dialog is link below title
  86. facebookShareDescription:"Stellar Video Player is stunning, modern, responsive, fully customisable high-end video player for WordPress that support advertising and the most popular video platforms like YouTube, Vimeo or self-hosting videos (mp4).", //third parametar of facebook share in facebook feed dialog is description below link
  87. facebookSharePicture:"https://0.s3.envato.com/files/123866118/preview.jpg", //fourth parametar in facebook feed dialog is picture on left side
  88. twitterText:"Stellar video player", //first parametar of twitter share in twitter feed dialog is text
  89. twitterLink:"http://codecanyon.net/", //second parametar of twitter share in twitter feed dialog is link
  90. twitterHashtags:"wordpressvideoplayer", //third parametar of twitter share in twitter feed dialog is hashtag
  91. twitterVia:"Creative media", //fourth parametar of twitter share in twitter feed dialog is via (@)
  92. googlePlus:"http://codecanyon.net/", //share link over Google +
  93. <!-- LOGO SETTINGS -->
  94. logoShow:true, //true, false
  95. logoClickable:true, //true, false
  96. logoPath:"assets/images/logo.png", //logo image url
  97. logoGoToLink:"http://codecanyon.net/", //redirect to specific page when logo clicked
  98. logoPosition:"bottom-left", //choose logo position: "bottom-right","bottom-left"
  99. <!-- EMBED SETTINGS -->
  100. embedShow:true, //enable/disable embed option: true, false
  101. embedCodeSrc:"www.yourwebsite.com/videoplayer/index.html", //path to your jQuery version of video player on server
  102. embedShareLink:"www.yourwebsite.com/videoplayer/index.html", //direct link to your site (or any other URL) you want to be "shared"
  103. <!-- GLOBAL PREROLL ADS SETTINGS -->
  104. showGlobalPrerollAds: false, //enable/disable 'global' ads and overwrite each individual ad in 'videos' :true/false
  105. globalPrerollAds: "url1;url2;url3;url4;url5", //set 'pool' of url's that are separated by ; (global prerolls will play randomly)
  106. globalPrerollAdsSkipTimer: 5, //skip global advertisement seconds
  107. globalPrerollAdsGotoLink: "http://codecanyon.net/", //global advertisement goto link
  108. <!-- TRANSLATE TEXTS TO YOUR LANGUAGE --> //translate all texts to any language
  109. advertisementTitle:"Advertisement",
  110. skipAdvertisementText:"Skip advertisement",
  111. skipAdText:"You can skip this ad in",
  112. playBtnTooltipTxt:"Play",
  113. pauseBtnTooltipTxt:"Pause",
  114. rewindBtnTooltipTxt:"Rewind",
  115. downloadVideoBtnTooltipTxt:"Download video",
  116. qualityBtnOpenedTooltipTxt:"Close quality",
  117. qualityBtnClosedTooltipTxt:"Select quality",
  118. muteBtnTooltipTxt:"Mute",
  119. unmuteBtnTooltipTxt:"Unmute",
  120. fullscreenBtnTooltipTxt:"Fullscreen",
  121. exitFullscreenBtnTooltipTxt:"Exit fullscreen",
  122. infoBtnTooltipTxt:"Show info",
  123. embedBtnTooltipTxt:"Embed",
  124. shareBtnTooltipTxt:"Share",
  125. volumeTooltipTxt:"Volume",
  126. fastForwardBtnTooltipTxt:"Fast forward",
  127. fastBackwardBtnTooltipTxt:"Fast backward",
  128. playlistBtnClosedTooltipTxt:"Show playlist",
  129. playlistBtnOpenedTooltipTxt:"Hide playlist",
  130. facebookBtnTooltipTxt:"Share on Facebook",
  131. twitterBtnTooltipTxt:"Share on Twitter",
  132. googlePlusBtnTooltipTxt:"Share on Google+",
  133. nextBtnTooltipTxt:"Next video",
  134. previousBtnTooltipTxt:"Previous video",
  135. playlistSearchText: "Search for video...",
  136. nextVideoInPlaylistText: "UP NEXT",
  137. autoplayNextVideoInPlaylistOn: "Autoplay next video on",
  138. autoplayNextVideoInPlaylistOff: "Autoplay next video off",
  139. countVideos: "of",
  140. shuffleBtnOnTooltipTxt:"Shuffle on",
  141. shuffleBtnOffTooltipTxt:"Shuffle off",
  142. embedWindowTitle2:"EMBED PLAYER IN YOUR SITE:",
  143. embedWindowTitle3:"SHARE CURRENT VIDEO:",
  144. copyTxt:"Copy",
  145. copiedTxt:"Copied!",
  146. <!-- AUTOMATIC YOUTUBE PLAYLIST/CHANNEL SETTINGS -->
  147. youtubePlaylistID:"", //automatic youtube playlist ID (leave blank "" if you want to use manual playlist) PLuFX50GllfgP_mecAi4LV7cYva-WLVnaM
  148. youtubeChannelID:"", //automatic youtube channel ID (leave blank "" if you want to use manual playlist) UCHqaLr9a9M7g9QN6xem9HcQ
  149. <!-- MANUAL PLAYLIST -->
  150.  
  151. videos:[
  152. {
  153. videoType:"youtube", //choose video type: "HTML5", "youtube", "vimeo", "image"
  154. title:"Youtube video", //video title
  155. youtubeID:"Ts2vpJpoLoc", //last part if the URL https://www.youtube.com/watch?v=0dJO0HyE8xE
  156. youtubeIDStartSeconds: "", //specifies the time from which the video should start
  157. youtubeIDEndSeconds: "", //specifies the time when the video should stop playing
  158. vimeoID:"119641053", //last part of the URL http://vimeo.com/119641053
  159. mp4HD:"http://creativeinteractivemedia.com/player/videos/Pieces.mp4", //mp4 HD video url
  160. mp4SD:"http://creativeinteractivemedia.com/player/videos/PiecesSD.mp4", //mp4 SD video url
  161. enable_mp4_download:false, //enable download button for self hosted videos: true, false
  162. imageUrl:"assets/images/poster2.jpg", //display image instead of playing video
  163. imageTimer:4, //set time how long image will display
  164. prerollAD:false, //show pre-roll true, false
  165. prerollGotoLink:"http://codecanyon.net/", //pre-roll goto link
  166. preroll_mp4:"http://creativeinteractivemedia.com/player/videos/Short_Elegant_Logo_Reveal.mp4", //pre-roll video mp4 format
  167. prerollSkipTimer:5,
  168. midrollAD:false, //show mid-roll true, false
  169. midrollAD_displayTime:"00:10", //show mid-roll at any custom time in format "minutes:seconds" ("00:00")
  170. midrollGotoLink:"http://codecanyon.net/", //mid-roll goto link
  171. midroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Explode.mp4", //mid-roll video mp4 format
  172. midrollSkipTimer:5,
  173. postrollAD:false, //show post-roll true, false
  174. postrollGotoLink:"http://codecanyon.net/", //post-roll goto link
  175. postroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Light.mp4", //post-roll video mp4 format
  176. postrollSkipTimer:5,
  177. popupImg:"assets/images/popup.jpg", //popup image URL
  178. popupAdShow:false, //enable/disable popup image: true, false
  179. popupAdStartTime:"00:03", //time to show popup ad during playback
  180. popupAdEndTime:"00:07", //time to hide popup ad during playback
  181. popupAdGoToLink:"http://codecanyon.net/", //re-direct to URL when popup ad clicked
  182. description:"Video description goes here.", //video description
  183. thumbImg:"assets/images/pic1.jpg", //set "auto" or leave blank "" to grab it automatically from youtube, or set your own thumbnail url
  184. info:"Video info goes here.<br>This text can be <i>HTML formatted</i>, <a href='http://codecanyon.net/user/_zac_' target='_blank'><font color='008BFF'>find out more</font></a>.<br>You can disable this info window in player options. <br><br>Lorem ipsum dolor sit amet, eu pri dolores theophrastus. Posidonium vituperatoribus cu mel, cum feugiat nostrum sapientem ne. Vis ea summo persius, unum velit erant in eos, pri ut suas iriure euripidis. Ad augue expetendis sea. Ne usu saperet appetere honestatis, ne qui nulla debitis sententiae." //video info
  185. },
  186.  
  187. {
  188. videoType:"vimeo",
  189. title:"Vimeo vimeo",
  190. youtubeID:"Ts2vpJpoLoc",
  191. youtubeIDStartSeconds: "",
  192. youtubeIDEndSeconds: "",
  193. vimeoID:"119641053",
  194. mp4HD:"http://creativeinteractivemedia.com/player/videos/Pieces.mp4",
  195. mp4SD:"http://creativeinteractivemedia.com/player/videos/PiecesSD.mp4",
  196. enable_mp4_download:false,
  197. imageUrl:"assets/images/poster2.jpg",
  198. imageTimer:4,
  199. prerollAD:false,
  200. prerollGotoLink:"http://codecanyon.net/",
  201. preroll_mp4:"http://creativeinteractivemedia.com/player/videos/Short_Elegant_Logo_Reveal.mp4",
  202. prerollSkipTimer:5,
  203. midrollAD:false,
  204. midrollAD_displayTime:"00:10",
  205. midrollGotoLink:"http://codecanyon.net/",
  206. midroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Explode.mp4",
  207. midrollSkipTimer:5,
  208. postrollAD:false,
  209. postrollGotoLink:"http://codecanyon.net/",
  210. postroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Light.mp4",
  211. postrollSkipTimer:5,
  212. popupImg:"assets/images/popup.jpg",
  213. popupAdShow:false,
  214. popupAdStartTime:"00:03",
  215. popupAdEndTime:"00:07",
  216. popupAdGoToLink:"http://codecanyon.net/",
  217. description:"Video description goes here.",
  218. thumbImg:"assets/images/pic1.jpg",
  219. info:"Video info goes here.<br>This text can be <i>HTML formatted</i>, <a href='http://codecanyon.net/user/_zac_' target='_blank'><font color='008BFF'>find out more</font></a>.<br>You can disable this info window in player options. <br><br>Lorem ipsum dolor sit amet, eu pri dolores theophrastus. Posidonium vituperatoribus cu mel, cum feugiat nostrum sapientem ne. Vis ea summo persius, unum velit erant in eos, pri ut suas iriure euripidis. Ad augue expetendis sea. Ne usu saperet appetere honestatis, ne qui nulla debitis sententiae."
  220. },
  221.  
  222. {
  223. videoType:"HTML5",
  224. title:"Video title",
  225. youtubeID:"0dJO0HyE8xE",
  226. youtubeIDStartSeconds: "",
  227. youtubeIDEndSeconds: "",
  228. vimeoID:"119641053",
  229. mp4HD:"http://creativeinteractivemedia.com/player/videos/Pieces.mp4",
  230. mp4SD:"http://creativeinteractivemedia.com/player/videos/PiecesSD.mp4",
  231. enable_mp4_download:true,
  232. imageUrl:"assets/images/poster2.jpg",
  233. imageTimer:4,
  234. prerollAD:false,
  235. prerollGotoLink:"http://codecanyon.net/",
  236. preroll_mp4:"http://creativeinteractivemedia.com/player/videos/Short_Elegant_Logo_Reveal.mp4",
  237. prerollSkipTimer:5,
  238. midrollAD:false,
  239. midrollAD_displayTime:"00:10",
  240. midrollGotoLink:"http://codecanyon.net/",
  241. midroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Explode.mp4",
  242. midrollSkipTimer:5,
  243. postrollAD:false,
  244. postrollGotoLink:"http://codecanyon.net/",
  245. postroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Light.mp4",
  246. postrollSkipTimer:5,
  247. popupImg:"assets/images/popup.jpg",
  248. popupAdShow:false,
  249. popupAdStartTime:"00:03",
  250. popupAdEndTime:"00:07",
  251. popupAdGoToLink:"http://codecanyon.net/",
  252. description:"Video description goes here.",
  253. thumbImg:"assets/images/pic1.jpg",
  254. info:"Video info goes here.<br>This text can be <i>HTML formatted</i>, <a href='http://codecanyon.net/user/_zac_' target='_blank'><font color='008BFF'>find out more</font></a>.<br>You can disable this info window in player options. <br><br>Lorem ipsum dolor sit amet, eu pri dolores theophrastus. Posidonium vituperatoribus cu mel, cum feugiat nostrum sapientem ne. Vis ea summo persius, unum velit erant in eos, pri ut suas iriure euripidis. Ad augue expetendis sea. Ne usu saperet appetere honestatis, ne qui nulla debitis sententiae."
  255. },
  256.  
  257. {
  258. videoType:"HTML5",
  259. title:"Video title",
  260. youtubeID:"0dJO0HyE8xE",
  261. youtubeIDStartSeconds: "",
  262. youtubeIDEndSeconds: "",
  263. vimeoID:"119641053",
  264. mp4HD:"http://creativeinteractivemedia.com/player/videos/Pieces.mp4",
  265. mp4SD:"http://creativeinteractivemedia.com/player/videos/PiecesSD.mp4",
  266. enable_mp4_download:true,
  267. imageUrl:"assets/images/poster2.jpg",
  268. imageTimer:4,
  269. prerollAD:false,
  270. prerollGotoLink:"http://codecanyon.net/",
  271. preroll_mp4:"http://creativeinteractivemedia.com/player/videos/Short_Elegant_Logo_Reveal.mp4",
  272. prerollSkipTimer:5,
  273. midrollAD:false,
  274. midrollAD_displayTime:"00:10",
  275. midrollGotoLink:"http://codecanyon.net/",
  276. midroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Explode.mp4",
  277. midrollSkipTimer:5,
  278. postrollAD:false,
  279. postrollGotoLink:"http://codecanyon.net/",
  280. postroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Light.mp4",
  281. postrollSkipTimer:5,
  282. popupImg:"assets/images/popup.jpg",
  283. popupAdShow:false,
  284. popupAdStartTime:"00:03",
  285. popupAdEndTime:"00:07",
  286. popupAdGoToLink:"http://codecanyon.net/",
  287. description:"Video description goes here.",
  288. thumbImg:"assets/images/pic1.jpg",
  289. info:"Video info goes here.<br>This text can be <i>HTML formatted</i>, <a href='http://codecanyon.net/user/_zac_' target='_blank'><font color='008BFF'>find out more</font></a>.<br>You can disable this info window in player options. <br><br>Lorem ipsum dolor sit amet, eu pri dolores theophrastus. Posidonium vituperatoribus cu mel, cum feugiat nostrum sapientem ne. Vis ea summo persius, unum velit erant in eos, pri ut suas iriure euripidis. Ad augue expetendis sea. Ne usu saperet appetere honestatis, ne qui nulla debitis sententiae."
  290. },
  291.  
  292. {
  293. videoType:"HTML5",
  294. title:"Video title",
  295. youtubeID:"0dJO0HyE8xE",
  296. youtubeIDStartSeconds: "",
  297. youtubeIDEndSeconds: "",
  298. vimeoID:"119641053",
  299. mp4HD:"http://creativeinteractivemedia.com/player/videos/Pieces.mp4",
  300. mp4SD:"http://creativeinteractivemedia.com/player/videos/PiecesSD.mp4",
  301. enable_mp4_download:true,
  302. imageUrl:"assets/images/poster2.jpg",
  303. imageTimer:4,
  304. prerollAD:false,
  305. prerollGotoLink:"http://codecanyon.net/",
  306. preroll_mp4:"http://creativeinteractivemedia.com/player/videos/Short_Elegant_Logo_Reveal.mp4",
  307. prerollSkipTimer:5,
  308. midrollAD:false,
  309. midrollAD_displayTime:"00:10",
  310. midrollGotoLink:"http://codecanyon.net/",
  311. midroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Explode.mp4",
  312. midrollSkipTimer:5,
  313. postrollAD:false,
  314. postrollGotoLink:"http://codecanyon.net/",
  315. postroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Light.mp4",
  316. postrollSkipTimer:5,
  317. popupImg:"assets/images/popup.jpg",
  318. popupAdShow:false,
  319. popupAdStartTime:"00:03",
  320. popupAdEndTime:"00:07",
  321. popupAdGoToLink:"http://codecanyon.net/",
  322. description:"Video description goes here.",
  323. thumbImg:"assets/images/pic1.jpg",
  324. info:"Video info goes here.<br>This text can be <i>HTML formatted</i>, <a href='http://codecanyon.net/user/_zac_' target='_blank'><font color='008BFF'>find out more</font></a>.<br>You can disable this info window in player options. <br><br>Lorem ipsum dolor sit amet, eu pri dolores theophrastus. Posidonium vituperatoribus cu mel, cum feugiat nostrum sapientem ne. Vis ea summo persius, unum velit erant in eos, pri ut suas iriure euripidis. Ad augue expetendis sea. Ne usu saperet appetere honestatis, ne qui nulla debitis sententiae."
  325. },
  326. {
  327. videoType:"HTML5",
  328. title:"Video title",
  329. youtubeID:"0dJO0HyE8xE",
  330. youtubeIDStartSeconds: "",
  331. youtubeIDEndSeconds: "",
  332. vimeoID:"119641053",
  333. mp4HD:"http://creativeinteractivemedia.com/player/videos/Pieces.mp4",
  334. mp4SD:"http://creativeinteractivemedia.com/player/videos/PiecesSD.mp4",
  335. enable_mp4_download:true,
  336. imageUrl:"assets/images/poster2.jpg",
  337. imageTimer:4,
  338. prerollAD:false,
  339. prerollGotoLink:"http://codecanyon.net/",
  340. preroll_mp4:"http://creativeinteractivemedia.com/player/videos/Short_Elegant_Logo_Reveal.mp4",
  341. prerollSkipTimer:5,
  342. midrollAD:false,
  343. midrollAD_displayTime:"00:10",
  344. midrollGotoLink:"http://codecanyon.net/",
  345. midroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Explode.mp4",
  346. midrollSkipTimer:5,
  347. postrollAD:false,
  348. postrollGotoLink:"http://codecanyon.net/",
  349. postroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Light.mp4",
  350. postrollSkipTimer:5,
  351. popupImg:"assets/images/popup.jpg",
  352. popupAdShow:false,
  353. popupAdStartTime:"00:03",
  354. popupAdEndTime:"00:07",
  355. popupAdGoToLink:"http://codecanyon.net/",
  356. description:"Video description goes here.",
  357. thumbImg:"assets/images/pic1.jpg",
  358. info:"Video info goes here.<br>This text can be <i>HTML formatted</i>, <a href='http://codecanyon.net/user/_zac_' target='_blank'><font color='008BFF'>find out more</font></a>.<br>You can disable this info window in player options. <br><br>Lorem ipsum dolor sit amet, eu pri dolores theophrastus. Posidonium vituperatoribus cu mel, cum feugiat nostrum sapientem ne. Vis ea summo persius, unum velit erant in eos, pri ut suas iriure euripidis. Ad augue expetendis sea. Ne usu saperet appetere honestatis, ne qui nulla debitis sententiae."
  359. },
  360. {
  361. videoType:"HTML5",
  362. title:"Video title",
  363. youtubeID:"0dJO0HyE8xE",
  364. youtubeIDStartSeconds: "",
  365. youtubeIDEndSeconds: "",
  366. vimeoID:"119641053",
  367. mp4HD:"http://creativeinteractivemedia.com/player/videos/Pieces.mp4",
  368. mp4SD:"http://creativeinteractivemedia.com/player/videos/PiecesSD.mp4",
  369. enable_mp4_download:false,
  370. imageUrl:"assets/images/poster2.jpg",
  371. imageTimer:4,
  372. prerollAD:false,
  373. prerollGotoLink:"http://codecanyon.net/",
  374. preroll_mp4:"http://creativeinteractivemedia.com/player/videos/Short_Elegant_Logo_Reveal.mp4",
  375. prerollSkipTimer:5,
  376. midrollAD:false,
  377. midrollAD_displayTime:"00:10",
  378. midrollGotoLink:"http://codecanyon.net/",
  379. midroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Explode.mp4",
  380. midrollSkipTimer:5,
  381. postrollAD:false,
  382. postrollGotoLink:"http://codecanyon.net/",
  383. postroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Light.mp4",
  384. postrollSkipTimer:5,
  385. popupImg:"assets/images/popup.jpg",
  386. popupAdShow:false,
  387. popupAdStartTime:"00:03",
  388. popupAdEndTime:"00:07",
  389. popupAdGoToLink:"http://codecanyon.net/",
  390. description:"Video description goes here.",
  391. thumbImg:"assets/images/pic1.jpg",
  392. info:"Video info goes here.<br>This text can be <i>HTML formatted</i>, <a href='http://codecanyon.net/user/_zac_' target='_blank'><font color='008BFF'>find out more</font></a>.<br>You can disable this info window in player options. <br><br>Lorem ipsum dolor sit amet, eu pri dolores theophrastus. Posidonium vituperatoribus cu mel, cum feugiat nostrum sapientem ne. Vis ea summo persius, unum velit erant in eos, pri ut suas iriure euripidis. Ad augue expetendis sea. Ne usu saperet appetere honestatis, ne qui nulla debitis sententiae."
  393. }
  394. ]
  395. });
  396. });
  397.  
  398. </script>
  1. <div id="Stellar_video_player"></div>

A webpage should only load one instance of jQuery. Loading more then one instance of the jQuery library can cause conflicts. 

 

If you intend to use YouTube Channel or YouTube Playlist, you need to get Youtube API Key.
 
To get Youtube API Key for your video player follow these steps: 
 
https://developers.google.com/youtube/v3/getting-started
 
or watch the video tutorial:
 
https://www.youtube.com/watch?v=Im69kzhpR3I&feature=emb_title
To add videos from youtube playlist find option youtubePlaylistD
 
and insert youtube playlist ID from youtube URL, for example:
 
URL: https://www.youtube.com/watch?v=avwA2KPUHWc&list=PLuFX50GllfgP_mecAi4LV7cYva-WLVnaM
 
  1. youtubePlaylistID: "PLuFX50GllfgP_mecAi4LV7cYva-WLVnaM"
 
To add videos from youtube user channel find option youtubeChannelID
 
and insert channel ID from youtube URL, for example:
 
URL: https://www.youtube.com/channel/UCHqaLr9a9M7g9QN6xem9HcQ
 
  1. youtubeChannelID: "UCHqaLr9a9M7g9QN6xem9HcQ"
 
or
 
URL: https://www.youtube.com/user/djolepiv
 
  1. youtubeChannelID: "djolepiv"
 
 
 
Videos will be added by published date so first video in your player will be latest video uploaded on your channel.
 
You can add videos manually one by one to your playlist.
 
You will need to set videoType for each video you add.
 
 
for
- self-hosted mp4,
- google drive,
- LiveStreaming HLS m3u8
- local (from computer),
- dropbox
- amazon3 
- or any mp4 url video:
  1. videoType:"HTML5"
  2. mp4:"http://player.pageflip.com.hr/videos/Pieces.mp4"
 
for youtube video:
 
URL: https://www.youtube.com/watch?v=LfTLc5JGFPc
  1. videoType:"youtube"
  2. youtubeID:"LfTLc5JGFPc"
 
for vimeo video:
 
URL: http://vimeo.com/32707724
  1. videoType:"vimeo"
  2. vimeoID:"32707724"
 
for displaying image (instead of video):
  1. videoType:"image"
  2. imageUrl:"images/preview_images/poster2.jpg"
  3. imageTimer: 4
 
To add more videos just write " , " and duplicate all between curly brackets like this:
 
  1. ,
  2. {
  3. videoType:"HTML5",
  4. title:"Video title",
  5. youtubeID:"0dJO0HyE8xE",
  6. vimeoID:"119641053",
  7. mp4HD:"http://creativeinteractivemedia.com/player/videos/Pieces.mp4",
  8. mp4SD:"http://creativeinteractivemedia.com/player/videos/PiecesSD.mp4",
  9. enable_mp4_download:true,
  10. imageUrl:"assets/images/poster2.jpg",
  11. imageTimer:4,
  12. prerollAD:false,
  13. prerollGotoLink:"http://codecanyon.net/",
  14. preroll_mp4:"http://creativeinteractivemedia.com/player/videos/Short_Elegant_Logo_Reveal.mp4",
  15. prerollSkipTimer:5,
  16. midrollAD:false,
  17. midrollAD_displayTime:"00:10",
  18. midrollGotoLink:"http://codecanyon.net/",
  19. midroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Explode.mp4",
  20. midrollSkipTimer:5,
  21. postrollAD:false,
  22. postrollGotoLink:"http://codecanyon.net/",
  23. postroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Light.mp4",
  24. postrollSkipTimer:5,
  25. popupImg:"assets/images/popup.jpg",
  26. popupAdShow:false,
  27. popupAdStartTime:"00:03",
  28. popupAdEndTime:"00:07",
  29. popupAdGoToLink:"http://codecanyon.net/",
  30. description:"Video description goes here.",
  31. thumbImg:"assets/images/pic1.jpg",
  32. info:"Video info goes here.<br>This text can be <i>HTML formatted</i>, <a href='http://codecanyon.net/user/_zac_' target='_blank'><font color='008BFF'>find out more</font></a>.<br>You can disable this info window in player options. <br><br>Lorem ipsum dolor sit amet, eu pri dolores theophrastus. Posidonium vituperatoribus cu mel, cum feugiat nostrum sapientem ne. Vis ea summo persius, unum velit erant in eos, pri ut suas iriure euripidis. Ad augue expetendis sea. Ne usu saperet appetere honestatis, ne qui nulla debitis sententiae."
  33. }
 
and you have succesfully added another video to the playlist.
 
You can have unlimited videos in the playlist.

If you use self-hosted videos (videoType:"HTML5"), you will need to provide only mp4 format to make player work cross-browsers on all platforms (desktop and mobile phones/tablets).

To convert your video to mp4 you can use this online converter, or any other similar software.

 

To use pre-roll videos as advertising simply enable pre-roll option for particular video and enter URL to your ad video from your server:

  1. prerollAD:true,
  2. preroll_mp4:"http://creativeinteractivemedia.com/player/videos/Short_Elegant_Logo_Reveal.mp4",
 

{
videoType:"youtube",                                                              //choose video type: "HTML5", "youtube", "vimeo", "image"
title:"Youtube video",                                                            //video title
youtubeID:"0dJO0HyE8xE",                                                          //last part if the URL https://www.youtube.com/watch?v=0dJO0HyE8xE
vimeoID:"119641053",                                                              //last part of the URL http://vimeo.com/119641053
mp4HD:"http://creativeinteractivemedia.com/player/videos/Pieces.mp4",
mp4SD:"http://creativeinteractivemedia.com/player/videos/PiecesSD.mp4",
enable_mp4_download:false,                                                        //enable download button for self hosted videos: true, false
imageUrl:"assets/images/poster2.jpg",                                             //display image instead of playing video
imageTimer:4,   //set time how long image will display
prerollAD:true,                                                                  //show pre-roll true, false
prerollGotoLink:"http://codecanyon.net/",                                         //pre-roll goto link
preroll_mp4:"http://creativeinteractivemedia.com/player/videos/Short_Elegant_Logo_Reveal.mp4",   //pre-roll video mp4 format
prerollSkipTimer:5,

midrollAD:false,                                                                  //show mid-roll true, false
midrollAD_displayTime:"00:10",                                                    //show mid-roll at any custom time in format "minutes:seconds" ("00:00")
midrollGotoLink:"http://codecanyon.net/",                                         //mid-roll goto link
midroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Explode.mp4", //mid-roll video mp4 format
midrollSkipTimer:5,
postrollAD:false,                                                                 //show post-roll true, false
postrollGotoLink:"http://codecanyon.net/",                                        //post-roll goto link
postroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Light.mp4",  //post-roll video mp4 format
postrollSkipTimer:5,
popupImg:"assets/images/popup.jpg",                                    //popup image URL
popupAdShow:false,                                                                //enable/disable popup image: true, false
popupAdStartTime:"00:03",                                                         //time to show popup ad during playback
popupAdEndTime:"00:07",                                                           //time to hide popup ad during playback
popupAdGoToLink:"http://codecanyon.net/",                                         //re-direct to URL when popup ad clicked
description:"Video description goes here.",                                       //video description
thumbImg:"assets/images/pic1.jpg",                                                //set "auto" or leave blank "" to grab it automatically from youtube, or set your own thumbnail url
info:"Video info goes here.<br>This text can be <i>HTML formatted</i>, <a href='http://codecanyon.net/user/_zac_' target='_blank'><font color='008BFF'>find out more</font></a>.<br>You can disable this info window in player options. <br><br>Lorem ipsum dolor sit amet, eu pri dolores theophrastus. Posidonium vituperatoribus cu mel, cum feugiat nostrum sapientem ne. Vis ea summo persius, unum velit erant in eos, pri ut suas iriure euripidis. Ad augue expetendis sea. Ne usu saperet appetere honestatis, ne qui nulla debitis sententiae."                                                                                    //video info
}

 
 
You can set to redirect URL when advertisement is clicked:
  1. prerollGotoLink:"http://codecanyon.net/"

Also you can have timer when to show "skip advertisement" option,

which can be set to any time you want (seconds):

  1. prerollSkipTimer:5

To use mid-roll advertising simply enable mid-roll option for particular video and enter URL to your ad video from your server:

  1. midrollAD:true
  2. midroll_mp4:"http://player.pageflip.com.hr/videos/Short_Elegant_Logo_Reveal.mp4"

{
videoType:"youtube",                                                           
title:"Youtube video",                                                         
youtubeID:"0dJO0HyE8xE",                                                      
vimeoID:"119641053",                                                           
mp4HD:"http://creativeinteractivemedia.com/player/videos/Pieces.mp4",
mp4SD:"http://creativeinteractivemedia.com/player/videos/PiecesSD.mp4",
enable_mp4_download:false,                                                     
imageUrl:"assets/images/poster2.jpg",                                          
imageTimer:4,   //set time how long image will display
prerollAD:false,                                                              
prerollGotoLink:"http://codecanyon.net/",                                     
preroll_mp4:"http://creativeinteractivemedia.com/player/videos/Short_Elegant_Logo_Reveal.mp4",
prerollSkipTimer:5,
midrollAD:false,                                                                  //show mid-roll true, false
midrollAD_displayTime:"00:10",                                       //show mid-roll at any custom time in format "minutes:seconds" ("00:00")
midrollGotoLink:"http://codecanyon.net/",                       //mid-roll goto link
midroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Explode.mp4", //mid-roll video mp4 format
midrollSkipTimer:5,
postrollAD:false,                                                              
postrollGotoLink:"http://codecanyon.net/",                                      
postroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Light.mp4",
postrollSkipTimer:5,
popupImg:"assets/images/popup.jpg",                                  
popupAdShow:false,                                                             
popupAdStartTime:"00:03",                                                      
popupAdEndTime:"00:07",                                                        
popupAdGoToLink:"http://codecanyon.net/",                                       
description:"Video description goes here.",                                    
thumbImg:"assets/images/pic1.jpg",                                            
info:"Video info goes here"                                                      
}

 
You can set to redirect URL when advertisement is clicked:
  1. midrollGotoLink:"http://codecanyon.net/"
You can set when to show mid-roll video advertisement (in format minutes:seconds) :
  1. midrollAD_displayTime:"00:10", 

Also you can have timer when to show "skip advertisement" option,

which can be set to any time you want (seconds):

  1. midrollSkipTimer:5

To use post-roll advertising simply enable post-roll option for particular video and enter URL to your ad video from your server:

  1. postrollAD:true
  2. postroll_mp4:"http://player.pageflip.com.hr/videos/Short_Elegant_Logo_Reveal.mp4"
{
videoType:"youtube",                                                             
title:"Youtube video",                                                            
youtubeID:"0dJO0HyE8xE",                                                          
vimeoID:"119641053",                                                             
mp4HD:"http://creativeinteractivemedia.com/player/videos/Pieces.mp4",
mp4SD:"http://creativeinteractivemedia.com/player/videos/PiecesSD.mp4",
enable_mp4_download:false,                                                        
imageUrl:"assets/images/poster2.jpg",                                            
imageTimer:4,   //set time how long image will display
prerollAD:false,                                                                 
prerollGotoLink:"http://codecanyon.net/",                                        
preroll_mp4:"http://creativeinteractivemedia.com/player/videos/Short_Elegant_Logo_Reveal.mp4",   
prerollSkipTimer:5,
midrollAD:false,                                                               
midrollAD_displayTime:"00:10",                                                  
midrollGotoLink:"http://codecanyon.net/",                                        
midroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Explode.mp4", 
midrollSkipTimer:5,
postrollAD:false,                                                                 //show post-roll true, false
postrollGotoLink:"http://codecanyon.net/",                     //post-roll goto link
postroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Light.mp4",  //post-roll video mp4 format
postrollSkipTimer:5,
popupImg:"assets/images/popup.jpg",                                    
popupAdShow:false,                                                                
popupAdStartTime:"00:03",                                                        
popupAdEndTime:"00:07",                                                           
popupAdGoToLink:"http://codecanyon.net/",                                         
description:"Video description goes here.",                                      
thumbImg:"assets/images/pic1.jpg",                                               
info:"Video info goes here."
}
 
Post-roll advertisement will show at the end of the video.
 
You can set to redirect URL when advertisement is clicked:
  1. postrollGotoLink:"http://codecanyon.net/"

Also you can have timer when to show "skip advertisement" option,

which can be set to any time you want (seconds):

  1. postrollSkipTimer:5

To use pop-up advertising simply enable pop-up option for particular video and enter URL to your image ad from your server:

  1. popupAdShow:true
  2. popupImg:"images/preview_images/popup.jpg"
{
videoType:"youtube",                                                            
title:"Youtube video",                                                           
youtubeID:"0dJO0HyE8xE",                                                          
vimeoID:"119641053",                                                             
mp4HD:"http://creativeinteractivemedia.com/player/videos/Pieces.mp4",
mp4SD:"http://creativeinteractivemedia.com/player/videos/PiecesSD.mp4",
enable_mp4_download:false,                                                       
imageUrl:"assets/images/poster2.jpg",                                             
imageTimer:4,   //set time how long image will display
prerollAD:false,                                                                 
prerollGotoLink:"http://codecanyon.net/",                                        
preroll_mp4:"http://creativeinteractivemedia.com/player/videos/Short_Elegant_Logo_Reveal.mp4",   
prerollSkipTimer:5,
midrollAD:false,                                                                 
midrollAD_displayTime:"00:10",                                                    
midrollGotoLink:"http://codecanyon.net/",                                        
midroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Explode.mp4", 
midrollSkipTimer:5,
postrollAD:false,                                                                 
postrollGotoLink:"http://codecanyon.net/",                                        
postroll_mp4:"http://creativeinteractivemedia.com/player/videos/Logo_Light.mp4",  
postrollSkipTimer:5,
popupImg:"assets/images/popup.jpg",                                    //popup image URL
popupAdShow:false,                                                                     //enable/disable popup image: true, false
popupAdStartTime:"00:03",                                                         //time to show popup ad during playback
popupAdEndTime:"00:07",                                                           //time to hide popup ad during playback
popupAdGoToLink:"http://codecanyon.net/",                            //re-direct to URL when popup ad clicked
description:"Video description goes here.",                                       //video description
thumbImg:"assets/images/pic1.jpg",                                                //set "auto" or leave blank "" to grab it automatically from youtube, or set your own thumbnail url
info:"Video info goes here."
}
 
You can set to redirect URL when pop-up is clicked:
  1. popupAdGoToLink:"http://codecanyon.net/",
You can set when to show and hide pop-up image ad (in format minutes:seconds) :
  1. popupAdStartTime:"00:03"
  2. popupAdEndTime:"00:07"

 

To use Google Drive videos, you'll need to obtain google drive API key.
 
Here's steps how to get Google Drive API key:
 
Step 1
 
visit Google Cloud Platform and login with your Google account: https://console.cloud.google.com/apis/
 
Step 2
 
In Google Cloud Platform dashboard, click to select a project, then click "New Project".
 
 
 
Step 3
 
Enter "Project name" and click "Create"
 
 
Step 4
 
Select your new "Project name" from dropdown menu and click "Library"
 
 
Step 5
 
Select "Google Drive API" and click "Enable"
 
 
 
Step 6
 
To create Google Drive API key, click "Credentials", "Create credentials", "API key"
 
In the popup API key dialog, copy the API key.
 
 
 
After you get Google drive API key you'll need to restrict your key.
 
Follow this short tutorial on how to restrict Google drive API key:
 
http://creativeinteractivemedia.com/player/CC/GoogleDriveAPIkey_tutorial/restrictGoogleDriveAPIKey.webm
 
Step 7
 
After the key is ready for usage you can create direct video url for video player.
 
You'll need VIDEO_ID and GOOGLE_DRIVE_KEY.
 
To get VIDEO_ID, go to your Google drive https://drive.google.com/drive/my-drive, right-click on video and select "Get shareable link".
 
 
In the popup dialog click "Copy link" and paste it somewhere in notepad: 
  1. https://drive.google.com/file/d/VIDEO_ID/view?usp=sharing
 
Than use your Google Drive API key to create actual video url for video player usage.
 
Final result of Google Drive video url:
  1. https://www.googleapis.com/drive/v3/files/VIDEO_ID?alt=media&key=GOOGLE_DRIVE_KEY
Insert above link into video player into mp4 field (HD or SD, depending on your file quality).
 
***you can have HD and SD mp4 files on Google drive, for each repeat step 7

You can customize look of your player by inserting any color as "color accent" option. 

Color accent can be hexadecimal value (#cc181e) or rbg value ( rgb(204,24,30)).

  1. colorAccent:"#cc181e"

is equvalent to:

  1. colorAccent:"rgb(204, 24, 30)"

To choose color accent for your player you can use one of these online color pickers:

http://www.colorpicker.com/ 

http://www.w3schools.com/tags/ref_colorpicker.asp

http://www.rapidtables.com/web/color/color-picker.htm

This tool can be useful if you want to match your website colors http://www.imagecolorpicker.com/

 

 

Popular pre-built colors you can use:

 

To customize vimeo and youtube players separately use this options:

  1. vimeoColor:"00adef", //set "hexadecimal value", default vimeo color is "00adef"
  2.  
  3. youtubeSkin:"dark", //youtube theme: light,dark
  4.  
  5. youtubeColor:"red", //youtube color: red, white

 

To customize playlist scrollbar set one of the pre-built scrollbar themes:

  1. playlistScrollType:"light",

available scrollbar themes:  

"light","minimal","light-2","light-3","light-thick","light-thin","inset","inset-2","inset-3","rounded","rounded-dots","3d"

You can have multiple players per page. Every player can have it's own settings. Add the following in your HTML document:

Example how to show 2 players in one page:

  1. <script type="text/javascript" charset="utf-8">
  2. $(document).ready(function($)
  3. {
  4. videoPlayer = $("#Stellar_video_player1").Video({
  5. });
  6. //add this for player 2
  7. videoPlayer = $("#Stellar_video_player2").Video({
  8. });
  9. });
  10.  
  11. </script>
  12.  
  13. <body>
  14. <div id="Stellar_video_player1"></div>
  15. //add this for player 2:
  16. <div id="Stellar_video_player2"></div>
  17. </body>

For each instance of the player you need to change option instanceName, for example:

first instance of the player:

instanceName:"player1"

second instance of the player:

instanceName:"player2"

Done! Now you should be able to see 2 player in your HTML page.

Self-hosting video usage:
 
Some servers don't have support for HTML5 video by default.
 
Although it may seems like the video player is refusing to play the video with your browsers. This is usually caused by the web server’s inability to recognize these video formats and it has nothing to do with the HTML5 video player.
 
The solution to these problems can be fixed by adding video MIME types to server. You need to edit the .htaccess file and add the following line to your .htaccess file:
 
  1. AddType video/mp4 .mp4
URL's to your self-hosted videos needs to be an absolute URL:
 
Example:
http://server/video.mp4
 

Vimeo usage:

If you use vimeo player, you’ll need to be running on a web server instead of opening the file directly in your browser. Flash and JS security restrictions could prevent the API from working when run locally.

If you like this product please give a rating on CodeCaynon:

https://codecanyon.net/user/_creativemedia_/portfolio