What steps do I need to take to ensure my video is responsive using bootstrap?

I'm facing a problem with making my video responsive in Bootstrap. Another issue is that when I tried running this code on my laptop, it ends up downloading the video instead of displaying it. As a result, the video doesn't show up or adapt to different screen sizes. Here's the code I used:

<div class="container">
   <div class="embed-responsive embed-responsive-16by9">
    <iframe class="embed-responsive-item" src="image3/video.mov"></iframe>
   </div>

Answer №1

It's hard to believe, but I managed to solve my own query.

         <video  controls>
            <source src="image3/video.mov" type="video/mp4">
            <source src="image3/video.mov" type="video/ogg">
          </video>

Furthermore, due to utilizing bootstrap within a container, I found it necessary to eliminate the padding in order for proper mobile display.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Can we access an element within the document using its context?

One common method to access an element is by using its id: <div id="myId"></div> <script type="text/javascript"> $(document).ready(function(){ $('#myId').something(); }); </script> However, there are inst ...

What steps should I take to retrigger the function when I click on it a second time?

Is there a way to make the ball trigger the bounce function repeatedly in JavaScript? I want it to bounce more than once on click. <script> var ball = document.querySelector(".ball"); var blo = -2; function bounce(){ va ...

Set a div to have both absolute positioning and sticky behavior

Looking to create a div ("profilemenu") that pops out on the right side of the page triggered by a button (I'll handle this part). I want it to have a sticky attribute, but positioning has been tricky. Using position: absolute works for proper placeme ...

What is the best way to center the header on the page?

Struggling to align the header and images centrally on the page, I've been experimenting with the box model but haven't had much success. Being new to this area, any guidance or tips would be greatly appreciated. https://i.sstatic.net/ejR8L.png ...

Interactive feature in Three.js causes page to scroll downwards upon object selection

Exploring Three.js for the first time, I'm looking to integrate it into the landing page of my website. However, I've encountered an issue where clicking on the scene area with my object causes the page to shift downward. I've tried adding o ...

Converting HTML to PDF in Java using iText with proper formatting of <pre> blocks

I am currently using iText for the purpose of converting HTML file structure to PDF format. Within my HTML files, I have included code snippets enclosed in <pre> blocks, but unfortunately, iText does not preserve their original formatting. Here is a ...

Utilizing ng-repeat to loop through a div element that consists of various nested tags

I need to display multiple tabs, with each tab having a table where the values are populated from a database. The number of tabs is dynamic and fetched from another page of the application. All tables have the same structure but different values. How can I ...

Prevent HTML Characters from Rendering in Preformatted Text Tag

After setting up a syntax highlighter, I found out that for it to function properly, the tags need to be indicated as &lt; and &gt;. My task now is to switch all <'s with &lt; and >'s with &gt;, but only within the PRE tag. ...

Cannot access mobile navigation due to expanded browser search bar

Greetings, all! Currently, as I am in the process of developing a website for my company, I have encountered an issue with the navigation menu, specifically on mobile devices, or more accurately, mobile browsers(most of them). The hamburger icon seems to ...

The overflow-x property causes the left side of the component to be cut off when scrolling

When the screen width is insufficient to display a component properly, I need it to be horizontally scrollable. However, when scrolling to the left after making it scrollable due to a smaller screen size, the left side of the component gets cut off and can ...

Behavior of floating footer in Wordpress across different web browsers is inconsistent

I'm facing an issue with the footer of my WordPress website, where it behaves differently in Chrome and Firefox. In Chrome, the right part of the footer seems to be moving out of alignment with the left part, while it displays correctly in Firefox. Y ...

The HTML code starts with a fluid middle column in a 3-column layout, while the other two columns have fixed widths

I am interested in creating a traditional 3-column layout similar to this: | | | | |L | M |R | | | | | I have been tasked with using the following html structure: as depicted, the Main div is the initial node of #container <body> ...

Adjust the contents of a div to automatically fit within a hidden overflow div

Trying to fit the contents of a div (including an image, search bar, and three buttons stacked on top of each other) into another div with CSS styling that hides overflow has been a challenge. The CSS code for the div in question is: .jumbotron { overfl ...

The full execution of Jquery show() does not pause until it finishes

Here is the sequence I want to achieve: Show a div element with the CSS class yellow Execute a function for about 5 seconds Remove the yellow class and add the green CSS class "state Ok" However, when running my code, the div container does not appear u ...

Extracting text from HTML tags can be quite tricky, especially when you need the text within a specific tag like <td> but not within any nested tags like <

Is there a way to extract only the numbers from the <td> tag and ignore any text within the <strong> tag that is nested inside it? I am currently using selenium code but it returns the entire content of the <td> tag. Python Code: wait. ...

What is the best way to superimpose an image onto a canvas?

I am working on a cool project where I have created a canvas that displays matrix binary code raining down. However, I would like to enhance it by adding an image overlay on top of the canvas. Here is my current setup: <div class="rain"> ...

Show the center portion of an image without needing to know the size, both horizontally and vertically aligned

I have experimented with various methods like table-cell, but none of them have been successful. All I am seeking is an <img src="" /> within an <a> tag. The <a> element has specific width, height, and overflow:hidden properties set. H ...

Maximizing Bootstrap card size in Angular4: A step-by-step guide

How can I make Bootstrap cards resizable on top of other elements when clicked on an icon to make it full screen and overlay on other cards? detail.component.html <div class="card card-outline-info" > <div class="card-header bg-info"><h5 ...

What is the best way to showcase the Play (Forward) or Solid right arrow symbol in an HTML document?

Is there a way to show the ► Play (Forward) or Solid right arrow symbol in an HTML document? ...

Retrieving Data from Outside Source using AngularJS

Is there a way to retrieve JSON-Text-Stream data from a specific URL (e.g. SOMEURL/ean.php?id=4001513007704)? The returned result typically appears as follows: { "product": { "ean_id": "4001513007704", "title": "Gerolsteiner Mineralw ...