HTML 5 support browser
Posted: Fri Dec 11, 2015 12:35 pm
Hi Everyone,
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.
-- HTML that I used
-- Livecode
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.
-- HTML that I used
Code: Select all
<!DOCTYPE html>
<html><head>
<meta name="viewport" content="width=device-width">
</head>
<body>
<audio controls="" autoplay name="media"><source src="MyAudioLink" type="audio/mp3">
</audio>
</body></html>
-- Livecode
Code: Select all
-- 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