|
@@ -367,7 +367,7 @@ public class PlayerToJS {
|
|
* @param params json字符串,只有一个值:type;1,ijk播放器;2,系统播放器
|
|
* @param params json字符串,只有一个值:type;1,ijk播放器;2,系统播放器
|
|
*/
|
|
*/
|
|
@JavascriptInterface
|
|
@JavascriptInterface
|
|
- public int setPlayType(String params){
|
|
|
|
|
|
+ public int setPlayerType(String params){
|
|
try{
|
|
try{
|
|
JSONObject jsonObject = new JSONObject(params);
|
|
JSONObject jsonObject = new JSONObject(params);
|
|
int type = JSONUtil.getInt(jsonObject,"type",1);
|
|
int type = JSONUtil.getInt(jsonObject,"type",1);
|