Class arel.Media

The arel.Media class is the interface towards display of images, play back of sound and video and opening websites.

Class Summary
Constructor Attributes Constructor Name and Description
 

Method Summary

Class Detail

arel.Media()

Author: metaio GmbH.
See:
arel.Events.Media

Field Detail

<static> <constant> arel.Media.SOUND
Type sound
<static> <constant> arel.Media.VIDEO
Type Video
<static> <constant> arel.Media.WEBSITE
Type URL

Method Detail

  • <static> arel.Media.createCalendarEvent(_startDate, _endDate, _subject, _description, _location)
    Create a calendar entry in the device calendar
    Parameters:
    {Date} _startDate
    the start date of the event
    {Date} _endDate
    the end date of the event
    {String} _subject
    subject of the event
    {String} _description
    description of the event
    {String} _location
    location of the event
    Requires:
    API level 11
  • <static> arel.Media.openWebsite(_url, _external)
    Open a website in the web view
    Parameters:
    {String} _url
    The url to be opened
    {Boolean|String} _external
    If set to true, the external browser will be opened, otherwise the internal.
    See:
    arel.Events.Media.WEBSITE_CLOSED, arel.Events.setListener
  • <static> arel.Media.pauseSound(_soundFilePath)
    Pauses the sound.
    Parameters:
    {String} _soundFilePath
    File path to the mp3 to be paused
  • <static> arel.Media.playAlert()
    Plays the detection alert sound
  • <static> arel.Media.startSound(_soundFilePath)
    Start a sound to be played. Allowed filetyps are mp3
    Parameters:
    {String} _soundFilePath
    File path to the mp3 to be played back
    See:
    arel.Events.Media.SOUND_COMPLETE, arel.Events.setListener
  • <static> arel.Media.startVideo(_videoFilePath)
    Start a video to be played. Allowed filetyps are mp4. the video will be streamed in the fullscreen player.
    Parameters:
    {String} _videoFilePath
    File path to the mp4 to be played back.
    See:
    arel.Events.Media.VIDEO_CLOSED, arel.Events.setListener
  • <static> arel.Media.stopSound(_soundFilePath)
    Stop the sound.
    Parameters:
    {String} _soundFilePath
    File path to the mp3 to be stopped
  • <static> arel.Media.triggerVibration()
    Triggers a vibration alert