Default player will provide possibility to:
- search, add, edit, re-edit video for expresion creators
- load and play this video for expression viewers
Your video container must have uniq id, same in edit and view mode
<div id="player0"></div>
Custom id paramneter required if DOM ID of container is not specified
<div class="player myplayer"></div>
Embed video if you know only the URL
Can be usefull for "original-remake" or "tag this video" expressions, where expression creates around pre-defined video. Supports much more video sources then urturn search app (myspace video, veoh, megavideo, liveleak.. etc.. and about 50 more) For those extra sources there is no events support (pause, play and etc)
In case of static video, you can disable ability to edit it
There is a custom way to add, edit, destroy video panels
It can be usefull if you want to create video panel dynamicly. For example, some video-playlists, video-walls, video-slideshows and etc.
Events
For some cases it can be usefull to listen for player's events. Example: You can
- change UI outside player during playing, editing
- highlight custom play/pause controls depends on player state
- start to play next video, if current video is finished
- ... and much more :)
Open your browser console to check it ;)
Public methods
Player support "play", "pause" and "stop" methods,
as well as "change" and "destroy" (check part "Custom way to add, edit, remove videos").
As example of usage:
- you can stop/pause all videos on your page, while you you are watching for one of video.
- you can have custom playback controls, somewhere outside player
- you can play several videos one by one (using events as well)
- ... and much more :)
You can show and hide UI elements
Default skin adapts itself for any form factor
- minimal width 200px,
- minimal height 200px;
Error screen (wrong service) defined in the URl
Error screen (wrong video id)
We'll try to retreave video for 15 sec.. showing "loading" screen, .. and after show "Error screen".