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

131
Views
Reproduce automáticamente un archivo mp3 con Apps Script en las hojas de Google

Tengo una hoja de cálculo de Google con las URL de mis archivos de audio de mi propia carpeta de Google Drive. Realicé un Script de labnol.org ( gracias a @Amit Agarwal ) para abrir un Mini Player en un iframe.

¿Es posible reproducir automáticamente el archivo si el mini reproductor está abierto?

El script de aplicaciones es de aquí: https://www.labnol.org/play-mp3-google-sheets-220504 :

 const openAudioPlayer = () => { const cell = SpreadsheetApp.getActiveSheet().getActiveCell().getValue(); const html = `<iframe src="${cell}" width="480" height="180" frameborder="0" scrolling="no"></iframe>`; const dialog = HtmlService.createHtmlOutput(html).setTitle('Play').setWidth(500).setHeight(200); SpreadsheetApp.getUi().showModelessDialog(dialog, 'Play Audio'); };
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Utilice el atributo de autoplay delelemento de audio :

 /** * Plays audio from src specified in active cell * @OnlyCurrentDoc * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio * @link https://stackoverflow.com/a/73228860/ */ (()=>SpreadsheetApp.getUi().showModelessDialog( HtmlService.createHtmlOutput(`<audio src="${ SpreadsheetApp.getActiveRange().getValue() }" autoplay>`).setWidth(1).setHeight(1) ,"🔊") )()
about 4 years ago · Juan Pablo Isaza Report
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!