Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

160
Views
El atributo silenciado se elimina de mi video cuando se clona

Tengo problemas con el atributo silenciado en mi video cuando se clona.

Tengo un video que obtengo del almacenamiento de Firebase. Al clonar el video en otra sección de mi aplicación web, el atributo silenciado se elimina y el sonido vuelve a activarse.

¿Alguien sabe por qué sucede esto y cómo evitarlo?

 function getData(folder){ let newFile = folder.toString().toLowerCase(); console.log(newFile); // Create a reference under which you want to list -> variable "newFile" to select what file to load. const listRef = ref(storage, newFile); // Find all the prefixes and items. listAll(listRef) .then((res) => { res.prefixes.forEach((folderRef) => { }); res.items.forEach((itemRef) => { getDownloadURL(itemRef).then((url) =>{ // Make the videoCard let videoCard = document.createElement('div'); videoCard.classList = "videoCard"; // Add vid section let vid = document.createElement('div'); vid.classList = "vid"; videoCard.appendChild(vid); // Make videocard let newVideo = document.createElement('video'); newVideo.src =`${url}` newVideo.setAttribute('width', 300) newVideo.classList.add('videoAdded') newVideo.autoplay = true; newVideo.muted = true; newVideo.loop = true; vid.appendChild(newVideo); // Make heading and button let headingDiv = document.createElement('div'); headingDiv.classList = "heading_add" let newh2 = document.createElement('h2'); newh2.innerHTML = itemRef.name; headingDiv.appendChild(newh2) videoCard.appendChild(headingDiv) // Button for h2 let newBtn = document.createElement('button'); newBtn.classList = "add_video_btn"; newBtn.innerHTML = "+"; headingDiv.appendChild(newBtn); videos.appendChild(videoCard); newBtn.addEventListener('click', () =>{ const exercises = document.querySelector('.exercises'); const clone = videoCard.cloneNode(true); console.log(clone) exercises.appendChild(clone) }); }) }); }).catch((error) => { // FUCK! An error occurred! console.log(error) }); }

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!