|
@@ -172,23 +172,19 @@ export default class App {
|
|
|
console.log("[3D] getSocketVideo: ", data)
|
|
|
|
|
|
if(this.getWalkVideo) {
|
|
|
- // 获得行走视频
|
|
|
- let dataArr = [data]
|
|
|
- let path = this.currentPoints.map( (point, index) => {
|
|
|
|
|
|
- const blob = new Blob( dataArr.slice(
|
|
|
- index / this.currentPoints.length * dataArr.length,
|
|
|
- (index + 1) / this.currentPoints.length * dataArr.length
|
|
|
- ), { type: 'application/video' })
|
|
|
+ const blob = new Blob( [data], { type: 'application/video' })
|
|
|
|
|
|
- const url = URL.createObjectURL(blob)
|
|
|
- setTimeout(function () {
|
|
|
- URL.revokeObjectURL(url)
|
|
|
- }, 3000)
|
|
|
+ const url = URL.createObjectURL(blob)
|
|
|
+ setTimeout(function () {
|
|
|
+ URL.revokeObjectURL(url)
|
|
|
+ }, 3000)
|
|
|
|
|
|
+ // 获得行走视频
|
|
|
+ let path = this.currentPoints.map( (point, index) => {
|
|
|
return {
|
|
|
point: new BABYLON.Vector3(point.location.x, 0, point.location.z),
|
|
|
- video: common.createVideoElement0(url)
|
|
|
+ video: index == 1 && common.createVideoElement0(url)
|
|
|
}
|
|
|
})
|
|
|
|