Alejandro Casanova Mutis Alejandro Casanova Mutis - 23 days ago 6
Android Question

How to play dailymotion video inside a WebView in Android

I need to play a video from daylimotion in an Android WebView, I've tried with several approuches but haven't found a working solution.
The video I need to play is like the one in the following URL:

http://www.dailymotion.com/video/x1iepl4_blackfish-full-documentary_animals

I would appreciate the HTML for the WebView to load the video working with daylimotion or any other approach. I've already done the same for yputube videos successfully, but that solution doesn't work for dailymotion.

Thanks in advance.

Answer

Dailymotion provides a WebView based SDK that includes all the tricks required for you to play the video easily :

dailymotion-sdk-android

The README provides an easy example of integration