Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Old request continues to download #174

@ronag

Description

@ronag

I don't think old requests are properly cleaned up when changing sources, i.e. I can see in the Chrome Dev Tools that they continue downloading...

In _updateSource, instead of just doing:

// Remove the old media
_remove(plyr.media);

I think the following is required:

plyr.media.pause();
plyr.media.src = '';
plyr.media.load();
// Remove the old media
_remove(plyr.media);

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