GithubHelp home page GithubHelp logo

Serve images? about swifter HOT 9 CLOSED

httpswift avatar httpswift commented on May 7, 2024
Serve images?

from swifter.

Comments (9)

damian-kolakowski avatar damian-kolakowski commented on May 7, 2024

Yep :) Thanks for noticing this.

from swifter.

damian-kolakowski avatar damian-kolakowski commented on May 7, 2024

It's ready (1102e0c). Please visit: http://127.0.0.1:8080/resources/logo.png to test.

from swifter.

 avatar commented on May 7, 2024

It works! I don't seem to get it to work with video though, an MP4 doesn't work. Which doesn't make any sense since it shouldn't be any different from an image. Throws 404. Have tried with smaller videos than images.

from swifter.

damian-kolakowski avatar damian-kolakowski commented on May 7, 2024

Sometimes we need to help browsers to give correct Content-Type etc.

from swifter.

damian-kolakowski avatar damian-kolakowski commented on May 7, 2024

Another test is to prepare a webpage with:

<html>
<body>
<video width="320" height="240" controls>
  <source src="resources/file_name.mp4" type="video/mp4">
</video>
</body>
</html>

from swifter.

 avatar commented on May 7, 2024

Manage to get it working! Had forgotten about target membership...

from swifter.

damian-kolakowski avatar damian-kolakowski commented on May 7, 2024

So the file was not copied to target's resources ?

from swifter.

 avatar commented on May 7, 2024

Exactly, it still doesn't play in html5 the web view of the device. I think the header is wrong.

from swifter.

 avatar commented on May 7, 2024

The reason that video doesn't play on iOS mobile safari is probably the byterange requirement, i think. I don't know how ti implement that though.

http://stackoverflow.com/questions/3128906/mp4-plays-when-accessed-directly-but-not-when-read-through-php-on-ios
http://mobiforge.com/design-development/content-delivery-mobile-devices

from swifter.

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.