Embedded video with height of "100%" only shows half
Bug #1652997 reported by
Kristina Hoeppner
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
In Progress
|
Medium
|
Ivan Barreto |
Bug Description
https:/
The video has a height of 100% but only shows half. When I add a px height, I get the full video. Does the block not recognize percentages correctly?
<iframe src="https:/
tags: | added: front-end |
Changed in mahara: | |
assignee: | nobody → Ivan Barreto (ivanbarreto) |
status: | Triaged → In Progress |
To post a comment you must log in.
The only way to fix this at the moment without dev work is to tweak the embed code manually in Mahara with a height that would work. e.g.
Instead of /media. xjtlu.edu. cn/player? autostart= n&fullscreen= y&width= 0&height= 0&videoId= 5656&quality= lo&captions= n&chapterId= 0" frameborder="0" scrolling="no" style=" position: absolute; top:0;left: 0;width: 100%;height: 100%;" allowfullscreen ></iframe>
<iframe src="https:/
Recommended media.xjtlu. edu.cn/ player? autostart= n&fullscreen= y&width= 0&height= 0&videoId= 5656&quality= lo&captions= n&chapterId= 0" frameborder="0" scrolling="no" allowfullscreen ></iframe>
<iframe width="500" height="400" src="http://
Two ways going forward:
1. Your platform changes its code to generate height and width options that are more aligned to what other social media platforms do.
2. Mahara change to investigate: If the iframe width and height are not working, be able to override them by entering values into the width and height fields that we have rather than ignoring those fields.