LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
I'm new in this forum and I hope this forum can helps me.
I tried to play mp3 audio file from my local path in livecode browser. The browser is showing HTML5 player but don't playing audio. The HTML that I using in my app working fine in Google Chrome.
-- Create valid url for browser
replace space with "%20" in pURL
replace ":/" with "://" pURL
put "file:///" before pURL
-- Get HTML script to playing audio
put field "HTMLField" into tHTML
-- Put the file link into HTML
replace "MyAudioLink" with pURL in tHTML
-- Show audio file on browser
revBrowserSet sBrowserID, "htmlText", tHTML
Did you use "revBrowserOpen" or "revBrowserOpenCEF" to create a browser instance?
I think only the latter one will open a browser based on the Chrome framework.
OK, thanks, just made a quick test and doesn't work here either on my Mac!
Maybe a bug? I will search the LC bug database and will report this if not already done.
Will keep you informed!
@Klaus
Linux 32bit support is in competition to have a newer Chromium in LC's browser tools,
see the discussion LC's CEF browser and HTML5.
@Gurgen
revBrowserOpenCEF uses an old Chromium. This old Chromium is also part of the new browser widget of LC 8.
That is, the newest widget "Browser" is not able to display the newest standalone feature "HTML5"
Each and every thing has its very own logic here ...