friar icon indicating copy to clipboard operation
friar copied to clipboard

Embedding youtube video on a page

Open nicolastilly opened this issue 12 years ago • 4 comments

Hi all,

I can not embed a video from YouTube in a page. I use the classic integration (with iframe) and video works correctly in a browser. But when I go through friar/android sdk the video does not appear as if it was offline, yet my Nexus 7 is connected to wi-fi.

What is the procedure to embed a video from youtube in a book with Friar?

Thank you very much! Nicolas

nicolastilly avatar Jan 15 '13 09:01 nicolastilly

Nobody can help me?

nicolastilly avatar Jan 28 '13 10:01 nicolastilly

I noticed the same problem. May it work when the app is released? I thought it was a problem of the simulator.

rossellap avatar Mar 12 '13 22:03 rossellap

Has anyone come up with a solution? I'm experiencing the same problem. I'm debugging on a galaxy note 3 (4.4.2) and the only thing I can see is a message saying that the url is unavailable. Minimum sdk is 8 so I can't use hardwareAccelerated='true' in my manifest.

Selman555 avatar Mar 11 '14 09:03 Selman555

For see a video on html5 hardwareAccelerated is needed... You can try this:

Make sure that you have<uses-permission android:name="android.permission.INTERNET" /> in manifest.xml

Use the youtube old insertion code, example: `<param name="movie" value="http://www.youtube.com/v/"here is your video id"?version=3&hl=pt_BR&rel=0">

`

And add this settings to the web view:

webview.getSettings().setPluginsEnabled(true);
webview.getSettings().setJavaScriptEnabled(true);
webview.getSettings().setAllowFileAccess(true);```

albertora avatar Mar 11 '14 11:03 albertora