34 lines
665 B
JavaScript
34 lines
665 B
JavaScript
// @flow
|
|
|
|
/**
|
|
* The Google API scopes to request access to for streaming.
|
|
*
|
|
* @type {Array<string>}
|
|
*/
|
|
export const GOOGLE_API_SCOPES = [
|
|
'https://www.googleapis.com/auth/youtube.readonly'
|
|
];
|
|
|
|
/**
|
|
* An enumeration of the different states the Google API can be in.
|
|
*
|
|
* @private
|
|
* @type {Object}
|
|
*/
|
|
export const GOOGLE_API_STATES = {
|
|
/**
|
|
* The state in which the Google API still needs to be loaded.
|
|
*/
|
|
NEEDS_LOADING: 0,
|
|
|
|
/**
|
|
* The state in which the Google API is loaded and ready for use.
|
|
*/
|
|
LOADED: 1,
|
|
|
|
/**
|
|
* The state in which a user has been logged in through the Google API.
|
|
*/
|
|
SIGNED_IN: 2
|
|
};
|