System.Media.SoundPlayer

Summary


Controls playback of a sound from a URI.
Defined in SoundPlayer.js

Constructors

System.Media.SoundPlayer(<String> soundLocation)
Initializes a new instance of the SoundPlayer class, and attaches the specified URI.

Parameters

  • soundLocation - The location of sound file to load.

Properties

  • String SoundLocation
    Gets or sets the URI of the sound file to load.

Methods

  • void Play()
    Plays the sound file asynchronously.
  • void Stop()
    Stops playback of the sound if playback is occurring.