Skip to content

Store Video progress in client side cookie - #4512

Merged
mehalshah merged 6 commits into
stagingfrom
video_progress
Oct 13, 2015
Merged

Store Video progress in client side cookie#4512
mehalshah merged 6 commits into
stagingfrom
video_progress

Conversation

@mehalshah

Copy link
Copy Markdown
Contributor

No description provided.

@philbogle

Copy link
Copy Markdown
Contributor

Looking (will finish on the bus)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can go away.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

@philbogle

Copy link
Copy Markdown
Contributor

LGTM after comments are addressed. The only one of substance concerns when we consider the video seen. I believe its closest to current behavior to consider the video seen as soon as it starts playing, even if the user doesn't click the X.

(Note in the subsequent change that when you migrate cookie state you'll need to merge the client and server state on the client.)

mehalshah added a commit that referenced this pull request Oct 13, 2015
Store Video progress in client side cookie
@mehalshah
mehalshah merged commit 889fadb into staging Oct 13, 2015
@laurelfan

Copy link
Copy Markdown
Contributor

I think current behavior is to consider the video seen as soon as the page
containing the autoplay video is loaded (or more precisely, as soon as the
browser deals with the Set-Cookie in the http response for the page),
whether not the video or dialog itself has loaded.

In practice (other than some edge cases around the js on the page being
broken) this means that noautoplay=1 will work differently (this param is
only used by tests and not by real users). I have no opinion on which
behavior is better (and don't think it matters that much), but you may have
to fix some ui tests if you change it.

On Mon, Oct 12, 2015 at 6:12 PM, philbogle notifications@github.com wrote:

LGTM after comments are addressed. The only one of substance concerns when
we consider the video seen. I believe its closest to current behavior to
consider the video seen as soon as it starts playing, even if the user
doesn't click the X.

(Note in the subsequent change that when you migrate cookie state you'll
need to merge the client and server state on the client.)


Reply to this email directly or view it on GitHub
#4512 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants