Skip to content

How to programatically change the defaults permanently #43

@nargalzius

Description

@nargalzius

I set a default video upon initializing the player via the documentation in the site with no issues, however upon destroying the player and reinitializing, it seems to be loading the default video from the tubeplayer.js (i.e. the sample rap video, and its dimensions) instead of my most recent declared "settings."

I tried re-declaring the defaults = {...} in the hope of replacing the original, but that doesn't work. As of now, I have to copy the entire unminified js and hardcode the changes there - something I'd like to avoid.

What I want is to be able to permanently change a default video (and it's settings) that would be persistent even if the player is destroyed and reinitialised via tubeplayer('destroy') and tubeplayer() respectively.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions