playing an .mp4?

Topics related to using ToolBook for building web apps.

Re: playing an .mp4?

Postby Clifton » Thu Nov 07, 2019 11:06 am

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.
 
Clifton
Site Admin
 
Posts: 732
Joined: Tue Jan 14, 2014 1:04 am

Re: playing an .mp4?

Postby Robert Stevenson » Thu Nov 07, 2019 3:32 pm

Have at er. I will send via email.
Robert Stevenson
 
Posts: 138
Joined: Wed May 14, 2014 11:46 am

Re: playing an .mp4?

Postby Clifton » Thu Nov 07, 2019 3:54 pm

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 6243 times
Clifton
Site Admin
 
Posts: 732
Joined: Tue Jan 14, 2014 1:04 am

Re: playing an .mp4?

Postby Robert Stevenson » Thu Nov 07, 2019 4:03 pm

Thank you for the education. Appreciated.
Robert Stevenson
 
Posts: 138
Joined: Wed May 14, 2014 11:46 am

Previous

Return to Web (DHTML) Development

Who is online

Users browsing this forum: No registered users and 2 guests

cron