Giter VIP home page Giter VIP logo

frame-player's People

Contributors

hellopath avatar vagnervjs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

frame-player's Issues

Cannot set controls to false on img-tag branch

When setting controls to false in the options for the img-tag branch when initiating the player i get the following errors:

Uncaught TypeError: Cannot read property 'appendChild' of nullFramePlayer.getFrames
 @ frameplayer.js:275 FramePlayer.play 
@ frameplayer.js:134(anonymous function) 
@ (index):34

my code is:

<div id="player1" data-vidsrc="videos/video01/"></div>

    <script src="src/js/frameplayer.js"></script>
    <script>
        var options1 = ({
            'frames': 3000,
            'rate': 30,
            'controls': false,
            'autoplay': true,
            'width': '400px',
            'height': '260px',
            // 'radius': '50%'
        });

        var player1 = new FramePlayer();
        player1.load('player1', options1);
        player1.play();
    </script>

Length property

How can I fix this error?

frameplayer.js:63 Uncaught TypeError: Cannot read property 'length' of undefined
at FramePlayer.render (frameplayer.js:63)
at frameplayer.js:192
at XMLHttpRequest._HTTP.onload (frameplayer.js:276)

I have my own JSON file and it contains this

{"v":"4.7.0","fr":25,"ip":0,"op":176,"w":1080,"h":900,"nm":"C_8","ddd":0,"assets":[{"id":"image_0","w":1242,"h":2208,"u":"images/","p":"Gruppe_25.png"},{"id":"image_1","w":1242,"h":2208,"u":"images/","p":"welcome.png"},{"id":"image_2","w":1242,"h":2208,"u":"images/","p":"Gruppe_29.png"},{"id":"image_3","w":1242,"h":2208,"u":"images/","p":"Gruppe_46.png"},{"id":"comp_66","layers":[{"ddd":0,"ind":1,"ty":2,"nm":"Gruppe 25.png","cl":"png","refId":"image_0","ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[540,960,0]},"a":{"a":0,"k":[621,1104,0]},"s":{"a":0,"k":[87.118,87.118,100]}},"ao":0,"ip":0,"op":381,"st":0,"bm":0,"sr":1},{"ddd":0,"ind":2,"ty":2,"nm":"welcome.png","cl":"png","refId":"image_1","ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[387,397,0]},"a":{"a":0,"k":[421,462,0]},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"n":["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],"t":58,"s":[0,0,100],"e":[102.118,102.118,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"n":["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],"t":65,"s":[102.118,102.118,100],"e":[87.118,87.118,100]},{"t":70}]}},"ao":0,"ip":0,"op":381,"st":0,"bm":0,"sr":1},{"ddd":0,"ind":3,"ty":2,"nm":"imow","refId":"image_2","ks":{"o":{"a":0,"k":100},"r":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"n":["0p833_0p833_0p167_0p167"],"t":0,"s":[298.08],"e":[358.56]},{"t":52}]},"p":{"a":0,"k":[540,912,0]},"a":{"a":0,"k":[621,1052,0]},"s":{"a":0,"k":[87.118,87.118,100]}},"ao":0,"ip":0,"op":381,"st":0,"bm":0,"sr":1},{"ddd":0,"ind":4,"ty":2,"nm":"Gruppe 46.png","cl":"png","refId":"image_3","ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[540,960,0]},"a":{"a":0,"k":[621,1104,0]},"s":{"a":0,"k":[87.118,87.118,100]}},"ao":0,"ip":0,"op":381,"st":0,"bm":0,"sr":1},{"ddd":0,"ind":5,"ty":1,"nm":"Dark Gray Solid 1","ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[540,960,0]},"a":{"a":0,"k":[540,960,0]},"s":{"a":0,"k":[100,100,100]}},"ao":0,"sw":1080,"sh":1920,"sc":"#333333","ip":0,"op":381,"st":0,"bm":0,"sr":1}]}],"layers":[{"ddd":0,"ind":1,"ty":0,"nm":"Challenge 8","refId":"comp_66","ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[540,770,0]},"a":{"a":0,"k":[540,960,0]},"s":{"a":0,"k":[100,100,100]}},"ao":0,"w":1080,"h":1920,"ip":0,"op":381,"st":0,"bm":0,"sr":1}]}

please do not use base64

In my opinion it makes no sense to create a huge JSON file, a mess of base64 encoded image files.

The approach from JSMovie is much faster and better
See also #3

The images can be also loaded parallely

Add bower package

What about making it installable with bower? This project is very interesting and for sure people are going to use it a lot soon :)

Converter will not convert

For the life of me I cannot convert any images to json using:

node app.js frameStart frameEnd img/ video04.json

When I open the video04.json file it show only:

{"frames":[]}

Installed mime via NPM, aside from that nothing else works. Thanks!

end of video callback function

Hi,

Your plugin is very cool !

Is there a callback function called when a the video is finished playing ?

Thank you for your help

json file to video

Im having trouble converting a json file to where when you click on it its just a video. Can you help me?

llll

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.