You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Bas Bosman (JIRA)" <ji...@apache.org> on 2014/01/30 23:18:14 UTC

[jira] [Updated] (CB-4738) MediaError.message is not supported?

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

Bas Bosman updated CB-4738:
---------------------------

    Component/s: Plugin Media

> MediaError.message is not supported?
> ------------------------------------
>
>                 Key: CB-4738
>                 URL: https://issues.apache.org/jira/browse/CB-4738
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Docs, Plugin Media
>    Affects Versions: 2.9.0
>            Reporter: Shingo Toda
>            Assignee: Michael Brooks
>            Priority: Minor
>
> I just tried to get an error message from MediaError.message but I failed. As I see cordova.js, it seems that this property is not supported.
> {code:title=cordova.js|borderStyle=solid}
>  var _MediaError = window.MediaError;
> if(!_MediaError) {
>     window.MediaError = _MediaError = function(code, msg) {
>         this.code = (typeof code != 'undefined') ? code : null;
>         this.message = msg || ""; // message is NON-standard! do not use!
>     };
> }
> {code}
> This is just my assumption that it look like Cordova try to get browser's MediaError at first. If it fails, Cordova will add original implementation. But as commented, message property is not standard in W3C [http://dev.w3.org/html5/spec-author-view/video.html#mediaerror] 
> If it is really not supported, please remove this property from document.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)