Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

136
Vistas
Video Wall Layout

Given a stage of stageW by stageH, and N number of videos with (arbitrary) sizes srcVideoW by srcVideoH, how to best layout the videos to cover the maximum coverage? Videos can scale up or down but should be scaled proportionately (either portrait or landscape) with matching heights.

let VideoCount = $("#Stage").find('video').length;
let stageW = $("#Stage").outerWidth();
let stageH = $("#Stage").outerHeight();
$("#Stage").find('video').each(function() {
    var srcVideoW = this.videoWidth;
    var srcVideoH = this.videoHeight;

    var BestWidth = 0;
    var BestHeight = 0;

    // Magical Javascript goes here

    $(this).css("float", "left");
    $(this).css("display", "inline-block");
    $(this).css("width", BestWidth+"px");
    $(this).css("height", BestHeight+"px");
}

Most likely layout would be: if there is only 1 video, it would probably take up the stage width and height, if 2 then be side-by-side, 3 also in a row, from about 4, it would probably be best two on the first row, two on the second.... etc etc

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

This is what you are looking for: https://alicunde.github.io/Videoconference-Dish-CSS-JS/

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda