/////////////////////////////////////////////////////////////////////////////
//CbxPlayerApi.js
//WINNOV - J DOMOTO
//This script file contains methods for interacting with the cbox player
//asdf
/////////////////////////////////////////////////////////////////////////////


//BEGIN PLAYER FUNCTIONS

function CbxPlayer_IsReady()
{
	return true;
}

function CbxPlayer_GetRecordingXML()
{
	return _content.Xml();
}

function CbxPlayer_GetDuration()
{
    	return _duration;
}

function CbxPlayer_GetCurrentPosition()
{
	return _posCurrent;
}

function CbxPlayer_GetMostAdvancedPosition()
{
	return _posMax;
}

function CbxPlayer_ViewedToCompletion()
{
	return _completed;
}

function CbxPlayer_StartPlayer(viewIndex,positionInSecs)
{
	GoToPosition(positionInSecs);
	ApplyPreset(viewIndex+1);
	DoPlay();
}

function CbxPlayer_GetViewCount() 
{
	return 5;
}

function CbxPlayer_GetViewAttribute(viewIndex,viewAttributeName)
{
	return "";
}

function CbxPlayer_GetMetaDataAttribute(metaDataAttributeName)
{
	switch(metaDataAttributeName)
	{
		case "DateString":
			return _content.Meta().GetDate();
			break;
		case "Subject":
			return _content.Meta().GetTitle();
			break;
		case "Speakers":
			return _content.Meta().GetAuthor();
	}
	return "";
}

function CbxPlayer_GetEventCount()
{
	return 0;
}

function CbxPlayer_GetEventAttribute(eventIndex,eventAttributeName)
{
	return "";
}

//END PLAYER FUNCTIONS












