• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2023 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 */
15export const APPLICATION_BUNDLE_NAME = 'ohos.samples.distributedmusicplayer'
16export const APPLICATION_SERVICE_NAME = 'ServiceAbility'
17export const APPLICATION_ABILITY_NAME = 'ohos.samples.distributedmusicplayer.MainAbility'
18
19export const enum MusicSharedEventCode {
20  START_DISTRIBUTED_MUSIC_SERVICE = 1,
21  STOP_DISTRIBUTED_MUSIC_SERVICE = 2,
22  PLAY_MUSIC_SERVICE = 3,
23  PAUSE_MUSIC_SERVICE = 4,
24  PLAY_MUSIC_SERVICE_REMOTE = 5,
25  PAUSE_MUSIC_SERVICE_REMOTE = 6,
26  STOP_LOCAL_SERIVCE = 7,
27}
28
29export const enum MusicSharedStatus {
30  MUSIC_SHARED = 0,
31  MUSIC_REMOTING = 1,
32  MUSIC_STOP_SHARED = 2
33}
34
35export const enum MusicConnectEvent {
36  EVENT_CONNECT = 'ONCONNECT',
37  EVENT_DISCONNECT = 'ONDISCONNECT',
38  EVENT_FAILED = 'ONFAILED',
39  EVENT_TIMEOUT = 'CONNECTTIMEOUT'
40}