Enable HTML5 in QtWebKit PyqQ5 - youtube

I'm trying to make a program which will download Youtube videos. It functions as it should, except that it doesn't support Youtube video playback. It seems to be an issue with html5 video support for QtWebKit.
If anyone can help me solve this problem, that would be appreciated.
Code can be found here
(Being programmed in PyCharm on Windows 10 using the latest install of Anaconda)

QtWebKit doesn't seem to support HTML5 video, I have decided to try out QtWebEngine.

Related

Serving Unity3D game through web

I've been assigned the task to serve a Unity3d game in my website (designed by someone else). They're flexible on serving the game directly from the website as they don't know if it
s possible, so in the case that due to X issues it can't be possible I could provide a link (download a player?) to play the game externally. I've been digging through the Unity docs and found out the Unity Webplayer is only compatible with Opera, Safari and older versions of Firefox/I. Usually I'd dig into the matter and come up with a solution eventually but due to the time constraint I feel hard pressed to ask for advice from people who have already jumped these hoops.
Is there an alternative to the Unity Webplayer, does Unity provide some sort of quick, lightweight install for the game to which I can point users to from the website?
I should add that the game will be a lightweight, resource-inexpensive game.
I'm open to any and all suggestions however creative!
The app will most probably use the Rails framework for the web app.
Unity's Webplayer has been discontinued in 5.4 release.
Is there an alternative to the Unity Webplayer, does Unity provide
some sort of quick, lightweight install for the game to which I can
point users to from the website?
Yes. WebGL. This replaced Webplayer. WebGL is the standard now and works on almost all browsers without the need for players to install anything else. Make sure to download he latest version of Unity to use WebGL 2.0. You can build and embed it on any webpage. Although, Javascript is more easier to use to embed it on the web than ruby.

setting up for programming using webGL

I am having problems for setting up my laptop to program using webGL.
I am using mint linux 16. I tried installing nodejs because the webGL is javascript program but it seems not working. I am reading a book called WebGL programming guide and try to run an example in the book to make sure that my laptop is set up for webgl. One of the very first example in the book uses javascript libraries such as webgl-utils.js, webgl-debug.js... but I can find those libraries. Can anyone help me please??
I'd check to see if your video card or browser is supported.
http://get.webgl.org/
http://www.khronos.org/webgl/wiki/BlacklistsAndWhitelists

Detect edge of a document in windows phone

I need to detect the corner/edge of a document in a captured image in Windows Phone 7. I cannot use openCV as WP 7 does not have support for native code lib.
Can anybody suggest me some algorithm or open source library that I can use for this purpose.
I want to do the similar thing on Windows Phone app as posted in another SO question: DETECT the Edge of a Document in iPhoneSDK
you can try using A-Forge for this task.
the A-forge .NET have great functionality and I think it will not be a problem to use it on windows phone

Is it possible to make cross browser compatible games with Dart as of right now?

What about just making it compatible with the three major browsers, IE9+, Chrome and Firefox?
I want to make games using Canvas 2D.
As far as I know, it works just fine. Unfortunately, I can't test it out right now because I don't have a Windows machine. However, there are a lot of samples showing how to do this sort of thing. See:
http://dart-lang.github.com/pop-pop-win/
https://github.com/dart-lang/pop-pop-win
https://github.com/dart-lang/dart-html5-samples/tree/master/web/speed/animations
Canvas is supported by modern browsers: http://caniuse.com/#feat=canvas

Render video to Direct3D 9.0c texture

I have been trying to play a video in my Direct3D application and have been trying to do so with the help of DirectShow. My problem is that I cannot find how to get the frame data to put into a texture (ISampleGrabber won't install).
Does anyone know of any methods or examples of this being done?
ISampleGrabber is available in all versions of Windows released last 15+ years
Look for "Microsoft® DirectX® 9.0 SDK Update (October 2004)" which contains sample app, which does exactly what you want:
Texture3D Sample Description
Draws video on a Microsoft® Direct3D texture surface.
Note This sample does not support changing the display properties of
the monitor while the sample is running.
Path
Source: (SDK root)\Samples\C++\DirectShow\Players\Texture3D
Executable: (SDK root)\Samples\C++\DirectShow\Bin\Texture3D.exe
UPDATE. Even though Sample Grabber existed though many many versions of Windows, it was finally removed along with other filters hosted by qedit.dll in most recent versions of operating systems (Windows Server 2008 in particular). Those whose application are dependent on this API, should consider building a replacement using Grabber sample from older SDKs. The same applies to those needing this filter because of so many references on Internet and tutorials on how to use it to get access to media streams.
The filter was removed silently and without any replacement. Microsoft suggests that Media Foundation is an alternate option and successor to DirectShow, which is however hardly helpful.

Resources