Video.js Watermark
aplugindisplayawatermakontopofthevideowithvideo.js。
Using the Plugin
thepluginautomaticallyregistersitselfwhenyouinclude ' video js.watermark.js ' in your page 3360
youprobablywanttoincludethedefaultstylesheet,too.ithandlesshowingtheimageoverthevideo 3360
onceyouhaveyourvideoelementcreated,youcanactivatethewatermarkplugin。
theplugintake5optionsfileandxposand ` yposandxrepeat ` ` and ` ` opacity ` `。
itusethecsshowtheimageoverthevideo。
video.watermark({ (
文件: ' watermark s.png ',
xpos: 50,
ypos: 50,
xrepeat: 0,
opacity: 0.5、
);
或
data-setup=' { ' plugins ' : } ' watermark ' : { ' file ' : ' watermark s.png ',' xpos': '50,' yyyy
xpos: 50
ypos: 50
Bottom right:
xpos: 100
ypos: 100
顶级:
xpos: 0
ypos: 0
选项
afewmoreoptionshasbeenaddtodocoolstuff.hereareallthedefaultssettings。
var defaults={
file: 'Owned_Stamp.png ',
xpos: 0,
ypos: 0,
xrepeat: 0,
opacity: 100,
clickable :假,
url: ',
类名称: ' vjs-watermark ',
文本:假,
调试:假
}
知识文库
it won ' tworkwhenusingtheflashfallback。
许可
piwigo-videojspluginforpiwigoisfreesoftware 3360 youcanredistributeit
和/ormodifyitunderthetermsofthegnugeneralpubliclicenseas
publishedbythefreesoftwarefoundation
thisprogramisdistributedinthehopethatitwillbeuseful,but WITHOUT
ANY WARRANTY; withouteventheimpliedwarrantyofmerchantabilityorfitness
foraparticularpurpose.seethegnugeneralpubliclicenseformoredetails。