function OnErrorStarter()
{
try
{
onErrorObject();
}
catch(e)
{
}
}
// ocx Ȱ¼ºÈ
function GetStarterDiv()
{
try
{
var obj = document.getElementById("divStarter");
var szStarter = "";
if( obj == null )
{
obj = document.createElement("div");
obj.setAttribute("id", "divStarter");
obj.width = "200";
obj.height = "100";
document.body.appendChild(obj);
obj.innerHTML = szStarter;
}
else
{
obj.innerHTML = szStarter;
}
return obj;
}
catch(e)
{
alert(e.description);
return null;
}
}
// Ç÷¹ÀÌ¾î ½ÇÇà
function runPlayer(act, code, szBjId)
{
var ticketname = "AfreecaTicket";
var control = "RunAfreeca";
if( code == "undefined" || code == "" || code == null )
{
ticketname = "PdboxTicket";
code = "";
}
if( szBjId == "undefined" || szBjId == "" || szBjId == null)
{
szBjId = "";
}
if( isPossblePlaying() )
{
if( act == "cast" )
{
control = "CastAfreeca";
/*var ticket = getCookie( ticketname );
if (ticket == null || ticket == "")
{
alert( "½ºÆ©µð¿À ½ÇÇàÀ» À§Çؼ ·Î±×ÀÎÀ» ÇØÁֽʽÿÀ.");
return;
}*/
}
var iframe = document.createElement('iframe');
iframe.style.width = '50';
iframe.style.height = '0';
iframe.setAttribute('src', 'http://live.afreeca.com:8057/afreeca/index.php?control='+control+'&nAspCode='+code+'&szBjId='+szBjId);
document.getElementsByTagName('body').item(0).appendChild(iframe);
}
else
{
alert( "½ÇÇàÁßÀÔ´Ï´Ù. Àá½Ã¸¸ ±â´Ù·ÁÁÖ¼¼¿ä" );
return;
}
}
// ÄíŰ ÆÄ½Ì
function getCookie(name)
{
var srch = name + '=';
if (document.cookie.length > 0)
{
offset = document.cookie.indexOf(srch);
if (offset != -1)
{
offset += srch.length;
end = document.cookie.indexOf(';', offset);
if (end == -1)
end = document.cookie.length;
return unescape(document.cookie.substring(offset, end));
} else return false;
} else return false;
}
// Ç÷¹ÀÌ¾î ½ÇÇà °á°ú
function runApp( json )
{
var div = GetStarterDiv();
var aRet = json.split( "\n" );
for( i=0;i.*?/,"").replace(/<\/.*/,"");
}
eval( aRet[i]);
}
return;
if( !json.match(/AfreecaStarter.*/) ) // ´Ü¼ø alert ¸¸ ÀÖ´Â ¸®ÅÏÀ̶ó¸é
{
json = json.replace(/<.*?>.*?/,"").replace(/<\/.*/,"");
}
try
{
eval( json );
}
catch(e)
{
alert(e.description);
}
}
//½Ã°£ Á¦ÇÑ ·çƾ
function ClearTimeout()
{
bIsplaying = false;
clearTimeout(oTimeId);
}
function isPossblePlaying()
{
if( ! bIsplaying )
{
bIsplaying = true;
clearTimeout(oTimeId);
oTimeId = setTimeout("ClearTimeout()",Max_Time);
return true;
}
else
{
return false;
}
}
function runPlayer2(act)
{
if( isPossblePlaying() )
{
if( act == "cast")
{
control = "CastAfreeca";
Parse_Cookie(document);
var ticket = Read_Cookie("PdboxTicket");
if( ticket == null || ticket == "")
{
alert("½ºÆ©µð¿À ½ÇÇàÀ» À§Çؼ ·Î±×ÀÎÀ» ÇØÁֽʽÿÀ.");
return;
}
}
else
{
control = "RunAfreeca";
}
document.common_action_frame.location.href = "http://live.afreeca.com:8057/afreeca/index.php?control=" + control;
}
else
{
alert("½ÇÇàÁßÀÔ´Ï´Ù. Àá½Ã¸¸ ±â´Ù·ÁÁÖ¼¼¿ä.");
return;
}
}