[html] autoplay video su browser mobile

Linguaggi di programmazione: php, perl, python, C, bash e tutti gli altri.
Avatar utente
thaiboxer89
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 322
Iscrizione: giovedì 15 settembre 2011, 14:13

[html] autoplay video su browser mobile

Messaggio da thaiboxer89 »

salve a tutti ho provato a fare degli autoplay nel codice html

Codice: Seleziona tutto

<iframe width="100%" height="349" src="http://www.youtube.com/embed/neiOa38DuqI?autoplay=1" frameborder="0" allowfullscreen></iframe>
sia prendendo il video da youtube che sul server del mio sito

Codice: Seleziona tutto

 <video width="100%" height="240" controls autoplay>
  <source src="Spot_Conad_2014.mp4" type="video/mp4">
  
  Your browser does not support the video tag.
</video> 
ho provato entrambi,ed entrambi dal pc mi aprono il video in automatico, ma da mobile no...c'è un modo per aprirlo in automatico? magari anche sfruttando qualche funzione in js? un grazie in anticipo :ciao:
Avatar utente
SuperStep
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2037
Iscrizione: lunedì 19 dicembre 2011, 16:26
Desktop: Unity
Distribuzione: Ubuntu 16.04 LTS x86_64
Sesso: Maschile
Località: Somma Vesuviana (NA)

Re: [html] autoplay video su browser mobile

Messaggio da SuperStep »

devi usare il metodo play dell'oggetto video.

http://www.w3schools.com/tags/av_met_play.asp
ubuntu 16.04 LTS 64-bit - Memoria: 31,3 Gib - Processore: Intel Core i7-5960X CPU @ 3.00 GHz × 16 - Grafica: AMD Radeon HD 7800 Series - Disco: SSD 256 GB x 4 (RAID 01)
Scrivi risposta

Ritorna a “Programmazione”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 4 ospiti