﻿<krpano>
<!-- youtube-player.xml 1.19 -->

<modal_settings	maxsize="0.80"/>

	<!--
		modal_settings

		o maxsize
			- set the max. size of the screen-size (0.80 = 80%, 1.0 = 100%)
			- depending on the available space either the screen width or height will be used

		o parameters
			- the youtube embedding parameters
			- see for here for the documentation of all available parameters:
				https://developers.google.com/youtube/player_parameters#Parameters
			- e.g. set controls=0 to remove the default youtube control
			-->

			<action name="modal_open">
			  if(device.mobile,js(openIframes(%1,'80%',%3,%4)),
            js(openIframes(%1,%2,%3,%4,%5));
			);
			</action>

			<action name="modal_plugin_ready">
			if(layer[modal_plugin],
				tween(layer[modal_plugin].alpha, 1.0);
				);
			</action>

			<action name="modal_close">
			set(layer[modal_bg].onclick, null);

			tween(layer[modal_plugin].alpha, 0.0, 0.25, default);

			tween(layer[modal_bg].alpha,0.0, 0.50, default,
				removelayer(modal_bg);
				removelayer(modal_plugin);
				);
			</action>

			</krpano>
