Play Vimeo video in Android , video url containing iframe

前端 未结 2 1455
庸人自扰
庸人自扰 2021-01-16 06:59

Hello i am working on android application in which i want to play vimeo videos , i am getting response from Api in json and playing video using webview and it is playing goo

2条回答
  •  深忆病人
    2021-01-16 07:10

    mViewHolder.webView.getSettings().setJavaScriptEnabled(true);
    String yourData = "
    \n" + "\n" + "\n" + ""; mViewHolder.webView.loadData(yourData, "text/html; charset=utf-8", "UTF-8");

    change id and width. it is working.

提交回复
热议问题