Welcome to the LimeSurvey Community Forum

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

Embed a YouTube video

  • FaG2020
  • FaG2020's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 4 months ago #209469 by FaG2020
Embed a YouTube video was created by FaG2020
Hi


1. Does someone of you know whether it's possible to embed a YouTube video in such a way that it's (frame) size is appropriate for both Apple and Windows computers screens with different sizes?
2. Is it possible to change options so that the full screen button from the YouTube movie could be used (see screenshot)? How?

Thanks in advance
Attachments:
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago #209477 by Joffm
Replied by Joffm on topic Embed a YouTube video
Hi,
I only inserted the video with the respective button


and surrounded the generated code with
Code:
<div class="embed-responsive embed-responsive-16by9">
Code:
<div class="videodetector"><iframe frameborder="0" src="https://www.youtube.com/embed/81eyAVOUWyM?autohide=1&amp;amp;controls=1&amp;amp;showinfo=0"></iframe><input class="remove-videodetector" type="button" value="Remove video" /></div>
Code:
</div>
to make it responsive.

1. Full screen


2. Small screen


Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: FaG2020
The topic has been locked.
  • FaG2020
  • FaG2020's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 4 months ago - 3 years 4 months ago #209513 by FaG2020
Replied by FaG2020 on topic Embed a YouTube video
Okay, thank you for your reply Joffm!!
So, it should work if the code is like this, or in other words: I shouldn't add extra or less space/lines in between this:

Code:
<div class="embed-responsive embed-responsive-16by9">
<div class="videodetector"><iframe frameborder="0" src="https://www.youtube.com/embed/5uJ_vFLpX_8?autohide=1&amp;amp;controls=1&amp;amp;showinfo=0"></iframe><input class="remove-videodetector" type="button" value="Remove video" /></div>
</div>
 
<p> </p>
Last edit: 3 years 4 months ago by FaG2020.
The topic has been locked.
  • FaG2020
  • FaG2020's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 4 months ago #209546 by FaG2020
Replied by FaG2020 on topic Embed a YouTube video
Joffm, could you please check if the code is right? :)
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago #209548 by tpartner
Replied by tpartner on topic Embed a YouTube video
Did you try 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.
  • FaG2020
  • FaG2020's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 4 months ago #209549 by FaG2020
Replied by FaG2020 on topic Embed a YouTube video
Yes I tried, but I don't have many other computers from different screen sizes to test this. I'm quite unexperienced using code, but if you're saying that the code I entered above is right (incl. use of space and lines) than it's okay :)
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago #209551 by DenisChenu
Replied by DenisChenu on topic Embed a YouTube video
You can update size of your browser, no need to update screen …

And Firefox or Chrome have some tool when you press F12 : best is to use it.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago #209567 by Joffm
Replied by Joffm on topic Embed a YouTube video
I do not repeat what the others told you about resizing a window in "Windows", here



Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose