index.js
function (request, token, offset, activity) {
		'use strict';
		if (!request) {
			throw 'request must be specified to add entity resolution';
		}
		
		if (token) {
			request.context.AudioPlayer.token = token;
		}
		if (offset) {
			request.context.AudioPlayer.offsetInMilliseconds = offset;
		}
		if (activity) {
			request.context.AudioPlayer.playerActivity = activity;
		}
		return request;
	}
function (request, token, offset, activity) {
		'use strict';
		if (!request) {
			throw 'request must be specified to add entity resolution';
		}
		
		if (token) {
			request.context.AudioPlayer.token = token;
		}
		if (offset) {
			request.context.AudioPlayer.offsetInMilliseconds = offset;
		}
		if (activity) {
			request.context.AudioPlayer.playerActivity = activity;
		}
		return request;
	}
function ( request , token , offset , activity ) { 'use strict' ; if ( ! request ) { throw 'request must be specified to add entity resolution' ; } if ( token ) { request . context . AudioPlayer . token = token ; } if ( offset ) { request . context . AudioPlayer . offsetInMilliseconds = offset ; } if ( activity ) { request . context . AudioPlayer . playerActivity = activity ; } return request ; }
Adds an AudioPlayer context to the given request.
@param {object} request The intent request to modify.
@param {string} token An opaque token that represents the audio stream described by this AudioPlayer object. You provide this token when sending the Play directive.
@param {string} offset Identifies a track’s offset in milliseconds at the time the request was sent. This is 0 if the track is at the beginning.
@param {string} activity Indicates the last known state of audio playback.
@return {object} the given intent request to allow chaining.
Adds an AudioPlayer context to the given request .