3
html autoplay ios
  • MerlinW
    #3
    html topik
    jsvacript topik
    Utoljára szerkesztette: MerlinW, 2021.01.12. 00:11:07
  • NEOreg3
    #2
    In Safari on iOS (for all devices, including iPad), where the user may be on a cellular network and be charged per data unit, preload and autoplay are disabled. No data is loaded until the user initiates it. This means the JavaScript play() and load() methods are also inactive until the user initiates playback, unless the play() or load() method is triggered by user action. In other words, a user-initiated Play button works, but an onLoad="play()" event does not.

    This plays the movie: <input type="button" value="Play" onclick="document.myMovie.play()">

    This does nothing on iOS: <body onload="document.myMovie.play()">

    Note: This requirement applies to media played by <audio> tags, <video> tags, and Web Audio.
  • realathos
    #1
    iphonon nem muxik az autoplay hang html kod, ami androidos telon igen (egy tucat hang formatummal probalkoztam): <audio autoplay="autoplay">
    <source src="https://....aac" type="audio/aac" />Your browser does not support the audio element.</audio>
    vknek van vm 5lete? legyszi hagyjuk azt, h jobb ha a user donti el, h szoljon-e vm, specko eset miatt van erre szuksegem.
    Utoljára szerkesztette: realathos, 2021.01.10. 12:34:26