Skip to content

Cannot play videos in a playlist with non-youtube videos #47

@degrov

Description

@degrov

Seems the plugin code overrides "mediaelement" functions without reverting back to original functions on video complete. This causes problem when trying to play the next non-youtube video by changing videogular source.

    API.mediaElement[0].__defineGetter__("duration", function () {
        return ytplayer.getDuration();
    });

    API.mediaElement[0].__defineGetter__("currentTime", function () {
        return ytplayer.getCurrentTime();
    });

    API.mediaElement[0].__defineSetter__("currentTime", function (seconds) {
        return ytplayer.seekTo(seconds, true);
    });
...
    API.mediaElement[0].play = function () {
        ytplayer.playVideo();
    };
    API.mediaElement[0].pause = function () {
        ytplayer.pauseVideo();
    };
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions