Commit 083d76a7 by Tianqing Liu

feat: 水印功能示例

1 parent 8602ff12
...@@ -4,8 +4,10 @@ ...@@ -4,8 +4,10 @@
<j-player ref="jplay" <j-player ref="jplay"
:type="playerType" :type="playerType"
prefix-url="" prefix-url=""
channel-id="20000000001310000011" player-address="52.130.155.147"
channel-id="20000000001310000008"
:datetime-range="datetimeRange" :datetime-range="datetimeRange"
watermarkText="方案智能"
/> />
</div> </div>
<div class="footer"> <div class="footer">
...@@ -43,8 +45,9 @@ export default { ...@@ -43,8 +45,9 @@ export default {
]; ];
}, },
handleScreenshot() { handleScreenshot() {
const imgData = this.$refs.jplay.screenshot(); this.$refs.jplay.screenshotWatermark().then(data => {
console.log('handleScreenshot', imgData); console.log('handleScreenshot', data);
});
}, },
handleStop() { handleStop() {
const result = this.$refs.jplay.stopPlay(); const result = this.$refs.jplay.stopPlay();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!