serviceproviders/jsapi/platformservices/src/media.js
changeset 55 eaf3908907b6
parent 38 02682e02e51f
equal deleted inserted replaced
54:e7cb6cffd49a 55:eaf3908907b6
    88 				      "descriptor": __device_media_descriptor,
    88 				      "descriptor": __device_media_descriptor,
    89 				      "providers": [{"descriptor": __sp_media_descriptor, "instance": __sp_media_instance}]
    89 				      "providers": [{"descriptor": __sp_media_descriptor, "instance": __sp_media_instance}]
    90 				     };
    90 				     };
    91 		   
    91 		   
    92 
    92 
    93 
       
    94 
       
    95 
       
    96 /*
       
    97 Copyright � 2009 Nokia. All rights reserved.
       
    98 Code licensed under the BSD License:
       
    99 Software License Agreement (BSD License) Copyright � 2009 Nokia.
       
   100 All rights reserved.
       
   101 Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
       
   102 
       
   103 Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 
       
   104 Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 
       
   105 Neither the name of Nokia Corporation. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission of Nokia Corporation. 
       
   106 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
       
   107 
       
   108 version: 1.0
       
   109 */
       
   110 /*
       
   111  * Global object for Async utility functions:
       
   112  * 1)addToGlobalArray
       
   113  * 2)getFromArray
       
   114  * 3)removeFromArray
       
   115  */
       
   116 
       
   117 
       
   118 function __device_media_descriptor(provider){
    93 function __device_media_descriptor(provider){
   119   this.interfaceName = provider.interfaceName;
    94   this.interfaceName = provider.interfaceName;
   120   this.version = provider.version;
    95   this.version = provider.version;
   121 }
    96 }
   122 
    97 
   188 				      "descriptor": __device_media_descriptor,
   163 				      "descriptor": __device_media_descriptor,
   189 				      "providers": [{"descriptor": __sp_media_descriptor, "instance": __sp_media_instance}]
   164 				      "providers": [{"descriptor": __sp_media_descriptor, "instance": __sp_media_instance}]
   190 				     };
   165 				     };
   191 		   
   166 		   
   192 
   167 
   193 
       
   194 
       
   195 
       
   196 
       
   197 
       
   198 
       
   199 /*
       
   200 Copyright © 2009 Nokia. All rights reserved.
       
   201 Code licensed under the BSD License:
       
   202 Software License Agreement (BSD License) Copyright © 2009 Nokia.
       
   203 All rights reserved.
       
   204 Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
       
   205 
       
   206 Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 
       
   207 Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 
       
   208 Neither the name of Nokia Corporation. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission of Nokia Corporation. 
       
   209 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
       
   210 
       
   211 version: 1.0
       
   212 */
       
   213 
   168 
   214 // S60 sp-based media provider
   169 // S60 sp-based media provider
   215 var FILESCHMLEN = 7;
   170 var FILESCHMLEN = 7;
   216 
   171 
   217 //var MISSING_ARG_ERR = 1003;
   172 //var MISSING_ARG_ERR = 1003;