|
|
@ -151,8 +151,13 @@ player.on('error', function (event) {
|
|
|
|
// Enable VR video support
|
|
|
|
// Enable VR video support
|
|
|
|
if (video_data.vr && video_data.params.vr_mode) {
|
|
|
|
if (video_data.vr && video_data.params.vr_mode) {
|
|
|
|
player.crossOrigin("anonymous")
|
|
|
|
player.crossOrigin("anonymous")
|
|
|
|
|
|
|
|
switch (video_data.projection_type) {
|
|
|
|
|
|
|
|
case "EQUIRECTANGULAR":
|
|
|
|
|
|
|
|
player.vr({projection: "equirectangular"});
|
|
|
|
|
|
|
|
default: // Should only be "MESH" but we'll use this as a fallback.
|
|
|
|
player.vr({projection: "EAC"});
|
|
|
|
player.vr({projection: "EAC"});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Add markers
|
|
|
|
// Add markers
|
|
|
|
if (video_data.params.video_start > 0 || video_data.params.video_end > 0) {
|
|
|
|
if (video_data.params.video_start > 0 || video_data.params.video_end > 0) {
|
|
|
|