Totara Learn Open Discussions

Video resizing

 
Larry Mitipelo
Video resizing
by Larry Mitipelo - Thursday, 13 May 2021, 7:10 PM
Group Helpful contributor 2024Group Most Helpful Contributor 2021Group Most Helpful Contributor 2022Group Most helpful contributor 2023

Hi,

Is it possible to add a video within a block and then have it dynamically resize with the browser window?

Thanks,
Larry



Craig Eves
Re: Video resizing
by Craig Eves (Totara Support) - Sunday, 16 May 2021, 4:44 PM
Group Totara

Hi Larry 

I tried adding a HTML block to a course and then selecting the media button in the editor and adding a video .

When I resized the browser window the video resizes dynamically - is this what you tried?


Regards



Larry Mitipelo
Re: Video resizing
by Larry Mitipelo - Monday, 17 May 2021, 12:16 PM
Group Helpful contributor 2024Group Most Helpful Contributor 2021Group Most Helpful Contributor 2022Group Most helpful contributor 2023

Hi Craig,

When I try that the video resizes to a certain extent as I change the browser window.

But I get a scroll bar at the bottom of the block when the window gets too small

Image

thanks,

Larry


Craig Eves
Re: Video resizing
by Craig Eves (Totara Support) - Monday, 17 May 2021, 7:18 PM
Group Totara

Hi Larry

Ok thanks there must be something else happening maybe browser related or the content type - mine is You Tube video or might be an iFrame.

I will ask for some developer input?

Regards



Simon Chester
Re: Video resizing
by Simon Chester - Monday, 17 May 2021, 10:20 PM
Group Totara

Hi Larry,

Do you have the videojs media plugin enabled in Plugins -> Media players -> Manage media players?

If there are no media plugins enabled that can handle video elements, it will be rendered by the browser with default styling, which looks like what is happening in your screenshot. Browser default styling for video elements isn't responsive, which may be why it's behaving like that.

Thanks,
Simon

Simon Chester
Re: Video resizing
by Simon Chester - Monday, 17 May 2021, 10:36 PM
Group Totara

One more thing that just occurred to me, if the video is not supported by the browser it can display like that even if videojs is enabled - the screenshot looks like IE, maybe worth checking if it is in a format that IE supports. From memory, IE only supports mp4.

Larry Mitipelo
Re: Video resizing
by Larry Mitipelo - Tuesday, 18 May 2021, 6:39 PM
Group Helpful contributor 2024Group Most Helpful Contributor 2021Group Most Helpful Contributor 2022Group Most helpful contributor 2023

Hi Simon,

We do have that plugin enabled.

The video is an mp4 but I've tried in Firefox and Chrome with the same results.

Thanks,
Larry

Simon Chester
Re: Video resizing
by Simon Chester - Tuesday, 18 May 2021, 9:56 PM
Group Totara

Hi Larry,

That's unusual, I haven't been able to reproduce this on our end.

If your site is public, would you be able to post a link to a page that reproduces the issue? Otherwise could you please file a bug with details on how to access such a page?

Thanks,
Simon

Larry Mitipelo
Re: Video resizing
by Larry Mitipelo - Wednesday, 19 May 2021, 11:54 AM
Group Helpful contributor 2024Group Most Helpful Contributor 2021Group Most Helpful Contributor 2022Group Most helpful contributor 2023

Hi Simon,

I've found that loading the video using the link option works. So I load the video in a label resource, copy the URL and then use it in the  Media/Link/Source URL of a HTML block

While that's not ideal it's not too far away from just using the video option.

Our site isn't public and I'm not sure how I would file a bug. Do you mean with our Tōtara partner?

Thanks,
Larry

Simon Chester
Re: Video resizing
by Simon Chester - Wednesday, 19 May 2021, 5:37 PM
Group Totara

Hi Larry,

Glad to hear you found a workaround -- it still sounds like a bug though, you should definitely be able to add videos to HTML blocks, so filing it would be ideal. You'll have to report the issue to your Totara partner for it to make its way to us.

Thanks,
Simon