Auto play video

I am using Nick Cates Aspen theme and it has the ability to load a video thru the slogan. Works great except is is possible to have it pull from a warehoused location instead.
How might I change this code to change the location

Screen Shot 2020-11-23 at 3.07.26 PM
Thanks in advance,
Linda

Haven’t tried it myself but have you tried changing the src= part? You might have to put the entire warehoused URL (https and all).

I have another question regarding this video. I am looking for the settings that would cause this video to resize based on the devise that it is displayed on. Currently Nic has the code set to a specific size. This works great for the desktop, but not so well for iPhone and other devices.

Any help would be appreciated!

Thanks,
Linda

The HTML video embed element (what you’re using isn’t responsive.

The width and height of the video’s display area, in CSS pixels (absolute values only; no percentages).

You don’t need to specify both, it’s more common to just specify the width and let the browser figure out the height.

There’s a CSS trick that does work if you want to give it a try.

Remove both the height and width from the HTML code above.

Then try adding this CSS to the code section

video
{
  max-width: 100%;
  height: auto;
  max-height: 100%;
}
1 Like

Thanks Doug!
I will give it a try
Linda

It is playing fine now but on the desktop I now have a margin on the right and left sides. It used to go edge to edge? Any thoughts?
https://langpierce.net/redwolf27/

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.