From e4512ae14f6cbfa1b0b159eba57af11b32795cb0 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Wed, 9 Apr 2014 22:52:41 +0200 Subject: [PATCH] [Click2Flash] Fix playing YouTube videos with Qt5 Closes #1283 --- src/lib/plugins/clicktoflash.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/plugins/clicktoflash.cpp b/src/lib/plugins/clicktoflash.cpp index d1cdaad78..9b957a7d9 100644 --- a/src/lib/plugins/clicktoflash.cpp +++ b/src/lib/plugins/clicktoflash.cpp @@ -233,24 +233,23 @@ void ClickToFlash::load() qz_c2f_substituteElement.width = this.width; qz_c2f_substituteElement.height = this.height; + qz_c2f_substituteElement.type = "application/futuresplash"; this.parentNode.replaceChild(qz_c2f_substituteElement, this); setTimeout(function(){ qz_c2f_parentNode.replaceChild(qz_c2f_clone, qz_c2f_substituteElement); }, 250); - */ acceptedUrl = m_url; acceptedArgNames = m_argumentNames; acceptedArgValues = m_argumentValues; - m_element.setAttribute("type", "application/futuresplash"); - QString js = "var qz_c2f_clone=this.cloneNode(true);var qz_c2f_parentNode=this.parentNode;" "var qz_c2f_substituteElement=document.createElement(this.tagName);" "qz_c2f_substituteElement.width=this.width;qz_c2f_substituteElement.height=this.height;" + "qz_c2f_substituteElement.type=\"application/futuresplash\";" "this.parentNode.replaceChild(qz_c2f_substituteElement,this);setTimeout(function(){" "qz_c2f_parentNode.replaceChild(qz_c2f_clone,qz_c2f_substituteElement);},250);";