Upstream version 8.36.156.0
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / android / core / src / org / xwalk / core / extension / api / device_capabilities / DeviceCapabilitiesCodecs.java
1 // Copyright (c) 2013 Intel Corporation. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.xwalk.core.extension.api.device_capabilities;
6
7 import org.json.JSONObject;
8 import org.xwalk.core.extension.XWalkExtensionContext;
9
10 class DeviceCapabilitiesCodecs {
11     private static XWalkMediaCodec sMediaCodec;
12
13     public DeviceCapabilitiesCodecs(DeviceCapabilities instance,
14                                     XWalkExtensionContext context) {
15         sMediaCodec = XWalkMediaCodec.getInstance(instance);
16     }
17
18     public JSONObject getInfo() {
19         return sMediaCodec.getCodecsInfo();
20     }
21 }