# Titanium.Media.SystemAlert

> An object for playing system sounds.

- Source: https://titaniumsdk.com/docs/sdk/13.1.0/Titanium.Media.SystemAlert
- Titanium SDK version: 13.1.0
- Kind: proxy
- Platforms: iPhone, iPad, macOS
- Since: Titanium SDK 6.1.0
- Extends: Titanium.Proxy
- Inheritance: Titanium.Proxy
- DEPRECATED since 8.0.0. This iOS-only API has been deprecated and moved to the [Ti.SystemAlert](https://github.com/appcelerator-modules/ti.systemalert) module in 8.0.0.

You can use this module to provide audible system alerts. 

You can use it to play short (30 seconds or shorter) sounds. The interface does not provide level, positioning, 
looping, or timing control, and does not support simultaneous playback: You can play only one sound at a time. 

This module differs from the Sound module because it honors the ringtone volume, not the Music volume.

Use the [Titanium.Media.createSystemAlert](https://titaniumsdk.com/docs/sdk/Titanium.Media.md#createSystemAlert) method to create a `SystemAlert` object.

Know more about [System Sound Services](https://developer.apple.com/reference/audiotoolbox/1657326-system_sound_services).

## Example: Simple Example

Simple example of playing a WAVE file from the Resources directory.

``` js
var player = Ti.Media.createSystemAlert({url:"alert.wav"});
player.play();
```

## Properties

### url

- Type: String
- Platforms: iPhone, iPad, macOS

URL identifying the audio resource.

## Methods

### play

- Platforms: iPhone, iPad, macOS

Start playing the system alert.

## Inherited members

6 members are inherited. Each is documented on the type that declares it.

- [Titanium.Proxy](https://titaniumsdk.com/docs/sdk/13.1.0/Titanium.Proxy.md): `addEventListener`, `apiName`, `applyProperties`, `bubbleParent`, `fireEvent`, `removeEventListener`

---

- This corpus documents Titanium SDK 13.4.1. Anything here that does not name a version describes 13.4.1.
- Titanium is maintained by TiDev. The Appcelerator toolchain is retired: there is no `appc` CLI, no Appcelerator Studio and no hosted build service. The supported CLI is `titanium` on npm, invoked as `ti`.

