View Single Post
Old 01-10-2021, 05:58 AM   #1
alex1964
Junior Member
alex1964 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jan 2021
Device: Sigil 0.8.4
entering a video into an e-book

how is it possible to enter an mp4 or any other video file into an e-book? I wrote the code, an empty player appeared, but I can't specify the path to the file. I entered the mp4 file into the book and I wrote the path to the book, but the player is also empty. How to do it correctly?
here is the player code with the link:

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>

<title>video</title>
</head>

<body>
<video width="400" height="300" controls="controls" poster="video/duel.jpg">
<source src="video/duel.ogv" type='video/ogg; codecs="theora, vorbis"'>
<source src="C:\Users\acer\Documents\Алёша\ЛИТТКА\ТЕКСТЫ\Р АССКАЗЫ\проба 01.epub\перв_лицо_Шмагина.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
<source src="video/duel.webm" type='video/webm; codecs="vp8, vorbis"'>Тег video не поддерживается вашим браузером. <a href="video/duel.mp4">Скачайте видео</a>.</source>
</source>
</source>
</video>

<p><br /></p>
</body>
</html>

this player supports many video formats, I left links to other types (video.duel), I think this will not be a mistake.
Or is the code only suitable for the url address and the code cannot be used in an e-book?
alex1964 is offline   Reply With Quote