expo-gliph-player 1.3.11 → 1.3.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -153,25 +153,25 @@ export declare enum IOSCategoryOptions {
153
153
  DefaultToSpeaker = "defaultToSpeaker"
154
154
  }
155
155
  export declare enum AndroidAudioContentType {
156
- Unknown = '0',
157
- Speech = '1',
158
- Music = '2',
159
- Movie = '3',
160
- Sonification = '4'
156
+ Unknown = 0,
157
+ Speech = 1,
158
+ Music = 2,
159
+ Movie = 3,
160
+ Sonification = 4
161
161
  }
162
162
  export declare enum AndroidAudioUsage {
163
- Unknown = '0',
164
- Media = '1',
165
- VoiceCommunication = '2',
166
- VoiceCommunicationSignalling = '3',
167
- Alarm = '4',
168
- Notification = '5',
169
- NotificationRingtone = '6',
170
- NotificationEvent = '10',
171
- AssistanceAccessibility = '11',
172
- AssistanceNavigationGuidance = '12',
173
- AssistanceSonification = '13',
174
- Game = '14'
163
+ Unknown = 0,
164
+ Media = 1,
165
+ VoiceCommunication = 2,
166
+ VoiceCommunicationSignalling = 3,
167
+ Alarm = 4,
168
+ Notification = 5,
169
+ NotificationRingtone = 6,
170
+ NotificationEvent = 10,
171
+ AssistanceAccessibility = 11,
172
+ AssistanceNavigationGuidance = 12,
173
+ AssistanceSonification = 13,
174
+ Game = 14
175
175
  }
176
176
  export interface PlayerOptions {
177
177
  /** Minimum seconds to buffer before playback starts (Android) */
@@ -199,8 +199,8 @@ export interface PlayerOptions {
199
199
  /** Android-specific options */
200
200
  android?: {
201
201
  appKilledPlaybackBehavior?: AppKilledPlaybackBehavior;
202
- audioContentType?: AndroidAudioContentType;
203
- audioUsage?: AndroidAudioUsage;
202
+ audioContentType?: AndroidAudioContentType | string;
203
+ audioUsage?: AndroidAudioUsage | string;
204
204
  autoSkipOnError?: boolean;
205
205
  };
206
206
  /** Progress update interval in seconds */
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "Aleksey Ostrikov",
5
5
  "email": "alex303606@gmail.com"
6
6
  },
7
- "version": "1.3.11",
7
+ "version": "1.3.13",
8
8
  "description": "Fixed version of react-native-gliph-player with Expo compatibility",
9
9
  "main": "app.plugin.js",
10
10
  "module": "lib/module/index.js",
package/src/types.ts CHANGED
@@ -169,21 +169,27 @@ export enum IOSCategoryOptions {
169
169
  DefaultToSpeaker = 'defaultToSpeaker',
170
170
  }
171
171
 
172
- export declare enum AndroidAudioContentType {
173
- Unknown = 'music',
174
- Speech = 'speech',
175
- Music = 'music',
176
- Movie = 'movie',
177
- Sonification = 'sonification'
178
- }
179
-
180
- export declare enum AndroidAudioUsage {
181
- Unknown = 'media',
182
- Media = 'media',
183
- VoiceCommunication = 'voiceCommunication',
184
- Alarm = 'alarm',
185
- Notification = 'notification',
186
- Game = 'game'
172
+ export enum AndroidAudioContentType {
173
+ Unknown = 0,
174
+ Speech = 1,
175
+ Music = 2,
176
+ Movie = 3,
177
+ Sonification = 4,
178
+ }
179
+
180
+ export enum AndroidAudioUsage {
181
+ Unknown = 0,
182
+ Media = 1,
183
+ VoiceCommunication = 2,
184
+ VoiceCommunicationSignalling = 3,
185
+ Alarm = 4,
186
+ Notification = 5,
187
+ NotificationRingtone = 6,
188
+ NotificationEvent = 10,
189
+ AssistanceAccessibility = 11,
190
+ AssistanceNavigationGuidance = 12,
191
+ AssistanceSonification = 13,
192
+ Game = 14,
187
193
  }
188
194
 
189
195
  // ─── Options ─────────────────────────────────────────────────────────────────