Page 4 of 4

Re: playing an .mp4?

PostPosted: Thu Nov 07, 2019 11:06 am
by Clifton
Zip up a small example that fails and we'll take a look.
The message you are looking at is either because the video path is invalid (not found) or the mp4 format is not browser-friendly or web optimized.
 

Re: playing an .mp4?

PostPosted: Thu Nov 07, 2019 3:32 pm
by Robert Stevenson
Have at er. I will send via email.

Re: playing an .mp4?

PostPosted: Thu Nov 07, 2019 3:54 pm
by Clifton
All you need to do is change your path to the mp4. The browser cannot find the file.
Change:
"..videos/bob.mp4"

To:
"../videos/bob.mp4"

and export the book and the video will play as expected. It did for me.

Understanding paths in the exported files:
  1. When a exported project loads the current folder depends on the browser loading the file. For example, if you load your content in Firefox, then the current folder in the exported content will be [fe] or [ns7] depending on the export folder tree.
  2. To reference a video in the exported tree, you need to move up the tree with two dots ( .. ), then isolate the folder your file reference is located in by entering a path separator ( / ) and a folder name ( videos ) and finally the file ( /bob.mp4 ). So the entire file reference would look like this:
    ../videos/bob.mp4
  3. So your htmlVideoLoader() parameter list would look like this:
    Image 1.png
    htmlVideoLoader() Parameters
    Image 1.png (16.4 KiB) Viewed 6315 times

Re: playing an .mp4?

PostPosted: Thu Nov 07, 2019 4:03 pm
by Robert Stevenson
Thank you for the education. Appreciated.