Giter VIP home page Giter VIP logo

Comments (6)

bcolflesh avatar bcolflesh commented on June 15, 2024

I took a look in the code and saw the .wav check, so I installed this. Works in a browser or Android devices, does not work on iOS at all, regardless of browser - embedded HTML5 player issues on iOS I assume.

Anyone have a cross-platform solution? Should I plug jplayer or something in there instead?

from attachment_preview.

bcolflesh avatar bcolflesh commented on June 15, 2024

Probably going to have to file_put_contents() the /help/file.php? request for this to work as a src value on iOS.

from attachment_preview.

clonemeagain avatar clonemeagain commented on June 15, 2024

Hey mate, don't have any iOS devices to test with so I've not encountered that issue, is it all attachments or just audio? There might be a permission you need to enable for Chrome or Safari for it to play.. Not sure, it's been a while since I've seen one.

from attachment_preview.

bcolflesh avatar bcolflesh commented on June 15, 2024

No worries, it's because iOS decided programmatic audio sources are a security risk I guess - I found that OSTicket has some optional core plugins and one of them will place attachments in the filesystem instead of the database and I'm guessing that will allow iOS to play them. I'll post back here with results on the weekend or Monday my time.

from attachment_preview.

clonemeagain avatar clonemeagain commented on June 15, 2024

Hmm, that's not what that means, the front-end is the same. It just means the files aren't stored in the DB or S3 etc. Still uses the same file.php adapter.

from attachment_preview.

bcolflesh avatar bcolflesh commented on June 15, 2024

Late update, you are correct, the file system plugin does not change the way the file is served (via the file.php script). So the answer is a rewrite to a temp file I guess? Or figuring out what exactly iOS errors out on via the current method...

from attachment_preview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.