AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Classes | |
class | AudioPlayerTest |
class | MockAudioPlayerObserver |
class | MockContext |
class | ProgressTimerTest |
class | TestAudioPlayerObserver |
class | UtilTestRealCryptoFactoryFixture |
Typedefs | |
using | MediaPlayerState = avsCommon::utils::mediaPlayer::MediaPlayerState |
Functions | |
static std::chrono::milliseconds | MY_WAIT_TIMEOUT (1500) |
Plenty of time for a test to complete. More... | |
static std::chrono::milliseconds | EVENT_PROCESS_DELAY (20) |
static const std::string | CHANNEL_NAME (avsCommon::sdkInterfaces::FocusManagerInterface::CONTENT_CHANNEL_NAME) |
The name of the FocusManager channel used by the AudioPlayer . More... | |
static const std::string | NAMESPACE_AUDIO_PLAYER ("AudioPlayer") |
Namespace for AudioPlayer. More... | |
static const std::string | NAMESPACE_AUDIO_PLAYER_2 ("AudioPlayer_2") |
Namespace for Another AudioPlayer. More... | |
static const std::string | NAME_PLAY ("Play") |
Name for AudioPlayer Play directive. More... | |
static const std::string | NAME_STOP ("Stop") |
Name for AudioPlayer Stop directive. More... | |
static const std::string | NAME_CLEARQUEUE ("ClearQueue") |
Name for AudioPlayer ClearQueue directive. More... | |
static const std::string | NAME_UPDATE_PROGRESS_REPORT_INTERVAL ("UpdateProgressReportInterval") |
Name for AudioPlayer UpdateProgressReportInterval directive. More... | |
static const std::string | MESSAGE_ID_TEST ("MessageId_Test") |
Message Id for testing. More... | |
static const std::string | MESSAGE_ID_TEST_2 ("MessageId_Test2") |
Another message Id for testing. More... | |
static const std::string | MESSAGE_ID_TEST_3 ("MessageId_Test3") |
Another message Id for testing. More... | |
static const std::string | PLAY_REQUEST_ID_TEST ("PlayRequestId_Test") |
PlayRequestId for testing. More... | |
static const std::string | CONTEXT_ID_TEST ("ContextId_Test") |
Context ID for testing. More... | |
static const std::string | CONTEXT_ID_TEST_2 ("ContextId_Test2") |
Context ID for testing. More... | |
static const std::string | CONTEXT_ID_TEST_3 ("ContextId_Test3") |
Context ID for testing. More... | |
static const std::string | TOKEN_TEST ("Token_Test") |
Token for testing. More... | |
static const std::string | PREV_TOKEN_TEST ("Prev_Token_Test") |
Previous token for testing. More... | |
static const std::string | FORMAT_TEST ("AUDIO_MPEG") |
Format of the audio. More... | |
static const std::string | URL_TEST ("cid:Test") |
URL for testing. More... | |
static const std::string | NAME_ENQUEUE ("ENQUEUE") |
ENQUEUE playBehavior. More... | |
static const std::string | NAME_REPLACE_ALL ("REPLACE_ALL") |
REPLACE_ALL playBehavior. More... | |
static const std::string | NAME_CLEAR_ALL ("CLEAR_ALL") |
CLEAR_ALL clearBehavior. More... | |
static const std::string | NAME_CLEAR_ENQUEUED ("CLEAR_ENQUEUED") |
CLEAR_ENQUEUED clearBehavior. More... | |
static const std::string | AUDIO_ITEM_ID_1 ("testID1") |
audioItemId for testing. More... | |
static const std::string | AUDIO_ITEM_ID_2 ("testID2") |
static const std::string | FINISHED_STATE ("FINISHED") |
The FINISHED state of the AudioPlayer . More... | |
static const std::string | EXPIRY_TEST ("481516234248151623421088") |
ExpiryTime for testing. Needs to be in ISO 8601 format. More... | |
static std::string | createEnqueuePayloadTest (long offsetInMilliseconds, const std::string &audioId=AUDIO_ITEM_ID_1) |
Payloads for testing. More... | |
static std::string | createReplaceAllPayloadTest (long offsetInMilliseconds, const std::string &audioId=AUDIO_ITEM_ID_1) |
static std::string | createPayloadWithEndOffset (long offset, long endOffset, const std::string &audioId=AUDIO_ITEM_ID_1) |
static const std::string | TAG ("AudioPlayerTest") |
String to identify log entries originating from this file. More... | |
TEST_F (AudioPlayerTest, test_createWithNullPointers) | |
TEST_F (AudioPlayerTest, test_transitionFromIdleToPlaying) | |
TEST_F (AudioPlayerTest, test_transitionFromPlayingToStopped) | |
TEST_F (AudioPlayerTest, test_transitionFromPlayingToStoppedToIdleWithClearAll) | |
TEST_F (AudioPlayerTest, test_continuesPlayingWithClearEnqueued) | |
TEST_F (AudioPlayerTest, test_transitionFromIdleToPlayingAfterClearAll) | |
TEST_F (AudioPlayerTest, testTransitionFromIdleToResumePlaying) | |
TEST_F (AudioPlayerTest, testTransitionFromPlayingToPlayingNextEnqueuedTrack) | |
TEST_F (AudioPlayerTest, testTransitionDontPlayEnqueuedTrackIfOffsetDifferent) | |
TEST_F (AudioPlayerTest, test_transitionFromPlayingToPaused) | |
TEST_F (AudioPlayerTest, test_localPause_withEnqueuedTracks_doesNotAutoProgress) | |
TEST_F (AudioPlayerTest, test_transitionFromPausedToStopped) | |
TEST_F (AudioPlayerTest, test_transitionFromPausedToIdle) | |
TEST_F (AudioPlayerTest, test_resumeAfterPaused) | |
TEST_F (AudioPlayerTest, test_callingProvideStateWhenIdle) | |
TEST_F (AudioPlayerTest, test_onPlaybackError) | |
TEST_F (AudioPlayerTest, test_onPlaybackError_Stopped) | |
TEST_F (AudioPlayerTest, testPrebufferOnPlaybackError) | |
TEST_F (AudioPlayerTest, test_onPlaybackPaused) | |
TEST_F (AudioPlayerTest, test_onPlaybackResumed) | |
TEST_F (AudioPlayerTest, test_onPlaybackFinished_bufferCompleteAfterStarted) | |
TEST_F (AudioPlayerTest, test_onPlaybackFinished_bufferCompleteBeforeStarted) | |
TEST_F (AudioPlayerTest, testOnPlaybackFinishedWithPlaybackAttributes) | |
TEST_F (AudioPlayerTest, testOnPlaybackStoppedWithPlaybackReports) | |
TEST_F (AudioPlayerTest, test_onBufferUnderrun) | |
TEST_F (AudioPlayerTest, testTimer_onBufferRefilled) | |
TEST_F (AudioPlayerTest, test_onTags_filteredOut) | |
TEST_F (AudioPlayerTest, test_onTags_filteredIn) | |
TEST_F (AudioPlayerTest, test_onTags_filteredIn_rateCheck) | |
TEST_F (AudioPlayerTest, test_onTags_filteredIn_duplicateCheck) | |
TEST_F (AudioPlayerTest, test_cancelDirective) | |
TEST_F (AudioPlayerTest, test_focusChangeToNoneInIdleState) | |
TEST_F (AudioPlayerTest, test_focusChangeFromForegroundToBackgroundInIdleState) | |
TEST_F (AudioPlayerTest, test_focusChangeFromNoneToBackgroundInIdleState) | |
TEST_F (AudioPlayerTest, test_focusChangesInPlayingState) | |
TEST_F (AudioPlayerTest, test_focusChangesInStoppedState) | |
TEST_F (AudioPlayerTest, test_focusChangesInPausedState) | |
TEST_F (AudioPlayerTest, test_focusChangesInBufferUnderrunState) | |
TEST_F (AudioPlayerTest, test_focusChangeToBackgroundBeforeOnPlaybackStarted) | |
TEST_F (AudioPlayerTest, test_playAfterOnPlaybackError) | |
TEST_F (AudioPlayerTest, test_playCallsCaptionManager) | |
TEST_F (AudioPlayerTest, test_playParsesCaptionPayload) | |
TEST_F (AudioPlayerTest, test_playbackStartedSwitchesHandler) | |
TEST_F (AudioPlayerTest, test_progressReportDelayElapsed) | |
TEST_F (AudioPlayerTest, test_progressReportDelayElapsedDelayLessThanOffset) | |
TEST_F (AudioPlayerTest, testTimer_progressReportIntervalElapsed) | |
TEST_F (AudioPlayerTest, test_progressReportIntervalElapsedIntervalLessThanOffset) | |
TEST_F (AudioPlayerTest, testSlow_playOnlyAfterForegroundFocus) | |
TEST_F (AudioPlayerTest, testSlow_focusChangeRaceOnPlay) | |
TEST_F (AudioPlayerTest, testTimer_playbackStartedCallbackAfterFocusLost) | |
TEST_F (AudioPlayerTest, test1PlayerPool_PlayEnqueueFinishPlay) | |
TEST_F (AudioPlayerTest, test2PlayerPool_PlayEnqueueFinishPlay) | |
TEST_F (AudioPlayerTest, test3PlayerPool_PlayEnqueueFinishPlay) | |
TEST_F (AudioPlayerTest, testPlayRequestor) | |
TEST_F (AudioPlayerTest, testUpdateProgressReportInterval) | |
TEST_F (AudioPlayerTest, testTimer_playbackFinishedMessageOrder_1Player) | |
TEST_F (AudioPlayerTest, testTimer_playbackFinishedMessageOrder_2Players) | |
TEST_F (AudioPlayerTest, testTimer_playbackValidateReportEvents_1Player) | |
TEST_F (AudioPlayerTest, testTimer_playbackValidateFailed_1Player) | |
TEST_F (AudioPlayerTest, testTimer_playbackValidateStutter_1Player) | |
TEST_F (AudioPlayerTest, testTimer_playbackPauseResume_1Player) | |
TEST_F (AudioPlayerTest, test_publishedCapabiltiesContainsFingerprint) | |
TEST_F (AudioPlayerTest, test_localStop) | |
TEST_F (AudioPlayerTest, test_localPause) | |
TEST_F (AudioPlayerTest, test_localResumeAfterPaused) | |
TEST_F (AudioPlayerTest, test_localSeekTo) | |
TEST_F (AudioPlayerTest, test_localSeekToWhileLocalStopped) | |
TEST_F (AudioPlayerTest, DISABLED_test_endOffset) | |
TEST_F (AudioPlayerTest, test_badEndOffset) | |
TEST_F (AudioPlayerTest, test_badEndOffsetEqualValue) | |
static void | verifyOffset (std::chrono::milliseconds expected, std::chrono::milliseconds received) |
TEST_F (ProgressTimerTest, test_noDelayOrInterval) | |
TEST_F (ProgressTimerTest, test_zeroInterval) | |
TEST_F (ProgressTimerTest, test_justDelay) | |
TEST_F (ProgressTimerTest, test_justInterval) | |
TEST_F (ProgressTimerTest, test_delayAndInterval) | |
TEST_F (ProgressTimerTest, test_pause) | |
TEST_F (ProgressTimerTest, test_resumeDoesNotRepeat) | |
TEST_F (ProgressTimerTest, testTimer_offsets) | |
TEST_F (ProgressTimerTest, test_delayAndIntervalCoincide) | |
TEST_F (ProgressTimerTest, test_updateInterval) | |
TEST_F (ProgressTimerTest, test_updateIntervalAfterStop) | |
TEST_P (UtilTestRealCryptoFactoryFixture, test_generateMD5Hash) | |
INSTANTIATE_TEST_CASE_P (Parameterized, UtilTestRealCryptoFactoryFixture, ::testing::Values(UtilsTestData(TEST_STR, MD5_TEST_DATA_HEX), UtilsTestData(TEST_STR_2, MD5_TEST_DATA_2_HEX), UtilsTestData(TEST_STR_3, MD5_TEST_DATA_3_HEX))) | |
Variables | |
static const MediaPlayerState | DEFAULT_MEDIA_PLAYER_STATE = {std::chrono::milliseconds(0)} |
Default media player state for reporting all playback offsets. More... | |
static const NamespaceAndName | NAMESPACE_AND_NAME_PLAYBACK_STATE {NAMESPACE_AUDIO_PLAYER, "PlaybackState"} |
The NamespaceAndName to send to the ContextManager . More... | |
static const std::string | PLAYING_STATE {"PLAYING"} |
The PLAYING state of the AudioPlayer . More... | |
static const std::string | IDLE_STATE {"IDLE"} |
The IDLE state of the AudioPlayer . More... | |
static const long | OFFSET_IN_MILLISECONDS_TEST {100} |
The offset in milliseconds returned by the mock media player. More... | |
static const long | OFFSET_IN_MILLISECONDS_TEST2 {0} |
The offset in milliseconds returned by the mock media player. More... | |
static const long | PROGRESS_REPORT_DELAY {200} |
progressReportDelayInMilliseconds for testing. More... | |
static const long | PROGRESS_REPORT_INTERVAL {100} |
progressReportIntervalInMilliseconds for testing. More... | |
static const long | OFFSET_IN_MILLISECONDS_BEFORE_PROGRESS_REPORT_DELAY {PROGRESS_REPORT_DELAY - 1} |
The offset in milliseconds returned by the mock media player slightly before the progressReportDelayInMilliseconds. More... | |
static const long | OFFSET_IN_MILLISECONDS_AFTER_PROGRESS_REPORT_DELAY {PROGRESS_REPORT_DELAY + 1} |
The offset in milliseconds returned by the mock media player slightly before the progressReportDelayInMilliseconds. More... | |
static const long | OFFSET_IN_MILLISECONDS_BEFORE_PROGRESS_REPORT_INTERVAL {PROGRESS_REPORT_INTERVAL - 1} |
static const long | OFFSET_IN_MILLISECONDS_AFTER_PROGRESS_REPORT_INTERVAL {PROGRESS_REPORT_INTERVAL + 1} |
static const std::chrono::milliseconds | TIME_FOR_TWO_AND_A_HALF_INTERVAL_PERIODS |
The time that must elapse in order to get 2.5 interval periods. More... | |
static const long | METADATA_EVENT_DELAY {1001} |
The time to wait before sending 'onTags()' after the last send. More... | |
static const std::string | CAPTION_CONTENT_SAMPLE |
static const std::string | PLAY_REQUESTOR_TYPE_ALERT {"ALERT"} |
A playRequestor object with type "ALERT". More... | |
static const std::string | PLAY_REQUESTOR_ID {"12345678"} |
A playRequestor object id. More... | |
static const std::string | REPLACE_ALL_PAYLOAD_TEST |
static const std::string | PLAY_REQUESTOR_PAYLOAD_TEST |
static const std::string | EMPTY_PAYLOAD_TEST = "{}" |
Empty payload for testing. More... | |
static const std::string | CLEAR_ALL_PAYLOAD_TEST |
CLEAR_ALL payload for testing. More... | |
static const std::string | CLEAR_ENQUEUED_PAYLOAD_TEST |
CLEAR_ENQUEUED payload for testing. More... | |
static const std::string | TOKEN_KEY = "token" |
Token JSON key. More... | |
static const std::string | OFFSET_KEY = "offsetInMilliseconds" |
Offset JSON key. More... | |
static const std::string | SEEK_END_OFFSET_KEY = "seekEndOffsetInMilliseconds" |
Offset JSON key. More... | |
static const std::string | ACTIVITY_KEY = "playerActivity" |
Player activity JSON key. More... | |
static const std::string | IDLE_STATE_TEST |
The expected state when the AudioPlayer is not handling any directive. More... | |
static const unsigned int | PROVIDE_STATE_TOKEN_TEST {1} |
Provide State Token for testing. More... | |
static const std::string | UPDATE_PROGRESS_REPORT_INTERVAL_PAYLOAD_TEST |
UPDATE_PROGRESS_REPORT_INTERVAL payload for testing. More... | |
static const std::string | MESSAGE_EVENT_KEY = "event" |
JSON key for the event section of a message. More... | |
static const std::string | MESSAGE_HEADER_KEY = "header" |
JSON key for the header section of a message. More... | |
static const std::string | MESSAGE_NAME_KEY = "name" |
JSON key for the name section of a message. More... | |
static const std::string | MESSAGE_TOKEN_KEY = "token" |
JSON key for the token section of a message. More... | |
static const std::string | MESSAGE_PAYLOAD_KEY = "payload" |
JSON key for the payload section of a message. More... | |
static const std::string | MESSAGE_METADATA_KEY = "metadata" |
JSON key for the metadata section of a message. More... | |
static const std::string | MESSAGE_METADATA_STRING_KEY = "StringKey" |
JSON key for "string" type field in metadata section of StreamMetadataExtracted event. More... | |
static const std::string | MESSAGE_METADATA_STRING_KEY_WL = "Title" |
JSON key for "string" type field in metadata section of StreamMetadataExtracted event. On allowlist. More... | |
static const std::string | MESSAGE_METADATA_STRING_VALUE = "StringValue" |
JSON value for "string" type field in metadata section of StreamMetadataExtracted event. More... | |
static const std::string | MESSAGE_METADATA_STRING_VALUE_ALT = "StringValue2" |
JSON value for alternate "string" type field in metadata section of StreamMetadataExtracted event. More... | |
static const std::string | MESSAGE_METADATA_UINT_KEY = "UintKey" |
JSON key for "uint" type field in metadata section of StreamMetadataExtracted event. More... | |
static const std::string | MESSAGE_METADATA_UINT_VALUE = "12345" |
JSON value for "uint" type field in metadata section of StreamMetadataExtracted event. More... | |
static const std::string | MESSAGE_METADATA_INT_KEY = "IntKey" |
JSON key for "int" type field in metadata section of StreamMetadataExtracted event. More... | |
static const std::string | MESSAGE_METADATA_INT_VALUE = "67890" |
JSON value for "int" type field in metadata section of StreamMetadataExtracted event. More... | |
static const std::string | MESSAGE_METADATA_DOUBLE_KEY = "DoubleKey" |
JSON key for "double" type field in metadata section of StreamMetadataExtracted event. More... | |
static const std::string | MESSAGE_METADATA_DOUBLE_VALUE = "3.14" |
JSON value for "double" type field in metadata section of StreamMetadataExtracted event. More... | |
static const std::string | MESSAGE_METADATA_BOOLEAN_KEY = "BooleanKey" |
JSON key for "boolean" type field in metadata section of StreamMetadataExtracted event. More... | |
static const std::string | MESSAGE_METADATA_BOOLEAN_VALUE = "true" |
JSON value for "boolean" type field in metadata section of StreamMetadataExtracted event. More... | |
static const std::string | MESSAGE_PLAYBACK_ATTRIBUTES_KEY = "playbackAttributes" |
JSON key for the playbackAttributes section of a message. More... | |
static const std::string | MESSAGE_PLAYBACK_ATTRIBUTES_NAME_KEY = "name" |
JSON key for "name" field in playbackAttributes section of message. More... | |
static const std::string | MESSAGE_PLAYBACK_ATTRIBUTES_NAME_VALUE = "STREAM_NAME_ABSENT" |
JSON value for "name" field in playbackAttributes section of message. More... | |
static const std::string | MESSAGE_PLAYBACK_ATTRIBUTES_CODEC_KEY = "codec" |
JSON key for "codec" field in playbackAttributes section of message. More... | |
static const std::string | MESSAGE_PLAYBACK_ATTRIBUTES_CODEC_VALUE = "opus" |
JSON value for "codec" field in playbackAttributes section of message. More... | |
static const std::string | MESSAGE_PLAYBACK_ATTRIBUTES_SAMPLING_RATE_KEY = "samplingRateInHertz" |
JSON key for "samplingRateInHertz" field in playbackAttributes section of message. More... | |
static const long | MESSAGE_PLAYBACK_ATTRIBUTES_SAMPLING_RATE_VALUE = 48000 |
JSON value for "samplingRateInHertz" field in playbackAttributes section of message. More... | |
static const std::string | MESSAGE_PLAYBACK_ATTRIBUTES_BITRATE_KEY = "dataRateInBitsPerSecond" |
JSON key for "dataRateInBitsPerSecond" field in playbackAttributes section of message. More... | |
static const long | MESSAGE_PLAYBACK_ATTRIBUTES_BITRATE_VALUE = 49000 |
JSON value for "dataRateInBitsPerSecond" field in playbackAttributes section of message. More... | |
static const std::string | MESSAGE_PLAYBACK_REPORTS_KEY = "playbackReports" |
JSON key for the playbackReports section of a message. More... | |
static const std::string | MESSAGE_PLAYBACK_REPORTS_START_OFFSET_KEY = "startOffsetInMilliseconds" |
JSON key for "startOffsetInMilliseconds" field in playbackReports section of message. More... | |
static const long | MESSAGE_PLAYBACK_REPORTS_START_OFFSET_VALUE = 0 |
JSON value for "startOffsetInMilliseconds" field in playbackReports section of message. More... | |
static const std::string | MESSAGE_PLAYBACK_REPORTS_END_OFFSET_KEY = "endOffsetInMilliseconds" |
JSON key for "endOffsetInMilliseconds" field in playbackReports section of message. More... | |
static const long | MESSAGE_PLAYBACK_REPORTS_END_OFFSET_VALUE = 10000 |
JSON value for "endOffsetInMilliseconds" field in playbackReports section of message. More... | |
static const std::string | PLAYBACK_STARTED_NAME = "PlaybackStarted" |
Name of PlaybackStarted event. More... | |
static const std::string | PLAYBACK_NEARLY_FINISHED_NAME = "PlaybackNearlyFinished" |
Name of PlaybackNearlyFinished event. More... | |
static const std::string | PLAYBACK_FINISHED_NAME = "PlaybackFinished" |
Name of PlaybackFinished event. More... | |
static const std::string | PLAYBACK_STOPPED_NAME = "PlaybackStopped" |
Name of PlaybackStopped event. More... | |
static const std::string | PLAYBACK_PAUSED_NAME = "PlaybackPaused" |
Name of PlaybackPaused event. More... | |
static const std::string | PLAYBACK_FAILED_NAME = "PlaybackFailed" |
Name of PlaybackFailed event. More... | |
static const std::string | PLAYBACK_RESUMED_NAME = "PlaybackResumed" |
Name of PlaybackResumed event. More... | |
static const std::string | PLAYBACK_STUTTER_STARTED_NAME = "PlaybackStutterStarted" |
Name of PlaybackStutterStarted event. More... | |
static const std::string | PLAYBACK_STUTTER_FINISHED_NAME = "PlaybackStutterFinished" |
Name of PlaybackStutterFinished event. More... | |
static const std::string | PROGRESS_REPORT_DELAY_ELAPSED_NAME = "ProgressReportDelayElapsed" |
Name of ProgressReportDelayElapsed event. More... | |
static const std::string | PROGRESS_REPORT_INTERVAL_ELAPSED_NAME = "ProgressReportIntervalElapsed" |
Name of ProgressReportIntervalElapsed event. More... | |
static const std::string | PROGRESS_REPORT_INTERVAL_UPDATED_NAME = "ProgressReportIntervalUpdated" |
Name of ProgressReportIntervalUpdated event. More... | |
static const std::string | STREAM_METADATA_EXTRACTED_NAME = "StreamMetadataExtracted" |
Name of StreamMetadataExtracted event. More... | |
static const std::string | SEEK_COMPLETE_NAME = "PlaybackSeeked" |
Name of SeekComplete event. More... | |
static const Fingerprint | FINGERPRINT = {"com.audioplayer.test", "DEBUG", "0001"} |
Fingerprint for media player. More... | |
static const std::string | FINGERPRINT_KEY = "fingerprint" |
Key for "fingerprint" in AudioPlayer configurations. More... | |
static const std::string | FINGERPRINT_PACKAGE_KEY = "package" |
JSON key for "package" in fingerprint configuration. More... | |
static const std::string | FINGERPRINT_BUILD_TYPE_KEY = "buildType" |
JSON key for "buildType" in fingerprint configuration. More... | |
static const std::string | FINGERPRINT_VERSION_NUMBER_KEY = "versionNumber" |
JSON key for "versionNumber" in fingerprint configuration. More... | |
static const std::vector< std::string > | EVENTS_WITH_REPORTS |
List of event messages expected to have PlaybackReports field. More... | |
static const std::chrono::milliseconds | MILLIS_10 {10} |
10 millisecond delay or interval value. More... | |
static const std::chrono::milliseconds | MILLIS_25 {25} |
25 millisecond delay or interval value (something not an interval of MILLIS_10 ). More... | |
static const std::chrono::milliseconds | MILLIS_100 {100} |
100 millisecond duration to allow ProgressTimer to misbehave. More... | |
static const std::chrono::seconds | FAIL_TIMEOUT {5} |
5 second timer to allow plenty of time for expected behaviors to be detected. More... | |
static const std::chrono::milliseconds | OFFSET_TEST_DELAY {300} |
Delay value to use for test to verify offsets. More... | |
static const std::chrono::milliseconds | OFFSET_TEST_INTERVAL {500} |
Interval value to use for test to verify offsets. More... | |
static const std::chrono::milliseconds | LOWER_ERROR {100} |
Amount an offset can be less than expected and still be acceptable. More... | |
static const std::chrono::milliseconds | UPPER_ERROR {200} |
Amount an offset can be greater than expected and still be acceptable. More... | |
using alexaClientSDK::acsdkAudioPlayer::test::MediaPlayerState = typedef avsCommon::utils::mediaPlayer::MediaPlayerState |
|
static |
audioItemId for testing.
|
static |
|
static |
The name of the FocusManager
channel used by the AudioPlayer
.
|
static |
Context ID for testing.
|
static |
Context ID for testing.
|
static |
Context ID for testing.
|
static |
Payloads for testing.
|
static |
|
static |
|
static |
|
static |
ExpiryTime for testing. Needs to be in ISO 8601 format.
|
static |
The FINISHED
state of the AudioPlayer
.
|
static |
Format of the audio.
alexaClientSDK::acsdkAudioPlayer::test::INSTANTIATE_TEST_CASE_P | ( | Parameterized | , |
UtilTestRealCryptoFactoryFixture | , | ||
::testing::Values(UtilsTestData(TEST_STR, MD5_TEST_DATA_HEX), UtilsTestData(TEST_STR_2, MD5_TEST_DATA_2_HEX), UtilsTestData(TEST_STR_3, MD5_TEST_DATA_3_HEX)) | |||
) |
|
static |
Message Id for testing.
|
static |
Another message Id for testing.
|
static |
Another message Id for testing.
|
static |
Plenty of time for a test to complete.
|
static |
CLEAR_ALL clearBehavior.
|
static |
CLEAR_ENQUEUED clearBehavior.
|
static |
Name for AudioPlayer ClearQueue directive.
|
static |
ENQUEUE playBehavior.
|
static |
Name for AudioPlayer Play directive.
|
static |
REPLACE_ALL playBehavior.
|
static |
Name for AudioPlayer Stop directive.
|
static |
Name for AudioPlayer UpdateProgressReportInterval directive.
|
static |
Namespace for AudioPlayer.
|
static |
Namespace for Another AudioPlayer.
|
static |
PlayRequestId for testing.
|
static |
Previous token for testing.
|
static |
String to identify log entries originating from this file.
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | ProgressTimerTest | , |
test_noDelayOrInterval | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | ProgressTimerTest | , |
test_zeroInterval | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | ProgressTimerTest | , |
test_justDelay | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | ProgressTimerTest | , |
test_justInterval | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | ProgressTimerTest | , |
test_delayAndInterval | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | ProgressTimerTest | , |
test_pause | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | ProgressTimerTest | , |
test_resumeDoesNotRepeat | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | ProgressTimerTest | , |
testTimer_offsets | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | ProgressTimerTest | , |
test_delayAndIntervalCoincide | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | ProgressTimerTest | , |
test_updateInterval | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | ProgressTimerTest | , |
test_updateIntervalAfterStop | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_createWithNullPointers | |||
) |
Test create() with nullptrs
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_transitionFromIdleToPlaying | |||
) |
Test transition from Idle to Playing
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_transitionFromPlayingToStopped | |||
) |
Test transition from Playing to Stopped with Stop Directive
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_transitionFromPlayingToStoppedToIdleWithClearAll | |||
) |
Test transition from Playing to Stopped, then IDLE with ClearQueue.CLEAR_ALL Directive
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_continuesPlayingWithClearEnqueued | |||
) |
Test transition from Playing to Stopped with ClearQueue.CLEAR_ENQUEUED Directive Note - should not transition to idle
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_transitionFromIdleToPlayingAfterClearAll | |||
) |
Test transition from Idle to Playing after issuing second Play directive
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
testTransitionFromIdleToResumePlaying | |||
) |
Test transition from Idle to Playing after issuing second Play directive, resuming
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
testTransitionFromPlayingToPlayingNextEnqueuedTrack | |||
) |
Test transition to next track, when next track has been enqueued
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
testTransitionDontPlayEnqueuedTrackIfOffsetDifferent | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_transitionFromPlayingToPaused | |||
) |
Test transition from Playing to Paused when focus changes to Dialog channel
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_localPause_withEnqueuedTracks_doesNotAutoProgress | |||
) |
Test that AudioPlayer stays stopped and does not progress after a local stop
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_transitionFromPausedToStopped | |||
) |
Test transition from Paused to Stopped on Stop directive
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_transitionFromPausedToIdle | |||
) |
Test transition from Paused to Idle on ClearQueue.CLEAR_ALL directive
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_resumeAfterPaused | |||
) |
Test transition from Paused to Playing after resume
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_callingProvideStateWhenIdle | |||
) |
Test provideState
while IDLE
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_onPlaybackError | |||
) |
Test onPlaybackError
and expect a PlaybackFailed message
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_onPlaybackError_Stopped | |||
) |
Test onPlaybackError
and expect a PlaybackFailed message
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
testPrebufferOnPlaybackError | |||
) |
Test onPlaybackError
during pre-buffering
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_onPlaybackPaused | |||
) |
Test onPlaybackPaused
and expect a PlaybackPaused message
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_onPlaybackResumed | |||
) |
Test onPlaybackResumed
and expect a PlaybackResumed message
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_onPlaybackFinished_bufferCompleteAfterStarted | |||
) |
Test onPlaybackFinished
and expect a PLAYBACK_NEARLY_FINISHED_NAME and a PLAYBACK_FINISHED_NAME message
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_onPlaybackFinished_bufferCompleteBeforeStarted | |||
) |
Test onPlaybackFinished
and expect a PLAYBACK_NEARLY_FINISHED_NAME and a PLAYBACK_FINISHED_NAME message
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
testOnPlaybackFinishedWithPlaybackAttributes | |||
) |
Test onPlaybackFinished
with playbackAttributes.
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
testOnPlaybackStoppedWithPlaybackReports | |||
) |
Test onPlaybackStopped
with playbackReports.
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_onBufferUnderrun | |||
) |
Test onBufferUnderrun
and expect a PlaybackStutterStarted message
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
testTimer_onBufferRefilled | |||
) |
Test onBufferRefilled
and expect a PlaybackStutterFinished message
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_onTags_filteredOut | |||
) |
Test onTags
and expect valid JSON. Build a vector of tags and pass to Observer (onTags). Observer will use the vector of tags and build a valid JSON object "StreamMetadataExtracted Event". This JSON object is verified in verifyTags. Verify that metadata not on allowlist is removed, and not sent
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_onTags_filteredIn | |||
) |
Test onTags
and expect valid JSON. Build a vector of tags and pass to Observer (onTags). Observer will use the vector of tags and build a valid JSON object "StreamMetadataExtracted Event". This JSON object is verified in verifyTags. Send data on allowlist
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_onTags_filteredIn_rateCheck | |||
) |
Test onTags
and expect valid JSON. Build a vector of tags and pass to Observer (onTags). Observer will use the vector of tags and build a valid JSON object "StreamMetadataExtracted Event". This JSON object is verified in verifyTags. Send data on allowlist make sure event not sent too fast
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_onTags_filteredIn_duplicateCheck | |||
) |
Test onTags
and expect valid JSON. Build a vector of tags and pass to Observer (onTags). Observer will use the vector of tags and build a valid JSON object "StreamMetadataExtracted Event". This JSON object is verified in verifyTags. Send data on allowlist make sure duplicate not sent
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_cancelDirective | |||
) |
Test cancelDirective
Expect the handleDirective
call to the cancelled directive returns false
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_focusChangeToNoneInIdleState | |||
) |
Test focus change to NONE in IDLE state Expect nothing to happen
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_focusChangeFromForegroundToBackgroundInIdleState | |||
) |
Test focus change from FOREGROUND to BACKGROUND in IDLE state Expect a call to pause(). This call is intended to go through MediaPlayer and cause nothing to happen due to a lack of a queued AudioItem.
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_focusChangeFromNoneToBackgroundInIdleState | |||
) |
Test focus change in from NONE to BACKGROUND while IDLE. Expect a call to pause. This isn't an expected state during normal execution.
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_focusChangesInPlayingState | |||
) |
Test focus changes in PLAYING state Expect to pause when switching to BACKGROUND and to stop when switching to NONE
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_focusChangesInStoppedState | |||
) |
Test focus changes in STOPPED state Expect to remain in STOPPED state when switching to FOREGROUND (because there are no queued AudioItems) and to transition to PAUSED when switching to BACKGROUND.
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_focusChangesInPausedState | |||
) |
Test focus changes in PAUSED state Expect to resume when switching to FOREGROUND, expect nothing when switching to BACKGROUND, expect stop when switching to NONE
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_focusChangesInBufferUnderrunState | |||
) |
Test focus changes in BUFFER_UNDERRUN state Expect nothing to happen when switching to FOREGROUND, expect to pause when switching to BACKGROUND, expect to stop when switching to NONE
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_focusChangeToBackgroundBeforeOnPlaybackStarted | |||
) |
Test an immediate focus change to background after play() has been called Expect that pause() is called when AudioPlayer
is pushed into background
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_playAfterOnPlaybackError | |||
) |
Test onPlaybackError
and expect AudioPlayer to change to STOPPED state and that it would go back to PLAYING state when a new REPLACE_ALL Play directive comes in.
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_playCallsCaptionManager | |||
) |
Test play directive calls CaptionManager.onCaption()
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_playParsesCaptionPayload | |||
) |
Test play directive parses caption payload.
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_playbackStartedSwitchesHandler | |||
) |
Test onPlaybackStarted
calls the PlaybackRouter
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_progressReportDelayElapsed | |||
) |
Test to verify that ProgressReportDelayElapsed Event is sent correctly. This test is timing sensitive.
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_progressReportDelayElapsedDelayLessThanOffset | |||
) |
Test to verify that ProgressReportDelayElapsed Event is not sent when the delay is less than the offset. This test is timing sensitive.
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
testTimer_progressReportIntervalElapsed | |||
) |
Test to verify that ProgressReportIntervalElapsed Event is sent when the interval is less than the offset. There will be a ProgressReportIntervalElapsed Event at 100, 200 and 300 ms. This test is timing sensitive.
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_progressReportIntervalElapsedIntervalLessThanOffset | |||
) |
Test to verify that ProgressReportIntervalElapsed Event is sent when the interval is less than the offset. There will be a ProgressReportIntervalElapsed Event at 200 and 300 ms. This test is timing sensitive.
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
testSlow_playOnlyAfterForegroundFocus | |||
) |
Test when AudioPlayer
goes to BACKGROUND focus that it changes to PAUSED state. And when another PLAY directive with REPLACE_ALL behavior comes in, that it would go to STOPPED state, and will not start playing again until the focus goes back to FOREGROUND.
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
testSlow_focusChangeRaceOnPlay | |||
) |
Test when AudioPlayer
goes to BACKGROUND focus that it changes to PAUSED state. And when another PLAY directive with REPLACE_ALL behavior comes in, if a Race condition occurs causing the focus change to NONE to execute while still in PAUSED state, that a FOREGROUND change will still play
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
testTimer_playbackStartedCallbackAfterFocusLost | |||
) |
Test when AudioPlayer
starts to play but loses focus before the onPlaybackStarted callback is received. After onPlaybackStarted is received, playback should stop.
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test1PlayerPool_PlayEnqueueFinishPlay | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test2PlayerPool_PlayEnqueueFinishPlay | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test3PlayerPool_PlayEnqueueFinishPlay | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
testPlayRequestor | |||
) |
Test the playRequestor Object can be parsed by the AudioPlayer and reported to its observers via the AudioPlayerObserverInterface.
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
testUpdateProgressReportInterval | |||
) |
Test that when UpdateProgressReportInterval directive is sent then onProgressReportIntervalUpdated event is called.
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
testTimer_playbackFinishedMessageOrder_1Player | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
testTimer_playbackFinishedMessageOrder_2Players | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
testTimer_playbackValidateReportEvents_1Player | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
testTimer_playbackValidateFailed_1Player | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
testTimer_playbackValidateStutter_1Player | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
testTimer_playbackPauseResume_1Player | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_publishedCapabiltiesContainsFingerprint | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_localStop | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_localPause | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_localResumeAfterPaused | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_localSeekTo | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_localSeekToWhileLocalStopped | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
DISABLED_test_endOffset | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_badEndOffset | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_F | ( | AudioPlayerTest | , |
test_badEndOffsetEqualValue | |||
) |
alexaClientSDK::acsdkAudioPlayer::test::TEST_P | ( | UtilTestRealCryptoFactoryFixture | , |
test_generateMD5Hash | |||
) |
|
static |
Token for testing.
|
static |
URL for testing.
|
static |
Helper function used to validate received offset values.
expected | The expected offset. |
received | The received offset. |
|
static |
Player activity JSON key.
|
static |
|
static |
CLEAR_ALL payload for testing.
|
static |
CLEAR_ENQUEUED payload for testing.
|
static |
Default media player state for reporting all playback offsets.
|
static |
Empty payload for testing.
|
static |
List of event messages expected to have PlaybackReports field.
|
static |
5 second timer to allow plenty of time for expected behaviors to be detected.
|
static |
Fingerprint for media player.
|
static |
JSON key for "buildType" in fingerprint configuration.
|
static |
Key for "fingerprint" in AudioPlayer configurations.
|
static |
JSON key for "package" in fingerprint configuration.
|
static |
JSON key for "versionNumber" in fingerprint configuration.
|
static |
The IDLE
state of the AudioPlayer
.
|
static |
The expected state when the AudioPlayer
is not handling any directive.
|
static |
Amount an offset can be less than expected and still be acceptable.
|
static |
JSON key for the event section of a message.
|
static |
JSON key for the header section of a message.
|
static |
JSON key for "boolean" type field in metadata section of StreamMetadataExtracted event.
|
static |
JSON value for "boolean" type field in metadata section of StreamMetadataExtracted event.
|
static |
JSON key for "double" type field in metadata section of StreamMetadataExtracted event.
|
static |
JSON value for "double" type field in metadata section of StreamMetadataExtracted event.
|
static |
JSON key for "int" type field in metadata section of StreamMetadataExtracted event.
|
static |
JSON value for "int" type field in metadata section of StreamMetadataExtracted event.
|
static |
JSON key for the metadata section of a message.
|
static |
JSON key for "string" type field in metadata section of StreamMetadataExtracted event.
|
static |
JSON key for "string" type field in metadata section of StreamMetadataExtracted event. On allowlist.
|
static |
JSON value for "string" type field in metadata section of StreamMetadataExtracted event.
|
static |
JSON value for alternate "string" type field in metadata section of StreamMetadataExtracted event.
|
static |
JSON key for "uint" type field in metadata section of StreamMetadataExtracted event.
|
static |
JSON value for "uint" type field in metadata section of StreamMetadataExtracted event.
|
static |
JSON key for the name section of a message.
|
static |
JSON key for the payload section of a message.
|
static |
JSON key for "dataRateInBitsPerSecond" field in playbackAttributes section of message.
|
static |
JSON value for "dataRateInBitsPerSecond" field in playbackAttributes section of message.
|
static |
JSON key for "codec" field in playbackAttributes section of message.
|
static |
JSON value for "codec" field in playbackAttributes section of message.
|
static |
JSON key for the playbackAttributes section of a message.
|
static |
JSON key for "name" field in playbackAttributes section of message.
|
static |
JSON value for "name" field in playbackAttributes section of message.
|
static |
JSON key for "samplingRateInHertz" field in playbackAttributes section of message.
|
static |
JSON value for "samplingRateInHertz" field in playbackAttributes section of message.
|
static |
JSON key for "endOffsetInMilliseconds" field in playbackReports section of message.
|
static |
JSON value for "endOffsetInMilliseconds" field in playbackReports section of message.
|
static |
JSON key for the playbackReports section of a message.
|
static |
JSON key for "startOffsetInMilliseconds" field in playbackReports section of message.
|
static |
JSON value for "startOffsetInMilliseconds" field in playbackReports section of message.
|
static |
JSON key for the token section of a message.
|
static |
The time to wait before sending 'onTags()' after the last send.
|
static |
10 millisecond delay or interval value.
|
static |
100 millisecond duration to allow ProgressTimer to misbehave.
|
static |
25 millisecond delay or interval value (something not an interval of MILLIS_10
).
|
static |
The NamespaceAndName
to send to the ContextManager
.
|
static |
The offset in milliseconds returned by the mock media player slightly before the progressReportDelayInMilliseconds.
|
static |
The offset in milliseconds returned by the mock media player slightly before the progressReportIntervalInMilliseconds.
|
static |
The offset in milliseconds returned by the mock media player slightly before the progressReportDelayInMilliseconds.
|
static |
The offset in milliseconds returned by the mock media player slightly before the progressReportIntervalInMilliseconds.
|
static |
The offset in milliseconds returned by the mock media player.
|
static |
The offset in milliseconds returned by the mock media player.
|
static |
Offset JSON key.
|
static |
Delay value to use for test to verify offsets.
|
static |
Interval value to use for test to verify offsets.
|
static |
A playRequestor object id.
|
static |
|
static |
A playRequestor object with type "ALERT".
|
static |
Name of PlaybackFailed event.
|
static |
Name of PlaybackFinished event.
|
static |
Name of PlaybackNearlyFinished event.
|
static |
Name of PlaybackPaused event.
|
static |
Name of PlaybackResumed event.
|
static |
Name of PlaybackStarted event.
|
static |
Name of PlaybackStopped event.
|
static |
Name of PlaybackStutterFinished event.
|
static |
Name of PlaybackStutterStarted event.
|
static |
The PLAYING
state of the AudioPlayer
.
|
static |
progressReportDelayInMilliseconds for testing.
|
static |
Name of ProgressReportDelayElapsed event.
|
static |
progressReportIntervalInMilliseconds for testing.
|
static |
Name of ProgressReportIntervalElapsed event.
|
static |
Name of ProgressReportIntervalUpdated event.
|
static |
Provide State Token for testing.
|
static |
|
static |
Name of SeekComplete event.
|
static |
Offset JSON key.
|
static |
Name of StreamMetadataExtracted event.
|
static |
The time that must elapse in order to get 2.5 interval periods.
|
static |
Token JSON key.
|
static |
UPDATE_PROGRESS_REPORT_INTERVAL payload for testing.
|
static |
Amount an offset can be greater than expected and still be acceptable.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0