View Single Post
Old 04-05-2015, 05:40 PM   #12
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,882
Karma: 6120478
Join Date: Nov 2009
Device: many
Hi Doitsu,

I played around a bit more and found out that Windows seems to need PluginsEnabled set on the QWebView widget to do anything and then a bunch of extra plugins added into Sigil. No where could I find this anyplace in the Qt docs but I did find it via google in just one place.


With the following change to ViewEditors/BookViewPreview.cpp:

Code:
--- BookViewPreview.cpp.orig	2015-04-02 12:20:42.000000000 -0400
+++ BookViewpreview.cpp	2015-04-05 16:04:23.000000000 -0400
@@ -72,6 +72,7 @@
     // Enable our link filter.
     page()->setLinkDelegationPolicy(QWebPage::DelegateAllLinks);
     page()->settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, true);
+    page()->settings()->setAttribute(QWebSettings::PluginsEnabled, true);
     CreateContextMenuActions();
     ConnectSignalsToSlots();
 }
And then including all of the Qt5 plugins into Sigil (including audio and mediaservices) I was able to build a version of Sigil on my Win32 that will nicely play your audio epub.

My video epub would simply not work no matter what. I replaced the sample mp4 video with a small.mp4 video I found on the web and then it worked as well.

So not all mp4 will work but some do. I have no idea why yet.

I will try to get these changes into Sigil 0.8.6 if I can.

Take care,

KevinH

Last edited by KevinH; 04-05-2015 at 09:49 PM.
KevinH is online now   Reply With Quote