java - How to play embed video using loadDataWithBaseURL -


Description of problem

I run SWF video by calling the loaddatawithbaseURL method and embeding data I am trying to But the video does not start playing, just show the white screen, am I doing something wrong?

Source Code
  Get Web View from Create Layout (Bundle Saved InstantState) {// Layout} Get the MWebView = (Webview) ViewById (R.id. WebViewOnlieWebCams); MWebView.getSettings () setJavaScriptEnabled (true). MWebView.getSettings () setPluginsEnabled (true). . MWebView.getSettings () setAllowFileAccess (true); String mimetype = "text / html"; String encoding = "UTF-8"; String Embed = "& lt; Embed Type = \" Application / X-Shockwave-Flash \ "src = \" / Bundle / Maimman / swf / player-licensed.swf \ "width = \" 320 \ "height = \" 390 \ "style = \" undefined \ "id = \" mpl \ "name = \" mpl \ "quality = \" less \ "acceptable screen = \" true \ "permission = \" always \ "wmode = \ "Opaque \" flashwares = \ "autostart = true & amp; Amp; File = camera39.stream & amp; Amp; Streamer = RTMP: //wss.yerevan.am/axis&log || / Bundle / mymain / images / logo10.png & amp; Amp; Logo.hide = false & amp; Amp; Logo.position = bottom left & amp; Amp; Logo.timeout = 3 \ "& gt;"; MWebView.loadDataWithBaseURL (empty, embedded, mimetype, encoding, ""); }    

Try the following code:

  String html = "Object width = \" 1008 \ "height = \" 550 \ "& gt; Ultimate name = \" movie \ "value = \" file: // "+ path +" \ "& Gt; & lt; Embed src = \ "file: //" + path + "\" width = \ "1008 \" height = 550 \ "& gt; & Lt; / Embed & gt; & Lt; / Object & gt; String mimeType = "text / html" string encoding = "UTF-8"; Web.loadDataWithBaseURL ("null", html, mimeType, encoding, "");    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -