Can you prevent loading profile from cookies?
Closed this issue · 3 comments
Hey there
Is there a way to prevent the player from loading the last used profile from the user's cookies? I would like to force the player to always load the default profile.
Thanks!
Theo
In theory, adding a URL param "&profile=" would have worked per [1], but there is an onresize() race-condition during load that overrides the URL param with the cookie value [2].
[1] https://github.com/polimediaupv/paella/blob/6.4.4/src/04_video_container.js#L1415-L1419
[2] https://github.com/polimediaupv/paella/blob/6.4.4/src/09_paella_player.js#L256-L269
Ok, thanks for the quick answer! I'll try and look for another solution then.
FYI, my solution for the problem: I simply reset the cookie before loading the player. The cookie is called 'lastProfile', so e.g. in PHP: setcookie('lastProfile', null, -1);