cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse MacFadyen (JIRA)" <>
Subject [jira] [Created] (CB-2382) Cannot play resource audio
Date Tue, 05 Feb 2013 22:17:13 GMT
Jesse MacFadyen created CB-2382:

             Summary: Cannot play resource audio
                 Key: CB-2382
             Project: Apache Cordova
          Issue Type: Bug
          Components: WP8
    Affects Versions: 2.4.0
            Reporter: Jesse MacFadyen
            Assignee: Jesse MacFadyen

The current implementation of Media playback is expecting the audio file to have been unpacked
to Isolated Storage, which was the case on WP7 when this code was written.
Currently it is not possible to play a file that is packaged as a resource.

We need to implement reading the file from stream in order to address this.

StreamResourceInfo fileResourceStreamInfo = Application.GetResourceStream(new Uri("www/sound1.wav",
SoundEffect soundEffect = SoundEffect.FromStream(fileResourceStreamInfo.Stream);

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message