Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9850E91CC for ; Wed, 20 Jun 2012 16:46:44 +0000 (UTC) Received: (qmail 34714 invoked by uid 500); 20 Jun 2012 16:46:43 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 34633 invoked by uid 500); 20 Jun 2012 16:46:43 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 34450 invoked by uid 99); 20 Jun 2012 16:46:43 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2012 16:46:43 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 90D261427F2 for ; Wed, 20 Jun 2012 16:46:43 +0000 (UTC) Date: Wed, 20 Jun 2012 16:46:43 +0000 (UTC) From: "Christophe A. Guilmart (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <322697036.34572.1340210803595.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Created] (CB-941) WP7 : Cannot play MP3 using MEDIA MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Christophe A. Guilmart created CB-941: ----------------------------------------- Summary: WP7 : Cannot play MP3 using MEDIA Key: CB-941 URL: https://issues.apache.org/jira/browse/CB-941 Project: Apache Cordova Issue Type: Bug Components: WP7 Affects Versions: 1.8.0 Environment: Nokia Lumia 800 with WP 7.5 (7.10.7740.16). 1.8.0rc1 Reporter: Christophe A. Guilmart Assignee: Jesse MacFadyen The MP3 file is only played once (the first time). * If I create a new instance of MEDIA each time, the MP3 file is only playe= d once (the first time). * If I keep alive the instance (create it in onDeviceReady), I can play mul= tiple time the first mp3 I play. BUT, I cannot play the other mp3. note:=20 * with version 1.6.1, turn OFF then ON the screen allow you to play one mor= e time the mp3. Not with 1.8.0. * same issue with 1.6.1, but the error message are IOException & IsolatedSt= orageException with various "MEDIA on status" information.=20 var playCounter =3D 0; var my_media =3D null; function playMP3(){ console.log("playMP3()counter " + playCounter); if (!(my_media =3D=3D null)){ my_media.release(); //Cordova 1.8.0 } my_media =3D new Media("app/www/test.mp3");//ressource buildAction = =3D=3D content my_media.play(); playCounter++; } var my_media2 =3D null; function playMP32(){ console.log("playMP32() counter " + playCounter); if (!(my_media2 =3D=3D null)){ my_media2.release(); //Cordova 1.8.0 } my_media2 =3D new Media("app/www/test2.mp3");//ressource buildActio= n =3D=3D content my_media2.play(); playCounter++; } [...]

Click to Play MP3

Click to Play MP3 2

Log: Log:"onDeviceReady. You should see this message in Visual Studio's output w= indow." 'UI Task' (Managed): Loaded 'Microsoft.Xna.Framework.dll' Log:"playMP3() counter 0" 'UI Task' (Managed): Loaded 'System.SR.dll' A first chance exception of type 'System.ArgumentException' occurred in msc= orlib.dll Log:"playMP3() counter 1" A first chance exception of type 'System.ArgumentException' occurred in msc= orlib.dll Dispose :: app/www/test.mp3 A first chance exception of type 'System.NullReferenceException' occurred i= n WP7CordovaClassLib.dll A first chance exception of type 'System.ArgumentException' occurred in Sys= tem.Windows.dll Error: El par=C3=A1metro es incorrecto.=20 Log:"playMP32() counter 2" INFO: startPlayingAudio could not find mediaPlayer for b5e8e480-de8b-ab2c-8= 2a6-c60270f590f2 A first chance exception of type 'System.ArgumentException' occurred in Sys= tem.Windows.dll Error: El par=C3=A1metro es incorrecto.=20 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira