First video – your screensaver
Second video – your clip
When creating your playlist, ensure that you add the videos in the correct order.
In this section you will find information on common questions connected with using the player
Quickstart Guide
Registration
Player
Adding Videos
Playlist
Inserting your player onto your website
Video is not working
Embed-code example:
<embed src='http://s3.spruto.org/embed/player.swf' type='application/x-shockwave-flash' allowfullscreen='true' allowScriptAccess='always' width='640' height='360' flashvars='set_video1_url=http%3A%2F%2Fvideo.domain.com%2Fvideo.mp4&set_title_text=Example%20video%20title&set_posterUrl=http%3A%2F%2Fposter.domain.com%2Fposter.jpg'/>
Embed-code example:
You need to connect the script to insert a player on this page http://s3.spruto.org/embed/player.js by adding the following tag:
<script type='text/javascript' src='http://s3.spruto.org/embed/player.js'></script>
The player itself is placed using the following code:
<script class='splayer'> var params = { 'Language': 'en', 'VideoURL': 'http://video.domain.com/video.mp4', 'Width': 640, 'Height': 360, 'ColorScheme': 'light', 'Autoplay': true }; player.embed(params); </script>
Video not working on mobile devices
If the Spruto player logo appears on mobile devices, but the video does not work, make sure that your site is using the JS-code player.
JS-code example:
<script type='text/javascript' src='http://s3.spruto.org/embed/player.js'></script>
<script class='splayer'> var params = { 'playlist': [{ 'video': [{ 'url': 'http://p.spruto2.pulter.netdna-cdn.com/vod/spruto2.pulter/promo.mp4' }], 'duration': 0, 'posterUrl': 'http://s3.spruto.org/images/Sps_02_spruto_player_screen_1024.jpg' }], 'uiLanguage': 'ru', 'width': '640', 'height': '360' }; player.embed(params); </script>
Full video file isn’t loading
The video’s metadata is not located at the beginning and end of the file (as required for online playback). To transfer the metadata to the beginning of the file, use the MP4Box tool or qt-faststart for ffmpeg to relocate the placement of the metadata.
Direct link
Using third-party video hosting (Vimplevideo.com, YouTube.com, Myvi.ru)
We recommend using Vimplevideo.com video hosting to store and server your videos.
Spruto automatically processes and serves videos via links from Vimplevideo.com, YouTube.com and Myvi.ru. To create a player, just insert a link to a video from one of the supported services.
Skins
You can choose from three types of players. Each of them has a unique design. Note that when you use the "Classic" skin, there is no hiding of the player buttons.
Preview
The ‘preview’ is the picture that shows before and after video playback. It is a thumbnail that represents the content of the video.
How to create a video screensaver before a video clip?
First video – your screensaver
Second video – your clip
When creating your playlist, ensure that you add the videos in the correct order.
Preview smoothing
If your video preview image does not match the size of the player container, it will be automatically reduced to an appropriate size.
In this case, if the player file and image file are on different domains, the security policy of Adobe Flash will not allow direct access to the file image, and therefore, the image will be reduced without smoothing. Smoothing (also known as anti-aliasing) is a technique used to add greater realism to a digital image by smoothing jagged edges on curved lines and diagonals to make the image look nicer.
Example of the image without smoothing:
The only way for the flash-player to perform smoothing on preview images, is to place the file titled crossdomain.xml in the root directory of the site (detailed specification for this file can be found on the official website of Adobe).
Example image with smoothing:
Player design
Once you have decided which of the 3 player designs to use, you can customize its color scheme. To adjust the color, choose from the color palette or enter the desired color’s number.
Adjusting the player’s size.
Interface
In the interface setting you can select which player buttons need to be displayed. In this section, you can select the language for the player.
Management
Adjust the player display before and after playback. When creating a playlist, you can choose what will be displayed in the player: a playlist or a preview.
Advertising
The Spruto player is pre-integrated with the Advark advertising management system.
You can start earning on your video just in 3 simple steps:
Sign up at Advarkads.com and set up your advertising campaigns
Copy the identifier code from your Advark account
Enter it in player settings, in the "Advertising" section in your Spruto account
How to add your logo to the Spruto player?
The Spruto player allows you to add your logo over the video:
Upload your logo image to the internet (we recommend you upload the file directly to your own web hosting account or server)
Go to the "Player" section in your Spruto account and choose the "Design" tab then activate the logo setting. Insert the link address to your logo into the "Picture" field
Choose the logo’s placement within the player screen
Your logo can be up to 50x50 pixels and in PNG or JPEG format. If the logo image size is non-standard, it will be compressed or expanded to the specified size.
HTML5 + FLASH
Spruto generates a player in two formats:
Flash- the code loads the Flash-player version. Videos will not play on mobile devices lacking support for Flash (such as the Apple iOS system).
JS - universal code that allows the system to identify the device that is loading the player and choose the correct player type for playback (i.e. flash for desktop playback and HTML-5 for mobile devices).
Playlists
In your JS player code:
playlist [{...},{...}, ...] - a list of videos that should play in the player, including additional parameters to display them in your player (order, etc).
Via an embed player:
The playlist is set using the following parameters:
There are 2 ways to install the Spruto player:
With the help of spruto.com
If you want to download and install the player on your site:
JS-code example:
You need to add the script http://s3.spruto.org/embed/player.js in order to insert a player on the page by adding:
<script type='text/javascript' src='http://s3.spruto.org/embed/player.js'></script>
The player is posted with the following code:
<script class='splayer'> var params = { 'Language': 'en', 'VideoURL': 'http://video.domain.com/video.mp4', 'Width': 640, 'Height': 360, 'ColorScheme': 'light', 'Autoplay': true }; player.embed(params); </script>
A player placed with this code will display in English. The parameter 'ColorScheme: light' is set to use the light instead of dark color scheme (used by default). The video will start playing as soon as the page is loaded ('Autoplay': true)