Unable to play video in Qt5 on snowleopard - qt

When using Qt5 on snowleopard, even with the prebuild 5.1 Qt version, I'm unable to make a video show up in a QWebView, I tried loading the video in a tag without success.
The Dev tools highlight a 0pixels width x 0px height at the video tag origin.
I tried loading a h264 mp4 file directly into the qwebview, but all it tells me is inside the Qt output console
Error loading /Library/Internet Plug-Ins/QuickTime Plugin.plugin/Contents/MacOS/QuickTime Plugin: dlopen(/Library/Internet Plug-Ins/QuickTime Plugin.plugin/Contents/MacOS/QuickTime Plugin, 265): no suitable image found. Did find:
/Library/Internet Plug-Ins/QuickTime Plugin.plugin/Contents/MacOS/QuickTime Plugin: no matching architecture in universal wrapper
And blank page in the view.
Have no idea where to go from here.
Any idea or suggestion why I'm unable to play videos (even local videos) inside QtWebkit?

Related

Eclipse WikiText: How to set css for preview?

Using Eclipse 2020-09 (i.e. v. 4.17) IDE for Java (on Linux, openSUSE Tumbleweed), with version 3.0.38 of Mylyn WikiText plugin installed, I had the following difficulty: Although pretty much all editor/ui fonts were fine, the HTML preview of WikiText files (in particular README.md!) displayed in unreadably small fonts (my display has a very small pixel pitch). So I wanted to find a way to set the CSS of such preview pages. The Mylyn WikiText docs (at https://help.eclipse.org/2020-09/index.jsp?topic=%2Forg.eclipse.mylyn.wikitext.help.ui%2Fhelp%2FMylyn+WikiText+User+Guide.html, under the heading "Rendering Appearance") says that there should be a Preferences screen General > Editors > Text Editor > WikiText > Appearance that allows one to set this CSS. However, no such screen shows up in my installation.
The only method I was able to find for fixing this was to use an application (such as Engrampa) which is able to edit the contents of .jar files, and in my eclipse installation directory, use it on plugins/org.eclipse.mylyn.wikitext.ui_3.0.[SPECIFIC_VERSION_HERE].jar to edit the internal component org/eclipse/mylyn/internal/wikitext/ui/viewer/default.css -- I could change any css there, and upon restarting Eclipse, the changes would take effect.
However, clearly any changes I make this way will be blown away upon the next update of Eclipse or of Mylyn Wikitext. Does anyone know of a better way to set the size of the preview text? Was that Appearance pane mentioned in the docs removed? If so, what replaced it? If not, any ideas why I might not be seeing it?

DevTools could not find /lightbox-plus-jquery.min.map: System error: net::ERR_FILE_NOT_FOUND

hello i added jquery lighbox into my image gallery page but when i opened the developer tools to make my webpage responsive it gives this error [DevTools failed to load SourceMap: Could not load content for file:///C:/Users/dell/Desktop/image-gallery/html/js/lightbox-plus-jquery.min.map: System error: net::ERR_FILE_NOT_FOUND]
i located the jquery.min.map file in lighbox folder and added it in same path to my index.html it stopped giving this error but still i cant make my webpage responsive after using jquery lighbox.i want to make my webpage responsive for screens <600px width what should i do? I am a beginner level developer so please any easy solution.
#media screen and (max-width:600px){} this works fine for making my other webpages responsive where i just used simple javascript and no lightbox.
There is no file lightbox-plus-jquery.min.map
You can download from here
https://land.copernicus.eu/user-corner/technical-library/corine-land-cover-nomenclature-guidelines/js/lightbox-plugin/dist/js/lightbox-plus-jquery.min.map/view
you have to add file in js folder.
Hope it work !!

WordPress Audio Implementation (Theme Development)

I'm currently working on a theme aimed at studios and I thought i was about finished, but then i noticed that the audio isn't implemented correctly(which is kinda important for a music based theme).
When the file is added using the add media button in the back-end, then the file is added to the page/post. When you view the page, then the media player seems to load in the HTML5 audio tag and not the built in MediaElements, but if you inspect the page and change the screen size to 768px or less, then the MediaElements is loaded. I have looked and looked, but I can't seem to find out what it is that is causing it.
There appears to be a JS error in the console that only shows when you load the site at larger than 768px wide as you mentioned in your post. The error stems from your theme /assets/masonry-settings.js file. I think the JS error is blocking the JS from the media elements plugin from being able to hijack the native HTML5 audio tag as it is supposed to do.
Uncaught TypeError: $container.masonry is not a function
at runMasonry (masonry-settings.js?ver=1.0:29)
Assuming you are the theme developer you should be able to troubleshoot the issue...

Embed Swiffy file into wordpress post

I have converted a SWF banner to HTML5 using Swiffy.
How can I embed it in a post? Moreover, I have several banner sizes, how can I make it responsive?
Go to https://developers.google.com/swiffy/convert/upload Then upload swf file . You can download by pressing "ctrl + S"
You can use javascript or media queries (css) for checking device width.
When using the HTML Swiffy Insert Plugin you might want to check out this post:
http://itekblog.com/fix-wordpress-plugin-html5-swiffy-insert/
However, I haven't tried the steps mentioned there went with their own plugin instead:
ER Swiffy Insert
Plugin: http://wordpress.org/extend/plugins/er-swiffy-insert/
Documentation: http://itekblog.com/wordpress-plugins/er-swiffy-insert/
I used the online Swiffy converter and downloaded the output, which included a runtime.js. Make sure to open it and check the version on line 4, mine was Swiffy runtime version 7.4.1.
Use that version in the shortcode as described in the documentation linked above. I'm on wordpress 4.5 and using the shortcode [swiffy n="1" w="700" h="300" v="7.4.1"] worked for me. Using a version that's different from the one in the runtime.js you downloaded may result in nothing being displayed.
Paste your Swiffy code into a custom field named swiffy_1.
Minor caveat: contrary to the documentation – which obviously was written for Swiffy 5.x, not 7.x – my Swiffy code starts with swiffyobject = {"as3":false,"frameRate":25,"frameCount":1...

ImageResizer.Net - not resizing images

I have recently downloaded Image Resizer .Net due to being interested in to what it has to offer, you can see three libraries in the link I have supplied, I've gone ahead and downloaded all of them.
Rebuilt the project, then navigated to my view and specified a width,height and mode for an image that's getting displayed as shown here.
<img src="http://res.cloudinary.com/dncu6pqpm/image/upload/q_80/#profilePic?w=50&h=50&mode=crop">
This URL is of a car its width is 402 and its height is 300, I want to resize is just to test the functionality, but it doesn't seem to change its size? could this be to do with the fact its referencing an external image?
Update.
This is the rendered HTML
<img src="http://res.cloudinary.com/dncu6pqpm/image/upload/cunaulfla05xjzb5y2fe.jpg?w=50&h=50&mode=crop">
I read your question again and notice the part that your trying to apply it to an external image. Image Resizer will not work with external images as the images is requested directly to the external repository. In order for the image to be able to be resized it has to be served by your hosting server's IIS, where your website (with Image Resizer) is installed.
Make a quick test with a local image and see if that works.

Resources