missing video element ID in HTML5 output

This forum is for all Flare issues not related to any of the other categories.
Post Reply
yonatanlehman
Propeller Head
Posts: 51
Joined: Mon Sep 18, 2017 6:14 am

missing video element ID in HTML5 output

Post by yonatanlehman »

Hi
A problem and a question

I want the user to be able to press a link in the text (or perhaps a button), and then play a video in a video element from a given position
I've put the code I'm using below

1) For some reason the id I'm assigning to the video element in the source does not appear in the output.

The Text Editor has the following

<object MadCap:HTML5Video="true" src="../Resources/video/Open_bugs_add_remarks_ chat.mp4" MadCap:Param_controls="true" MadCap:Param_muted="false" MadCap:Param_loop="false" MadCap:Param_autoplay="false" id="videoID">
</object>

The output HTML is as follows, note that the id has disappeared! (I inserted it using ht Attributes pane)

<video controls="" class="_0">
<source src="../Resources/video/Open_bugs_add_remarks_ chat.mp4" type="video/mp4">Your browser does not support the video tag.
</source>
</video>

Also

Is this a reasonable way to implementing what I want?

<script type="text/javascript">/*<![CDATA[*/
var videoWindow;
var bugs_remarks_video_path = "../Resources/video/Open_bugs_add_remarks_ chat.mp4";
window.onload = function () {
videoWindow = document.getElementById("videoPane");
}
}/*]]>*/</script>

function startPlay(path, time) {
if (videoWindow.src != path) {
videoWindow.src = path;
}
videoWindow.currentTime = time;
if (videoWindow.paused) {
videoWindow.play();
}

<p><a onclick="startPlay(bugs_remarks_video_URL,54)" href="#" title="click to See video" alt="click to See video">See it</a>

Thanks
paintedturtle
Propeller Head
Posts: 88
Joined: Wed May 25, 2016 3:35 pm

Re: missing video element ID in HTML5 output

Post by paintedturtle »

yonatanlehman wrote:The Text Editor has the following

<object MadCap:HTML5Video="true" src="../Resources/video/Open_bugs_add_remarks_ chat.mp4" MadCap:Param_controls="true" MadCap:Param_muted="false" MadCap:Param_loop="false" MadCap:Param_autoplay="false" id="videoID">
</object>

The output HTML is as follows, note that the id has disappeared! (I inserted it using ht Attributes pane)

<video controls="" class="_0">
<source src="../Resources/video/Open_bugs_add_remarks_ chat.mp4" type="video/mp4">Your browser does not support the video tag.
</source>
</video>
Hello,
MadCap strips a lot of the coding you put on "object" videos within Flare when it outputs to PDF. I submitted a Bug and got a vague response. I have ended up coding "by hand" for the poster image and the preload settings outside of Flare after it outputs to HTML. It's a pain in the butt. Sorry that you've encountered the same issues. :(
~Sarah
Technical Writer using and experimenting with Flare version 12.0.5991.
Post Reply