Unnecessary script is breaking responsive web design
LiveStream's server-side code loaded from an embedded iframe has scripting that is breaking responsive design techniques.
I'm working on a live-streaming page that uses responsive web design. I've figured out how to resize the LiveStream player, but it only works on refresh, not resizing. The problem is built into LiveStream, not my code.
<div id="layout4" style="display: block; width: 960px; height: 564px; ">
<div id="layout4-lsplayer" style="width: 960px; height: 564px; "> … </div>
This means that if the iframe is resized from responsive web design, that the script has already set a fixed pixel width and height to the internal player. The only way to resize the player is to refresh the browser, which is poor practice for responsive web design.
After the page has loaded, I can strip the inline CSS from these two elements, and every works perfectly. In reality, this seems quite unnecessary, especially if the width and height are being set (twice) in the iFrame code.
Please turn this off and make the code more semantic without the inline CSS, or else tell us how I can override it and prevent LiveStream's script from breaking the layout on my site.
Anyone resolve this? I am having a similar issue.
When resizing browser, the ideal behavior should be that the <iframe> from Livestream fills the intended browser width, but its not. What's the best way to resolve?
I found it only works to refresh the iframe using Jquery on window resize.
There is a bit of a work around. I noticed on the embed options there is a bit of text that reads
"This is our new iFrame embed code which supports flash and is mobile ready. Want to use the old embed code instead? Click here"
If you use the old embed code it doesn't use an iframe and you have a bit more flexibility to do this sort of manipulation.
|All times are GMT -4. The time now is 03:09.|