Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Video cannot play

Dear all,

Why i cannot play video on my window tab when i use Offline Surveys for Windows?

Does anyone know about this?
asked Nov 28, 2017 by Saroeun Bronze (1,440 points)
What code are you using to display the video?
Zachary,

I use this script:

<video id="myVideo" width="640" height="320" controls>
  <source src="[%GraphicsPath()%]Similac TC-HD-1.mp4" type="video/mp4">
  Sorry, this browser cannot display the embedded video file.
</video>

1 Answer

0 votes
It appears that Chromium, the browser used by Offline Surveys, is unable to support your MP4.  You may be able to resolve your problem by converting your MP4 into an OGV, then including both files in your survey.

Here is one tool for converting video files: https://convertio.co/mp4-ogv/

Once you've added the converted file into your graphics folder, you can modify your HTML to look like this:

<video id="myVideo" width="640" height="320" controls>
    <source src="[%GraphicsPath()%]Similac TC-HD-1.mp4" type="video/mp4">
    <source src="[%GraphicsPath()%]Similac TC-HD-1.ogv" type="video/ogg">
    Sorry, this browser cannot display the embedded video file.
</video>
answered Nov 29, 2017 by Zachary Platinum Sawtooth Software, Inc. (81,550 points)
Thanks Zachary,

My *.mp3 are the same.
I'm not sure what MP3 you mean.  Have you converted your file into an OGV?
...