-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 [Story Preview] Enable amp-video to play in preview mode (#38149)
* Enable amp-video to play in preview mode * First draft of video re-registration * Add reregistration logic * Add storyIsBeingPreviewed_() method to amp-story-page * Refactor and comment reregister logic in amp-story-page.js * Add missing comments/descriptions * Lint * Remove unnecessary indentation * Move the reregistration-specific logic in registration() to its correct location * Update incomplete method description * Ensure that an ID is used instead of 'undefined' * Lint * Allow for custom sources when resetting media pool elements * Lint * Update Sources.removeFrom() to use video sources instead of amp-video sources * Toggle the video error message off before attempting to replay the video * Rename reregisterUnplayedVideos_() to the more accurate reregisterAndPlayUnplayedVideos_()
- Loading branch information
1 parent
0d845fd
commit 3fe2ae4
Showing
3 changed files
with
172 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters