-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Android tv-casting-app: Add support for additional Media commands to …
…JNI library (#20973) (#20981) * Fixing break in build script for android tv-casting-app from #20422 * Android tv-casting-app: Adding support to send several Media commands Co-authored-by: Sharad Binjola <[email protected]>
- Loading branch information
1 parent
037a04c
commit f309832
Showing
8 changed files
with
505 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
examples/tv-casting-app/android/App/app/src/main/jni/cpp/Constants.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright (c) 2022 Project CHIP Authors | ||
* All rights reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
#pragma once | ||
|
||
enum MediaCommandName | ||
{ | ||
ContentLauncher_LaunchURL, | ||
ContentLauncher_LaunchContent, | ||
LevelControl_Step, | ||
LevelControl_MoveToLevel, | ||
MediaPlayback_Play, | ||
MediaPlayback_Pause, | ||
MediaPlayback_StopPlayback, | ||
MediaPlayback_Next, | ||
MediaPlayback_Seek, | ||
MediaPlayback_SkipForward, | ||
MediaPlayback_SkipBackward, | ||
ApplicationLauncher_LaunchApp, | ||
ApplicationLauncher_StopApp, | ||
ApplicationLauncher_HideApp, | ||
TargetNavigator_NavigateTarget, | ||
KeypadInput_SendKey, | ||
|
||
MEDIA_COMMAND_COUNT | ||
}; |
Oops, something went wrong.