-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Persist speed preferences between videos. #2230
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,8 +15,6 @@ function() { | |
| * @param {string} namespace Namespace that is used to store data. | ||
| * @return {object} CookieStorage API. | ||
| */ | ||
|
|
||
|
|
||
| var CookieStorage = function (namespace) { | ||
| var Storage; | ||
|
|
||
|
|
@@ -73,7 +71,7 @@ function() { | |
| }); | ||
|
|
||
| $.cookie(namespace, JSON.stringify(Storage), { | ||
| expires: -1, | ||
| expires: 3650, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why 3650?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This value is used in video player. It means that, cookie will be stored
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 10 years?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, looks so :) |
||
| path: '/' | ||
| }); | ||
| }; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@polesye What influenced the change from 200 to 400?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New initial property
speedthat has value1.5by default. See video.html#L10