src/embed/scene-info.js
function SceneInfo(opt_params) {
  var params = opt_params || {};
  params.player = {
    loop: opt_params.loop,
    volume: opt_params.volume,
    muted: opt_params.muted
  };

  this.image = params.image !== undefined ? encodeURI(params.image) : undefined;
  this.preview = params.preview !== undefined ? encodeURI(params.preview) : undefined;
  this.video = params.video !== undefined ? encodeURI(params.video) : undefined;
  this.defaultYaw = THREE.Math.degToRad(params.defaultYaw || 0);

  this.isStereo = Util.parseBoolean(params.isStereo);
  this.isYawOnly = Util.parseBoolean(params.isYawOnly);
  this.isDebug = Util.parseBoolean(params.isDebug);
  this.isVROff = Util.parseBoolean(params.isVROff);
  this.isAutopanOff = Util.parseBoolean(params.isAutopanOff);
  this.loop = Util.parseBoolean(params.player.loop);
  this.volume = parseFloat(
      params.player.volume ? params.player.volume : '1');
  this.muted = Util.parseBoolean(params.player.muted);
  this.hideFullscreenButton = Util.parseBoolean(params.hideFullscreenButton);
}
function SceneInfo(opt_params) {
  var params = opt_params || {};
  params.player = {
    loop: opt_params.loop,
    volume: opt_params.volume,
    muted: opt_params.muted
  };

  this.image = params.image !== undefined ? encodeURI(params.image) : undefined;
  this.preview = params.preview !== undefined ? encodeURI(params.preview) : undefined;
  this.video = params.video !== undefined ? encodeURI(params.video) : undefined;
  this.defaultYaw = THREE.Math.degToRad(params.defaultYaw || 0);

  this.isStereo = Util.parseBoolean(params.isStereo);
  this.isYawOnly = Util.parseBoolean(params.isYawOnly);
  this.isDebug = Util.parseBoolean(params.isDebug);
  this.isVROff = Util.parseBoolean(params.isVROff);
  this.isAutopanOff = Util.parseBoolean(params.isAutopanOff);
  this.loop = Util.parseBoolean(params.player.loop);
  this.volume = parseFloat(
      params.player.volume ? params.player.volume : '1');
  this.muted = Util.parseBoolean(params.player.muted);
  this.hideFullscreenButton = Util.parseBoolean(params.hideFullscreenButton);
}
function SceneInfo ( opt_params ) { var params = opt_params || { } ; params . player = { loop : opt_params . loop , volume : opt_params . volume , muted : opt_params . muted } ; this . image = params . image !== undefined ? encodeURI ( params . image ) : undefined ; this . preview = params . preview !== undefined ? encodeURI ( params . preview ) : undefined ; this . video = params . video !== undefined ? encodeURI ( params . video ) : undefined ; this . defaultYaw = THREE . Math . degToRad ( params . defaultYaw || 0 ) ; this . isStereo = Util . parseBoolean ( params . isStereo ) ; this . isYawOnly = Util . parseBoolean ( params . isYawOnly ) ; this . isDebug = Util . parseBoolean ( params . isDebug ) ; this . isVROff = Util . parseBoolean ( params . isVROff ) ; this . isAutopanOff = Util . parseBoolean ( params . isAutopanOff ) ; this . loop = Util . parseBoolean ( params . player . loop ) ; this . volume = parseFloat ( params . player . volume ? params . player . volume : '1' ) ; this . muted = Util . parseBoolean ( params . player . muted ) ; this . hideFullscreenButton = Util . parseBoolean ( params . hideFullscreenButton ) ; }
Contains all information about a given scene.
Contains all information about a given scene .