Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. XBackBone
  3. MP4 files not playing in Safari on Iphones

MP4 files not playing in Safari on Iphones

Scheduled Pinned Locked Moved XBackBone
19 Posts 3 Posters 7.0k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • girishG Offline
    girishG Offline
    girish
    Staff
    wrote on last edited by
    #10

    I have opened an issue upstream - https://github.com/sergix44/XBackBone/issues/557

    danielreyes61D 1 Reply Last reply
    1
    • girishG girish

      I have opened an issue upstream - https://github.com/sergix44/XBackBone/issues/557

      danielreyes61D Offline
      danielreyes61D Offline
      danielreyes61
      wrote on last edited by
      #11

      @girish thank you

      1 Reply Last reply
      1
      • girishG girish

        I know the issue is not cloudron related but still can't resist debugging 🙂 The issue is to do with range requests not being handled properly by XBackBone . https://stackoverflow.com/questions/30199261/why-wont-safari-play-file-without-extension-in-video . Seeing if the fix is trivial, otherwise we have to report it upstream.

        danielreyes61D Offline
        danielreyes61D Offline
        danielreyes61
        wrote on last edited by
        #12

        @girish I've confirmed, all that is needed is to remove the autoplay attribute from the video html tag and everything will work on iphones, I spun up a separate docker container on a fresh ubuntu vm and it is working after editing the template resource files that I listed above.

        girishG 1 Reply Last reply
        0
        • danielreyes61D danielreyes61

          @girish I've confirmed, all that is needed is to remove the autoplay attribute from the video html tag and everything will work on iphones, I spun up a separate docker container on a fresh ubuntu vm and it is working after editing the template resource files that I listed above.

          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #13

          @danielreyes61 when I tested it, it was not working even without autoplay . What is your patch? Did you only remove autoplay in public.twig and nothing else (and clear cache) ?

          danielreyes61D 3 Replies Last reply
          0
          • girishG girish

            @danielreyes61 when I tested it, it was not working even without autoplay . What is your patch? Did you only remove autoplay in public.twig and nothing else (and clear cache) ?

            danielreyes61D Offline
            danielreyes61D Offline
            danielreyes61
            wrote on last edited by danielreyes61
            #14

            @girish oh I didn't clear the cache, I didn't fully understand that cache is created on demand, I looked in about 6 cache folders for the autoplay tag and removed it and it worked. I removed it from the audio only element and the video element as well, so to summarize: removed in twig and in cache. Did you confirm in chrome developer tools that the tag was removed? It's late in my shift and I'm getting sleepy so I'm trying to be clear. I usually skip steps when I'm writing once I get tired. Hope this makes sense.

            1 Reply Last reply
            1
            • girishG girish

              @danielreyes61 when I tested it, it was not working even without autoplay . What is your patch? Did you only remove autoplay in public.twig and nothing else (and clear cache) ?

              danielreyes61D Offline
              danielreyes61D Offline
              danielreyes61
              wrote on last edited by
              #15

              @girish I wonder if editing the files after cache is generated is the trick?

              1 Reply Last reply
              0
              • girishG girish

                @danielreyes61 when I tested it, it was not working even without autoplay . What is your patch? Did you only remove autoplay in public.twig and nothing else (and clear cache) ?

                danielreyes61D Offline
                danielreyes61D Offline
                danielreyes61
                wrote on last edited by
                #16

                @girish after editing the files, I restarted the docker container too.

                1 Reply Last reply
                0
                • girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #17

                  @danielreyes61 I tried this again. As you said, without autoplay it works on iphone. But the same thing doesn't work on desktop safari though 😕 Looks like something upstream to fix.

                  danielreyes61D 1 Reply Last reply
                  1
                  • girishG girish

                    @danielreyes61 I tried this again. As you said, without autoplay it works on iphone. But the same thing doesn't work on desktop safari though 😕 Looks like something upstream to fix.

                    danielreyes61D Offline
                    danielreyes61D Offline
                    danielreyes61
                    wrote on last edited by
                    #18

                    @girish or leave autoplay and add playsinline attribute and see if it works then.

                    Enable Video Autoplay
                    Video elements that include <video autoplay> play automatically when the video loads in Safari on macOS and iOS, only if those elements also include the playsinline attribute.

                    girishG 1 Reply Last reply
                    0
                    • danielreyes61D danielreyes61

                      @girish or leave autoplay and add playsinline attribute and see if it works then.

                      Enable Video Autoplay
                      Video elements that include <video autoplay> play automatically when the video loads in Safari on macOS and iOS, only if those elements also include the playsinline attribute.

                      girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #19

                      @danielreyes61 playsinline doesn't seem to help on desktop safari. It does play inline on iphone . Funnily, iphone shows negative values in the time slider! And seek doesn't work either. I think it's all to do with the app not doing byte range requests properly.

                      1 Reply Last reply
                      1
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search