V

VnSlo

New Member

Demo: http://www.codebasehero.com/files/video-player/demo/
[DOWNLOAD]https://www.box.com/s/1ml4r6oga3jekzs2wobp[/DOWNLOAD]
Tính năng


Cách sử dụng

HTML:
$('selector').ttwVideoPlayer(playlist, options);
Danh sách đầy đủ các tùy chọn
Code:
{
Code:
[/COLOR]
[COLOR=#222222]           autoplay:false,[/COLOR]
[COLOR=#222222]           buttons:['playlist', 'hd', 'heart', 'settings' 'fullscreen'],[/COLOR]
[COLOR=#222222]           width: "554px",[/COLOR]
[COLOR=#222222]           height: "312px",[/COLOR]
[COLOR=#222222]           hdPlaylist:[],[/COLOR]
[COLOR=#222222]           autoHidePlaylist:true,[/COLOR]
[COLOR=#222222]           autoHidePlaylistDelay:3000,[/COLOR]
[COLOR=#222222]           playlistButtonCallback:function(){[/COLOR]
[COLOR=#222222]               fires when the playlist button is clicked[/COLOR]
[COLOR=#222222]           },[/COLOR]
[COLOR=#222222]           hdButtonCallback:function(){[/COLOR]
[COLOR=#222222]               fires when the HD button is clicked[/COLOR]
[COLOR=#222222]           },[/COLOR]
[COLOR=#222222]           heartButtonCallback:function(){[/COLOR]
[COLOR=#222222]               fires when the heart button is clicked[/COLOR]
[COLOR=#222222]           },[/COLOR]
[COLOR=#222222]           settingsButtonCallback:function(){[/COLOR]
[COLOR=#222222]               fires when the settings button is clicked[/COLOR]
[COLOR=#222222]           },[/COLOR]
[COLOR=#222222]           fullscreenButtonCallback:function(){[/COLOR]
[COLOR=#222222]               fires when the fullscreen button is clicked[/COLOR]
[COLOR=#222222]           },[/COLOR]
[COLOR=#222222]           allowHeartIncrement:function(){[/COLOR]
[COLOR=#222222]               //use this to determine if the heart count should be updated. If you only want to limit a user to[/COLOR]
[COLOR=#222222]               //one click, you would enforce that requirement here. This function should always return true or false[/COLOR]
[COLOR=#222222]               return true;[/COLOR]
[COLOR=#222222]           }[/COLOR]
[COLOR=#222222]           jPlayer:{}, //these are the jPlayer options. Use the structure defined on the jPlayer site, or leave off to use defaults[/COLOR]
[COLOR=#222222]};[/COLOR]
[COLOR=#111111]
 

Facebook Comments

Similar threads

Admin
Replies
0
Views
1K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
3K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
4K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
1K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
929
AdminAdmin is verified member.
Admin
Admin
Replies
4
Views
7K
m4v_pro
M
Admin
Replies
0
Views
1K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
981
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
1K
AdminAdmin is verified member.
Admin
Back
Top