Welcome to the LimeSurvey Community Forum

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

Embed video without time display

More
9 years 6 months ago #132376 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.
More
9 years 6 months ago #132379 by holch
I don't see much of a chance despite selfhosting, if you are allowed to do so.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
More
9 years 5 months ago #132410 by oboneh
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.
More
9 years 5 months ago #132423 by tpartner
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.
More
9 years 5 months ago - 9 years 5 months ago #132424 by oboneh
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: 9 years 5 months ago by oboneh. Reason: add code
The topic has been locked.
More
9 years 5 months ago #132426 by tpartner
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.
More
9 years 5 months ago - 9 years 5 months ago #132428 by oboneh
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: 9 years 5 months ago by oboneh. Reason: addition
The topic has been locked.
More
9 years 5 months ago #132431 by oboneh
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.
More
9 years 5 months ago - 9 years 5 months ago #132467 by oboneh
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: 9 years 5 months ago by oboneh. Reason: Wanted to add an important point
The topic has been locked.
More
9 years 5 months ago #132489 by tpartner
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.
More
9 years 5 months ago #132492 by oboneh
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.
More
9 years 5 months ago #132497 by tpartner
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.
More
9 years 5 months ago - 9 years 5 months ago #132504 by oboneh
Oh, I see now. Please excuse my ignorance; I'm (obviously) a total novice with using html. I didn't realize that the difference lied in the link. Thank you very much for your help. I understand now.
Last edit: 9 years 5 months ago by oboneh. Reason: Change
The topic has been locked.
More
9 years 5 months ago #132514 by holch
I told you yesterday in the other thread already that you should compare the URL you are using and the one tpartner was using. You insisted that it had worked with this exact code before, which obviously wasn't true.

You don't seem to read what we write, which makes it quite hard and frustrating to help you. Sorry, this needed to be said. ;-)

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
More
9 years 5 months ago - 9 years 5 months ago #132526 by oboneh
I am very sorry that this was frustrating for you. I promise that I was reading as closely as possible to all of the advice that was given and that I never intended to make it frustrating for anyone. Somehow I missed the URL point and read it as the code instead. Please forgive me for this human error. I sincerely appreciate the help and thanks to you both, I have found the solution to the problem that I was about to give up on.
Last edit: 9 years 5 months ago by oboneh. Reason: change
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose