Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Fix EZP-26486: In Firefox, media view doesn't update the video #706

Merged
merged 1 commit into from Oct 26, 2016

Conversation

yannickroger
Copy link
Contributor

@yannickroger yannickroger commented Oct 24, 2016

Link: https://jira.ez.no/browse/EZP-26486

Description

Firefox doesn't update the video if the link doesn't change. So we are adding the id of the video in order to force the refresh.

Example of generated URL: http://ezp.local/content/download/84/322?id=video/aa5ef523f7825634e10dbacb065c1507.webm

Tests

Manual and unit tests

@yannickroger yannickroger changed the title [ WIP ] Fix EZP-26486: In Firefox, media view doesn't update the video [WIP] Fix EZP-26486: In Firefox, media view doesn't update the video Oct 24, 2016
return "";
}

return this.get('field').fieldValue.uri + "?t=" + Date.now();
Copy link
Contributor

Choose a reason for hiding this comment

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

no version number we can add in url instead of always refreshing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The version number is not available in this view. But looking for it I found an id that does the trick 😄

Following @dpobel 's advice I modified the URL in the template only.

@yannickroger yannickroger force-pushed the ezp-26486-video_browser_cache_15 branch from dc94533 to 098f96b Compare October 25, 2016 12:14
@yannickroger yannickroger changed the title [WIP] Fix EZP-26486: In Firefox, media view doesn't update the video Fix EZP-26486: In Firefox, media view doesn't update the video Oct 25, 2016
@yannickroger
Copy link
Contributor Author

Ready for review @dpobel @StephaneDiot @andrerom

@miguelcleverti
Copy link

PR approved by QA

@yannickroger yannickroger merged commit 67b96ad into 1.5 Oct 26, 2016
@yannickroger yannickroger deleted the ezp-26486-video_browser_cache_15 branch October 26, 2016 09:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
5 participants