Coder Social home page Coder Social logo

Comments (8)

jimmywarting avatar jimmywarting commented on May 18, 2024

Do you have something like require.js or any other module loader include as well?

from streamsaver.js.

sethurv avatar sethurv commented on May 18, 2024

AngularJS files are loaded not require.js.

from streamsaver.js.

jimmywarting avatar jimmywarting commented on May 18, 2024

Most be doing something wrong. cuz this jsfiddle works just fine

<script src="https://cdn.rawgit.com/jimmywarting/StreamSaver.js/master/StreamSaver.js"></script>
<script src="https://cdn.rawgit.com/jimmywarting/browser-su/master/build/permissions.js"></script>
<script src="https://wzrd.in/standalone/[email protected]"
    integrity="sha384-8EYry4yokV53rGHMFtPqeVlAPgxn8yxr/RvxC4bZt3vlneaDPzWkSJCvBDBTuXAV"
    crossorigin>
</script>
<script>
    !streamSaver.supported && prompt(
        'ReadableStream is not supported, you can enable it in chrome, or wait until v52',
        'chrome://flags/#enable-experimental-web-platform-features'
    )
    alert(typeof streamSaver)
</script>

I got an alert with object

Do you get any 404 - not found when trying to load StreamSaver.js?

from streamsaver.js.

sethurv avatar sethurv commented on May 18, 2024

The error is not seen after referring StreamSaver.js as below

<script src="https://cdn.rawgit.com/jimmywarting/StreamSaver.js/master/StreamSaver.js"></script>

Thanks!

from streamsaver.js.

jimmywarting avatar jimmywarting commented on May 18, 2024

just a heads up
If you load it from rawgit then it means you will always use the latest from the master branch

You should maybe download StreamSaver.js to you local environment...

from streamsaver.js.

sethurv avatar sethurv commented on May 18, 2024

Ok Thanks! Will do that till a NPM module is available.

One quick question, How does permissions.js and web-streams-polyfill relates withStreamSaver.js? Do I need to save and refer the local copy?

from streamsaver.js.

jimmywarting avatar jimmywarting commented on May 18, 2024

permissions.js doesn't relate what so ever to streamsaver.js

I don't think you even need it.
I used it in the example to request permission for video and/or audio to show others that it can write to the disk while it's recording

permissions.js is called browser-su and it helps you to get/know permission for all kind of stuff

from streamsaver.js.

jimmywarting avatar jimmywarting commented on May 18, 2024

I have actually planed to release a NPM module #6 So it would be grate if you didn't took that away from me, since i'm also the one who is going to have to update it

from streamsaver.js.

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.