Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><code>Youtube</code> may have changed something in their embedded page and most likely this is causing problems inside the <code>WebView</code> and that is why it is not working anymore.</p> <p>Also are you testing your app on the same device as before?</p> <p>I don't think it is a good practice to use this solution, since you can not rely that the content that you display today from <code>Youtube</code> and it works, will also be the same in a few days and it will still work, as you have just encountered now. I had also similar problems with <code>videos</code> and <code>Youtube</code> content, it would work on one device, and not at all on some other devices. It is also a <code>Flash</code> content, and a lot of Android devices don't have <code>Flash</code> and will not be able to play the content.</p> <p>A solution would be to create an <code>Intent</code> for playing the video:</p> <pre><code> Intent videoIntent=new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.youtube.com/my_url")); startActivity(videoIntent); </code></pre> <p>But what I would recommend is to encode the videos for <code>Android</code> as suggested in the <a href="http://developer.android.com/guide/appendix/media-formats.html" rel="nofollow">Supported Media Formats</a> and store them on your own server if you have the possibility.</p> <p><b>EDIT:</b> They definetly changed something since there is an js error there. You can track them by using the <code>WebChromeClient</code>:</p> <pre><code> mWebView.setWebChromeClient(new WebChromeClient(){ @Override public void onConsoleMessage(String message, int lineNumber, String sourceID) { super.onConsoleMessage(message, lineNumber, sourceID); Log.i("VIDEO VIEW",message); } } </code></pre> <p>This is the message error I got:</p> <pre><code>TypeError: Result of expression 'a' [undefined] is not an object.line 78sourcehttp://www.youtube.com/embed/e2UIg3Ddfp0 </code></pre> <p>I don't know if it helps you, I'll have another look later and see what I can find.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload