/////////////////////////////////////////////////////////////////////////////
//CbxPlayerApi.js
//WINNOV - J DOMOTO
//This script file contains methods for interacting with the cbox player
/////////////////////////////////////////////////////////////////////////////


//BEGIN PLAYER FUNCTIONS

function CbxPlayer_IsReady()
{
	return CbxCore_IsRecordingXmlLoaded();
}

function CbxPlayer_GetRecordingXML()
{
	return CbxCore_GetRecordingXml();
}

function CbxPlayer_GetDuration()
{
    return CbxCore_GetDuration();
}

function CbxPlayer_GetCurrentPosition()
{
	return CbxCore_GetCurrentPosition();
}

function CbxPlayer_GetMostAdvancedPosition()
{
	return CbxCore_GetMostAdvancedPosition();
}

function CbxPlayer_ViewedToCompletion()
{
	return CbxCore_IsCompleted();
}

function CbxPlayer_StartPlayer(viewIndex,positionInSecs)
{
	CbxCore_StartPlayer(viewIndex,positionInSecs);
}

function CbxPlayer_GetViewCount() 
{
	return CbxCore_GetViewCount();
}

function CbxPlayer_GetViewAttribute(viewIndex,viewAttributeName)
{
	return CbxCore_GetViewAttribute(viewIndex,viewAttributeName);
}

function CbxPlayer_GetMetaDataAttribute(metaDataAttributeName)
{
	return CbxCore_GetMetaDataAttribute(metaDataAttributeName);
}

function CbxPlayer_GetEventCount()
{
	return CbxCore_GetEventCount();
}

function CbxPlayer_GetEventAttribute(eventIndex,eventAttributeName)
{
	return CbxCore_GetEventAttribute(eventIndex,eventAttributeName);
}

//END PLAYER FUNCTIONS











