Forum Discussion
Responsive Embed Code not working properly
The below code is copied directly from Stream
"<div style='max-width: 640px'><div style='position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;'><iframe width="640" height="360" src="https://web.microsoftstream.com/embed/video/2cded409-af9e-409a-ba17-e9a7096a4580?autoplay=false&showinfo=true" frameborder="0" allowfullscreen style='position: absolute; top: 0; left: 0; right: 0; bottom: 0; height: 100%; max-width: 100%;'></iframe></div></div>"
I actually noticed that there's an overlaping image which could be the cause of the scroll bars, i've attached a screen shot below, I think this image is replaced by the actual responsive video when a user clicks play.
Overlapping Image causing the scroll bars
Tiger Boshomane - I tried to reproduce this issue internally here at Microsoft but wasn't able to make it look like you have.
A few observations. It looks like the scroll bars up/down and left/right are not inside the iFrame. From yourscreenshot it makes me think they are in your HTML code around the Stream iFrame.
Also it looks like for some reason the Stream embed iframe didn't render quite right. There is a black circle centered with a triangle to the right of it. I believe that white triangle is supposed to be inside of the black circle for our play icon button. Do you have any idea if there is some other code / css on the page that is messing up the rendering of the Stream embed?
Can you check this issue on other OS/Browsers and see if has the same problem there?
What OS/Browser is your screenshot from?
The worst that I could get to happen in my testing was that there was just a vertical scroll bar at some very specific narrow widths for Stream when the title of the video was long (wraps to 2 or more lines). However the scroll bar went away again if I made the player even narrower. But I don't think the scroll bars you are seeing are not from the player, because of the white space between the player and the scroll bar in your picture.
- Tiger BoshomaneNov 02, 2017Brass ContributorWe use windows 10 and IE Version 11.1480.14393.0. I tried recreating it today but once i place the video on the page it asks me to sign in and that process doesn't work, but that's another topic all together
- Gynanendra Prasad RayOct 27, 2017Copper Contributor
I am also facing similar issue.. I placed the embedded video URL inside a content editor web part (classic page). The web part zone is smaller in size and takes 20% of the total width of the page. Now in the screenshot attached it can be seen that a scrollbar is appearing only in IE. I have IE 11.0.9600. The inner triangle which is a .svg-icon takes 100% width and not sure why it pushes which created scrollbar.
- Amit RajputOct 27, 2017Former Employee
Gynanendra Prasad Ray do you see this issue in any other browser? Additionally, if you take the same embed code to jsfiddle.net and paste it into the html section and click run, do you have the same issue?
- Gynanendra Prasad RayOct 27, 2017Copper Contributor
It happens only with IE. Works perfectly alright with Chrome and Mozilla.The same embedded code works fine without a scrollbar with jsfiddle.net.