Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Embed video without time display

  • oboneh
  • oboneh's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 3 weeks ago #132376 by oboneh
Embed video without time display was created by oboneh
I would like to embed videos to the survey without the user being able to see the time display, but to be able to play and stop. I know how to do this with YouTube by editing the iframe, but there are copyright issues preventing me from doing this (I'm using public domain clips from Tarkovsky, but it won't let me play it on an external server - even when the video is unlisted, where upon clicking 'play,' it says "This video contains content from Mosfilm, who has blocked it from display on this website...watch on youtube," so one can watch it on youtube, but not on the survey). I've tried on vimeo, but at least on a basic account, it seems that one cannot edit the iframe to hide the time display like on YouTube. This is for an online experiment involving watching short videos and answering questions. I would like the subject not to see the time display because some of the questions concern a subjective perception of time and I would like them not to know how long the clip is. Please let me know if anyone has any ideas about how to do this. Thank you very much.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 3 weeks ago #132379 by holch
Replied by holch on topic Embed video without time display
I don't see much of a chance despite selfhosting, if you are allowed to do so.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • oboneh
  • oboneh's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 3 weeks ago #132410 by oboneh
Replied by oboneh on topic Embed video without time display
So you don't think it's possible? I am trying to do it using the HTML5 video tag. It should theoretically be possible this way, but I'm really not well versed in this and am sure that I'm doing something wrong.

So, the mp4 video that I would like to embed is this:

drive.google.com/file/d/0B66ZiZzQ_tMLcW94X2JrVXZWUXc/view

And the code that I'm trying to embed it with just to get it to play is this:

<video width="320" height="240" controls>
<source src=" drive.google.com/file/d/0B66ZiZzQ_tMLcW94X2JrVXZWUXc/view " type="video/mp4">
</video>

But I'm not getting successful results. Any ideas as to what I'm doing wrong?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 3 weeks ago #132423 by tpartner
Replied by tpartner on topic Embed video without time display
Try this to use a <video> element:

Code:
<video width="320" height="240" controls>
  <source src="https://drive.google.com/uc?export=download&amp;id=0B66ZiZzQ_tMLcW94X2JrVXZWUXc" type='video/mp4'/>
</video>

But note that the <video> element does not work in older browsers.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • oboneh
  • oboneh's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 3 weeks ago - 8 years 3 weeks ago #132424 by oboneh
Replied by oboneh on topic Embed video without time display
Yes I tried to use the <video> element and it will not work (I even tried using different sites: limesurvey, weebly, google sites and thus I figured I must be doing something wrong) and also tried it on chrome and firefox. I attached an image of the result that I get. I am not able to play anything. Any ideas??

This is the code I am using:

<video width="320" height="240" controls>
<source src=" drive.google.com/file/d/0B66ZiZzQ_tMLcW94X2JrVXZWUXc/view " type="video/mp4">
</video>
Last edit: 8 years 3 weeks ago by oboneh. Reason: add code
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 3 weeks ago #132426 by tpartner
Replied by tpartner on topic Embed video without time display
Did you try the code I provided?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • oboneh
  • oboneh's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 3 weeks ago - 8 years 3 weeks ago #132428 by oboneh
Replied by oboneh on topic Embed video without time display
I did and still did not work...
However, I used your code in Weebly and got it to work! So now, it's only not working on Limesurvey..
Although, now I tried to place it in "source" and I got it to work - I didn't realize that I needed to do that. Thank you so much for the help!
Last edit: 8 years 3 weeks ago by oboneh. Reason: addition
The topic has been locked.
  • oboneh
  • oboneh's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 3 weeks ago #132431 by oboneh
Replied by oboneh on topic Embed video without time display
So now that I am able simply to play the video, does anyone know of a way that I can edit the javascript to hide the time display?
(the help is much appreciated!)
The topic has been locked.
  • oboneh
  • oboneh's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 3 weeks ago - 8 years 3 weeks ago #132467 by oboneh
Replied by oboneh on topic Embed video without time display
Hello again. I figured out how to display the video without the time display and I used your code to embed the video to perfect success earlier today. Now, the same exact code no longer works (on limesurvey, google sites and weebly) and results only in an empty video box. Any ideas on why this might be?
Last edit: 8 years 3 weeks ago by oboneh. Reason: Wanted to add an important point
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 3 weeks ago #132489 by tpartner
Replied by tpartner on topic Embed video without time display
Please post all of your current code - we have no way of debugging it without seeing it.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • oboneh
  • oboneh's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 3 weeks ago #132492 by oboneh
Replied by oboneh on topic Embed video without time display
Here is the code:

<video width="320" height="240" controls>
<source src=" drive.google.com/file/d/0B66ZiZzQ_tMLcW94X2JrVXZWUXc " type='video/mp4'/>
</video>

I did not post it because it is exactly the same code that you posted. It was working and now no longer works. This leads me to believe that it could be a problem with hosting the video on google drive. Could that be?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 3 weeks ago #132497 by tpartner
Replied by tpartner on topic Embed video without time display
That is NOT the code I posted. Look at the src attribute.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: oboneh
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose