1 /* 2 * Copyright (c) 2020-2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef PLAYERCONTROL_MSG_TYPE_H 17 #define PLAYERCONTROL_MSG_TYPE_H 18 19 #ifdef __cplusplus 20 #if __cplusplus 21 extern "C" { 22 #endif 23 #endif /* __cplusplus */ 24 25 enum PlayerControlMsgType { 26 PLAYERCONTROL_MSG_SETATTR = 0, // setmedia 27 PLAYERCONTROL_MSG_REGCALLBACK, 28 PLAYERCONTROL_MSG_SET_DATASOURCE_FD, 29 PLAYERCONTROL_MSG_SET_DATASOURCE_URI, 30 PLAYERCONTROL_MSG_SET_DATASOURCE_STREAM, 31 PLAYERCONTROL_MSG_PREPARE, 32 PLAYERCONTROL_MSG_PLAY, 33 PLAYERCONTROL_MSG_SEEK, 34 PLAYERCONTROL_MSG_PAUSE, 35 PLAYERCONTROL_MSG_TPLAY, 36 PLAYERCONTROL_MSG_STOP, 37 PLAYERCONTROL_MSG_GETFILEINFO, 38 PLAYERCONTROL_MSG_HANDLEDATA, 39 PLAYERCONTROL_MSG_ERROR, 40 PLAYERCONTROL_MSG_SET_VOLUME, 41 PLAYERCONTROL_MSG_INVOKE, 42 PLAYERCONTROL_MSG_SET_AUDIOSTREAM_TYPE, 43 PLAYERCONTROL_MSG_BUTT 44 }; 45 46 #ifdef __cplusplus 47 #if __cplusplus 48 } 49 #endif 50 #endif /* __cplusplus */ 51 52 #endif /* PLAYERCONTROL_MSG_TYPE_H */ 53