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

When I keep playing multiple videos, it'll be a black screen. #222

Closed
an1101 opened this issue Mar 15, 2018 · 1 comment
Closed

When I keep playing multiple videos, it'll be a black screen. #222

an1101 opened this issue Mar 15, 2018 · 1 comment

Comments

@an1101
Copy link

an1101 commented Mar 15, 2018

Expected Behavior

I would like to keep playing multiple videos in turn.
For example, when A is ended, B starts to play. When B is ended, C starts to play. When C is ended, A starts to play.

Actual Behavior

Now, multiple videos keep playing in turn. But when time has passed for a while, a screen becomes black. Control bar is moving like "now playing", or it's indicated "I'm sorry. .."
If an error occurs, I'd like to play or reload. Any advice, please.

Steps to Reproduce

-HTML-

<div id="player_1" width="100%"></div>
<div id="player_2" width="100%"></div>

-js-

$(function() {
var options = {
        id: AAAAAAAA,
        autoplay: true,  
        autopause: true
    };
    var options2 = {
         id: BBBBBBBB,
        autopause: true
    };

    var player01 = new Vimeo.Player($('#player_1'), options);
    var player02 = new Vimeo.Player($('#player_2'), options2);

    player01.setVolume(0); 
    player01.play();

    player01.on('ended', function(data) {
        player01.setCurrentTime(0);
        player02.setVolume(0);
        player02.play();
    });

    player02.on('ended', function(data) {
        player02.setCurrentTime(0);
        player01.setVolume(0);
        player01.play();       
    });
});
@luwes
Copy link
Contributor

luwes commented Mar 17, 2018

Duplicate of #166

@luwes luwes marked this as a duplicate of #166 Mar 17, 2018
@luwes luwes closed this as completed Mar 17, 2018
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

2 participants