Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set controls to false on img-tag branch #13

Open
Zaithe opened this issue Aug 26, 2015 · 0 comments
Open

Cannot set controls to false on img-tag branch #13

Zaithe opened this issue Aug 26, 2015 · 0 comments

Comments

@Zaithe
Copy link

Zaithe commented Aug 26, 2015

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant