I have VLC Player in Ubuntu and I install Visual Basic 6 using Wine.
Now I want to add VLC Player or any media player to VB6 but I don't know how to do it.
Could you please help me to solve these problem?
There are two ways to use new stuff in legacy VB6:
Stand Alone VB6
Use VB6 WebBrowser control. That control will load the system ie that can load VLC as a plugins.
.Net embedded control.
Create a Windows form .net control that embeds vlc, and compile it with interop.
Load that control dynamically on a vb6 form.
But I don't think that'll work with wine, because:
1) Wine uses gecko as browser.
2) Visual Studio .Net doesn't work on wine
I'm no wine expert, but there should be some sort of windows native video playing api, that's been implemented as an ffmpeg wrapper.
EDIT: Current gecko browser supports html5 video. VLC is not required.
Option Explicit
Private WithEvents m_oDocument As MSHTML.HTMLDocument
Private Sub Form_Load()
Call Me.WebBrowser1.navigate("about:blank")
Set m_oDocument = Me.WebBrowser1.document
m_oDocument.Open
Me.WebBrowser1.document.Write "<!DOCTYPE html> <html><head><meta http-equiv='X-UA-Compatible' content='IE=Edge'></meta></head><body><video width='400' controls><source src='mov_bbb.mp4' type='http://www.w3schools.com/html/mov_bbb.mp4'><source src='http://www.w3schools.com/html/mov_bbb.ogg' type='video/ogg'>Your browser does not support HTML5 video.</video></body></html>"
m_oDocument.Close
End Sub
Related
The new Microsoft Edge browser has built-in support for Adobe Flash. The updated WebView control in the Windows 10 SDK utilizes Microsoft Edge as its engine.
I am trying to figure out how to enable the WebView control to render Adobe Flash content from a website in a Universal Windows App (either a Hosted Web App or a Packaged Web App).
Any ideas or pointers would be much appreciated.
Thanks.
WebView doesn't use Edge as the engine but uses IE11. Quote from the docs - "WebView always uses Internet Explorer 11 in document mode".
It also doesn't support any plugins or such, which would include Flash.
Full run of caveats from the control doc:
It does not support any ActiveX controls or plugins like Microsoft
Silverlight or Portable Document Format (PDF) files. Additionally,
WebView does not support some HTML5 features including AppCache,
IndexedDB, programmatic access to the Clipboard, and geolocation.
More "tidbit" reading up at https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.webview.aspx .
Enjoy. Hope this helps. Healy in Tampa.
On Universal application, the webview is using edge now but it does not change anything regarding plugins.
Here is what it says from the MSDN :
In apps compiled for Windows 10, WebView uses the Microsoft Edge
rendering engine to display HTML content. In apps compiled for Windows
8 or Windows 8.1, WebView uses Internet Explorer 11 in document mode.
It does not support any ActiveX controls or plugins like Microsoft
Silverlight or Portable Document Format (PDF) files.
I'm trying to design a Windows 10 Universal application which can download pdfs from online and open them natively in the application while retaining the functionality to fill them out (obviously only for pdfs that normally have such functionality). Is this possible as of now (using either microsoft's own or third party products) ?
Since Windows 8.1 there is a API for rendering PDF documents. You can find a SDK-Sample here - https://code.msdn.microsoft.com/windowsapps/PDF-viewer-sample-85a4bb30/
The problem is: The API render the PDFs to an BitmapImage. You will loose all the functionality to edit forms, it´s viewing only. For Windows 10 there is no aditional way to handle pdfs.
Here is a list of third party controls, who maybe can do the trick.
http://blogs.msdn.com/b/paulwhit/archive/2013/02/15/pdf-view-components-for-windows-store-apps-winrt-xaml-c.aspx
This stuff is created for windows 8.1, but should work for windows universal as well.
Hello basically I have a web app built using html5/php, etc. Its a music player, similar to spotify and pandora. I want to distribute the web app for as a desktop application so people can run it straight from their desktop without opening a browser. I would not like a browser like system, just have the web view loaded (similar to just loading a webview in iOS) (no tabs no url bar, etc)
I heard of Prism but that is discontinued and I can't find a download link anywhere.
Is there anything you suggest?
For Mac Os X, i found FluidApp, which seems to work great as it builds a stand alone app.
For iOS I can simply load the web app via a webview and it works great, just what i needed.
For android i basically load a webview as well.
Windows just got me stump into loading the webapp via a standalone desktop app.
So if anyone could help me out, it will be greatly appreciated!
I myself was looking for an all around solution for awhile. I tried everything from TideSDK, AppJS, Appcelerator Titanium, native code in VB.NET, XCode, Python, C++, Electron, node-webkit, etc: Basically you name it I've tried it.
Note Electron is nice, but it only runs on 64bit processors. So node-webkit is good if you want to run your app on 32bit processors.
So I decided to build my own open source solution called WebDGap.
Currently WebDGap runs on Windows, Linux, Mac OS X, Google Chrome and as a web application!
Watch the How To Video to learn, well how to use the app obviously.
Here's a screenshot.
Mac user's can merge your exported app into 1 .app mac file. This can be done with Automator (and a little shell scripting).
There's also a coding playground I made for mobile users that has this feature built in called kodeWeave.
Here's a Tic-Tac-Toe game I'm going to export as a Mac App:
Now the web app is running as a native Mac application!
A simple VB.NET application should do the trick. Just create a new Windows Froms project, double click on the form, mark everything an paste this:
Public Class Form1
'############## Settings ##############'
'Change to your URL
Dim url As String = "http://google.de"
'Change to the text the window title should have
Dim title As String = "Your Title here"
'Change to the windows size you wish to use
Dim window_size As Size = New Size(800, 600)
' ^X^, ^Y^
'########### End of Settings ##########'
Dim WithEvents WebBrowser1 As New WebBrowser
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Me.Text = title
Me.Size = window_size
Me.Controls.Add(WebBrowser1)
WebBrowser1.Dock = DockStyle.Fill
WebBrowser1.Navigate(url)
End Sub
Private Sub WebBrowser1_Navigated(sender As Object, e As WebBrowserNavigatedEventArgs) Handles WebBrowser1.Navigated
Dim elements As HtmlElementCollection
elements = WebBrowser1.Document.GetElementsByTagName("img")
For Each element As HtmlElement In elements
element.SetAttribute("border", "0")
Next
End Sub
End Class
Edit the settings and press F5 to run. Voila, you should see you WebApp in a Desktop Application.
Google chrome has a 'save shortcut' in the options menu. Menu>tools>create shortcut... I think. (Posting from mobile)
When you open the shortcut, it will open it in it's own window. like an standalone app. Hope this helps.
Edit: prism was from mozilla. I'm sure there is a similar function in firefox.
Im using flex 4
While running a application i got this error
Flash Builder cannot locate the required version of Adobe Flash
Player. You might need to install the Flash Player or reinstall Flash
Builder.
Which version flash player required for flex 4.0?
Problem solved...I have clicked Link 'flash player downloads' on the error message then downloaded and installed Flash Player 10.3
It works for me.
Have a look at this thread at Adobe Forums - http://forums.adobe.com/thread/606832
The above thread is about the exact error message.
In all there are following things suggested in the thread.
1.
Associate the Flash Debug player as the standalone player with SWF
files.
2.
To use HTML wrapper, just right click on your project and select
'properties'. Select 'Actionscript Compiler' on the left column, and
in the resulting properties pane on the right, check the option for
'Generate HTML Wrapper File'. That should force FB to launch the web
browser for debug. This will require the ActiveX or Mozilla flash
debug player, depending on which browser you're using for debugging.
3.
I did a search in the registry and found two instances where Flex was referrenced rather that Flash builder changing this to flash builder seemed to eliminate the problem.
My dreamweaver CS4 will not colour the syntax for HTML5 objects. However, I have downloaded an add-on through Adobe Exchange which allows automatic suggestions for HTML5. But I would love to have the syntax colouring. Any suggestions?
You don't say which specific extension you installed, but I've tried:
HTML5 Pack for Dreamweaver CS3 and CS4
http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=2188522
With this installed, I get code coloring for HTML5 tags such as video and audio.
One note: If you have any CS5 application installed, you'll need to open the CS4 (or CS3) version of Extension Manager in order to install the extension. This is due to the latest install of Extension Manager registering itself as the handler for MXP files.