Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ssis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net mvc asp.net mvc 360°;媒体整合_Asp.net Mvc_Google Vr_360 Panorama Viewer - Fatal编程技术网

Asp.net mvc asp.net mvc 360°;媒体整合

Asp.net mvc asp.net mvc 360°;媒体整合,asp.net-mvc,google-vr,360-panorama-viewer,Asp.net Mvc,Google Vr,360 Panorama Viewer,我正在尝试将360°图像集成到我的网站中。 但它不起作用了,有人能帮我吗? 提前谢谢 当我尝试运行它时,会出现如下所示的渲染错误(图片) 我已添加(在标题中): 在我看来,我补充说: 还可以在视图中显示脚本: var-vrView var scenes = { petra: { image: 'https://localhost:44323/images/Inside/chichen-itza.jpg', preview: 'https://loc

我正在尝试将360°图像集成到我的网站中。 但它不起作用了,有人能帮我吗? 提前谢谢

当我尝试运行它时,会出现如下所示的渲染错误(图片)

我已添加(在标题中):

在我看来,我补充说:

还可以在视图中显示脚本:


var-vrView

var scenes = {
    petra: {
        image: 'https://localhost:44323/images/Inside/chichen-itza.jpg',
        preview: 'https://localhost:44323/images/Inside/chichen-itza-preview.jpg'
    }
}

function onLoad() {
    vrView = new VRView.Player('#vrview', {
        width: '100%',
        height: 480,
        image: 'https://localhost:44323/images/Inside/chichen-itza-preview.jpg',
        is_stereo: false,
        is_autopan_off: true
    });

    vrView.on('ready', onVRViewReady);
    vrView.on('modechange', onModeChange);
    vrView.on('getposition', onGetPosition);
    vrView.on('error', onVRViewError);
}


function loadScene(id) {
    console.log('loadScene', id);
    // Set the image
    vrView.setContent({
        image: scenes[id].image,
        preview: scenes[id].preview,
        is_autopan_off: true
    });
}

function onVRViewReady(e) {
    console.log('onVRViewReady');
    loadScene('petra');
}

function onModeChange(e) {
    console.log('onModeChange', e.mode);
}

function onVRViewError(e) {
    console.log('Error! %s', e.message);
}

function onGetPosition(e) {
    console.log(e)
}

window.addEventListener('load', onLoad);</script>[![enter image description here][1]][1]`
var场景={
佩特拉:{
图像:'https://localhost:44323/images/Inside/chichen-itza.jpg',
预览:'https://localhost:44323/images/Inside/chichen-伊萨预览版.jpg'
}
}
函数onLoad(){
vrView=新的vrView.Player(“#vrView”{
宽度:“100%”,
身高:480,
图像:'https://localhost:44323/images/Inside/chichen-itza preview.jpg',
这是假的吗,
自动扫描是否关闭:正确
});
vrView.on('ready',onVRViewReady);
vrView.on('modechange',onModeChange);
vrView.on('getposition',onGetPosition);
on('error',onVRViewError);
}
函数加载场景(id){
console.log('loadScene',id);
//设置图像
vrView.setContent({
图像:场景[id]。图像,
预览:场景[id]。预览,
自动扫描是否关闭:正确
});
}
功能onVRViewReady(e){
console.log('onVRViewReady');
装载场景(“petra”);
}
函数onModeChange(e){
log('onModeChange',e.mode);
}
函数onVRViewError(e){
console.log('Error!%s',e.message);
}
功能位置(e){
控制台日志(e)
}
window.addEventListener('load',onLoad);[![在此处输入图像描述][1][1]`
试试这段代码


}