#1 2015-12-21 15:03:14

fittachi
Member
Registered: 2015-12-21
Posts: 1

HTML Compiler - How to properly use the video and audio tags

hello
i use HTML compiler
and i want to compile that file but after compile and run app cant show video
and show that error
"invalid source"
but this file work completely in IE

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>

<body>
        <video id="video" controls preload="metadata">
           <source src="7.mp4" type="video/mp4">
           <track label="English" kind="subtitles" srclang="en" src="7-2.vtt">
           <track label="Persian" kind="subtitles" srclang="fa" src="7.vtt" default>
        </video>
        
</body>
</html>

Last edited by fittachi (2015-12-21 15:04:51)

Offline

#2 2015-12-21 15:50:30

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,661
Website

Re: HTML Compiler - How to properly use the video and audio tags

Hello fittachi,

The protocol behind HTML Compiler and that allow us to include files inside the executable that NEVER are extracted to the user PC, unfortunatelly, do not support "local" files for the video nor audio nor flash player components. The way you can shown a video in an HTML Compiler application is to place the video source online, in a remote server, or use some Youtube or other similar video service. We can use audio and video tags without problems if the source is placed remotelly.

On the other hand, we can also use some of the external Javascript functions that HTML Compiler provide to us. We can open an audio or video file, for example, and even open an specific executable (maybe a player) responsible to open the audio or video file we wanted. Take a look at the "LocalVideo" sample which is included with DecSoft's HTML Compiler.

Offline

Board footer

Powered by FluxBB


Copyright ©2018 DecSoft. All rights reserved.