|
@@ -386,6 +386,7 @@ export default class ActionsHandler {
|
|
|
|
|
|
let sfns = Math.round(endRotation/6)
|
|
let sfns = Math.round(endRotation/6)
|
|
endRotation += angle/Math.PI*180
|
|
endRotation += angle/Math.PI*180
|
|
|
|
+ endRotation = (endRotation % 360 + 360) % 360
|
|
|
|
|
|
let efns = Math.round(endRotation/6)
|
|
let efns = Math.round(endRotation/6)
|
|
|
|
|
|
@@ -402,11 +403,14 @@ export default class ActionsHandler {
|
|
// 起始帧不需要传入
|
|
// 起始帧不需要传入
|
|
if(efns>sfns) sfns = (sfns + 1 + 60) % 60
|
|
if(efns>sfns) sfns = (sfns + 1 + 60) % 60
|
|
if(efns<sfns) sfns = (sfns - 1 + 60) % 60
|
|
if(efns<sfns) sfns = (sfns - 1 + 60) % 60
|
|
- efns = (efns + 60) % 60
|
|
|
|
|
|
+ efns = sfns // (efns + 60) % 60
|
|
// console.error(sfns, efns)
|
|
// console.error(sfns, efns)
|
|
|
|
|
|
|
|
+ window.rotating = true // 标记旋转中
|
|
|
|
+ window.rotateFrame = efns - sfns // 旋转帧数
|
|
window.camera_endRotation = endRotation
|
|
window.camera_endRotation = endRotation
|
|
window.star_angle = angle
|
|
window.star_angle = angle
|
|
|
|
+
|
|
console.log('取帧:'+sfns+','+efns);
|
|
console.log('取帧:'+sfns+','+efns);
|
|
this.fetchData({
|
|
this.fetchData({
|
|
type:type,
|
|
type:type,
|
|
@@ -478,6 +482,7 @@ export default class ActionsHandler {
|
|
this.vDecoder.fetch({
|
|
this.vDecoder.fetch({
|
|
path: "https://laser-data.oss-cn-shenzhen.aliyuncs.com/test-video/2",
|
|
path: "https://laser-data.oss-cn-shenzhen.aliyuncs.com/test-video/2",
|
|
range: [sfns, efns],
|
|
range: [sfns, efns],
|
|
|
|
+ // range: sfns == efns ? [efns] : [sfns, efns],
|
|
});
|
|
});
|
|
}
|
|
}
|
|
else{
|
|
else{
|