Last active
August 29, 2015 14:12
-
-
Save evanxd/3faa81ba13cfd03bb601 to your computer and use it in GitHub Desktop.
Audio Channel Competing
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
# Audio Channel Name | |
# 1. Normal | |
# 2. Foreground Content | |
# 3. Background Content | |
# 4. Alarm | |
# 5. System | |
# 6. Ringer | |
# 7. Telphony | |
# 8. Notification | |
# 9. Public Notification | |
# Competing Result Code | |
# -1: No such case | |
# 0: PLAY both the current and the new channels | |
# 1: PAUSE the current channel, no RESUME the current channel after the new channel ends | |
# 2: PAUSE the current channel, RESUME the current channel after the new channel ends | |
# 3: VOLUME down the current channel | |
# 4: VOLUME down the new channel | |
# 5: VIBRATE the current channel | |
# 6: VIBRATE the new channel | |
# Example | |
# Get the competing result of normal channel and normal channel: competingData.normal.normal | |
{ | |
"normal": { | |
"normal": 1, | |
"foregroundContent": 1, | |
"backgroundContent": -1, | |
"alarm": 1, | |
"system": 0, | |
"ringer": 1, | |
"telphony": 1, | |
"notification": 3, | |
"publicNotification": 3 | |
}, | |
"foregroundContent": { | |
"normal": 2, | |
"foregroundContent": -1, | |
"backgroundContent": 2, | |
"alarm": 2, | |
"system": 0, | |
"ringer": 2, | |
"telphony": 2, | |
"notification": 3, | |
"publicNotification": 3 | |
}, | |
"backgroundContent": { | |
"normal": -1, | |
"foregroundContent": -1, | |
"backgroundContent": -1, | |
"alarm": -1, | |
"system": -1, | |
"ringer": -1, | |
"telphony": -1, | |
"notification": -1, | |
"publicNotification": -1 | |
}, | |
"alarm": { | |
"normal": 0, | |
"foregroundContent": 0, | |
"backgroundContent": -1, | |
"alarm": 1, | |
"system": 0, | |
"ringer": 3, | |
"telphony": 3, | |
"notification": 0, | |
"publicNotification": 0 | |
}, | |
"system": { | |
"normal": 0, | |
"foregroundContent": 0, | |
"backgroundContent": -1, | |
"alarm": 0, | |
"system": 0, | |
"ringer": 0, | |
"telphony": 0, | |
"notification": 0, | |
"publicNotification": 0 | |
}, | |
"ringer": { | |
"normal": 0, | |
"foregroundContent": 0, | |
"backgroundContent": -1, | |
"alarm": 0, | |
"system": 0, | |
"ringer": 5, | |
"telphony": 0, | |
"notification": 0, | |
"publicNotification": 0 | |
}, | |
"telphony": { | |
"normal": 0, | |
"foregroundContent": 0, | |
"backgroundContent": -1, | |
"alarm": 5, | |
"system": 0, | |
"ringer": 6, | |
"telphony": -1, | |
"notification": 6, | |
"publicNotification": 0 | |
}, | |
"notification": { | |
"normal": 4, | |
"foregroundContent": 4, | |
"backgroundContent": -1, | |
"alarm": 0, | |
"system": 0, | |
"ringer": 0, | |
"telphony": 0, | |
"notification": 0, | |
"publicNotification": 0 | |
}, | |
"publicNotification": { | |
"normal": 4, | |
"foregroundContent": 4, | |
"backgroundContent": -1, | |
"alarm": 0, | |
"system": 0, | |
"ringer": 0, | |
"telphony": 0, | |
"notification": 0, | |
"publicNotification": 0 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment