Files
sdk4_demo/example/录屏.html

52 lines
845 B
HTML
Raw Permalink Normal View History

2025-07-03 15:12:58 +08:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script src="../sdk/YJEarth.min.js"></script>
<script src="vue.js"></script>
<style>
body {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div id="app" class="fullSize">
<button @click="start">开始</button>
<button @click="stop">结束</button>
</div>
</body>
</html>
<script>
new Vue({
el: "#app",
data: {
sdk: null,
PolylineObject: null
},
async mounted() {
await YJ.on()
this.createEarth()
},
methods: {
createEarth() {
this.sdk = new YJ.YJEarth("app")
},
start() {
let Recorder = new YJ.Recorder()
Recorder.start()
},
stop() {
YJ.Global.ScreenRecord.stop()
},
}
})
</script>