diff --git a/video_embed_dailymotion.module b/video_embed_dailymotion.module
index dde33ef..9d7c961 100644
--- a/video_embed_dailymotion.module
+++ b/video_embed_dailymotion.module
@@ -85,16 +85,10 @@ function video_embed_dailymotion_form($defaults) {
 function video_embed_dailymotion_handle_video($url, $settings) {
   $id = _video_embed_dailymotion_get_video_id($url);
   if ($id) {
-    $embed = '<object width="!width" height="!height">
-    <param name="movie" value="http://www.dailymotion.com/swf/video/!id?autoPlay=!autoplay"></param>
-    <param name="allowFullScreen" value="!fullscreen"></param>
-    <param name="allowScriptAccess" value="always"></param>
-    <embed type="application/x-shockwave-flash" src="http://www.dailymotion.com/swf/video/!id?autoPlay=!autoplay"' .
-    'width="!width" height="!height" allowfullscreen="!fullscreen" allowscriptaccess="always"></embed>
-    </object>';
+    $embed = '<iframe frameborder="0" width="!width" height="!height" src="http://www.dailymotion.com/embed/video/!id?autoplay=!autoplay" !allowfullscreen></iframe>';
     $embed = format_string($embed, array(
       '!id' => $id,
-      '!fullscreen' => $settings['allowfullscreen'] ? 'true' : 'false',
+      '!fullscreen' => $settings['allowfullscreen'] ? 'allowfullscreen' : '',
       '!autoplay' => $settings['allowautoplay'] ? 'true' : 'false',
       '!width' => $settings['width'],
       '!height' => $settings['height'],
