cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Barham (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CB-10528) Ripple crashed while Media Plugin is installed
Date Mon, 08 Feb 2016 23:57:40 GMT

     [ https://issues.apache.org/jira/browse/CB-10528?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tim Barham closed CB-10528.
---------------------------
    Resolution: Invalid

> Ripple crashed while Media Plugin is installed
> ----------------------------------------------
>
>                 Key: CB-10528
>                 URL: https://issues.apache.org/jira/browse/CB-10528
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Media
>    Affects Versions: 6.0.0
>         Environment: Windows 10 64 bit with VS 2015 SP1
>            Reporter: Maik Schindler
>            Assignee: Tim Barham
>              Labels: triaged
>
> If I install the media plugin the Ripple Nexus S will crash.
> If I remove the plugin everthing works
> Here is the source code
> <code>
> <!DOCTYPE html>
> <html>
> <head>
>     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
>     <meta charset="utf-8" />
>     <!--
>         Passen Sie die Inhaltssicherheitsrichtlinie im META-Tag unten nach Bedarf an.
Fügen Sie "default-src" die Option "unsafe-inline" hinzu, um Inline-JavaScript zu aktivieren.
>         Details finden Sie unter "http://go.microsoft.com/fwlink/?LinkID=617521".
>     <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap:
https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *">
>         -->
>     <meta http-equiv="Content-Security-Policy" content="default-src * data: gap: https://ssl.gstatic.com
'unsafe-eval'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval';
media-src *">
>     <title>MediaTest</title>
>     <!-- MediaTest-Verweise -->
>     <link href="css/index.css" rel="stylesheet" />
>     <!-- Cordova-Verweis, wird Ihrer App beim Erstellen hinzugefügt. -->
>     <script src="cordova.js"></script>
>     <script src="scripts/platformOverrides.js"></script>
>     <script src="scripts/index.js"></script>
>     
>     <script src="scripts/jquery-2.1.4.min.js"></script>
>     <script src="scripts/jquery.mobile-1.4.5.min.js"></script>
> </head>
> <body>
>     <p>Hello, App is ready!</p>
>     <button id="playSound">Play</button>
>     <script>
>         $(document).ready(function () {
>             $('#playSound').on("tap", function () {
>                 var snd = new Media($.mobile.path.documentBase.directory + "sounds/tone.mp3",
function () {
>                     snd.release();
>                 }, function (err) {
>                     console.log("Error: " + err.message);
>                 });
>                 snd.play();
>             });
>            
>         });
>     </script>
> </body>
> </html>
> </code>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message