-
Notifications
You must be signed in to change notification settings - Fork 384
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
Preserve seek time and other parameters to amp-youtube
from YouTube embeds
#6423
Merged
+495
−85
Merged
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
2b00609
Transfer seek time to AMP youtube component from youtube url
dhaval-parekh d5f56f7
Add php unit test cases
dhaval-parekh 080ded2
Convert youtube iframe into amp-youtube
dhaval-parekh a4e3290
Add additional data params for amp-youtube components
dhaval-parekh 2e47705
Add unit test case for youtube embeds
dhaval-parekh 55fff1f
Fix the issues from unit test cases
dhaval-parekh e5fba98
Fix the issues from unit test cases
dhaval-parekh 92ab4be
Use type casting instead of intval()
dhaval-parekh e9ad832
Add inline comments, remove unwanted code
dhaval-parekh a5d73e0
Update data-param for amp-youtube
dhaval-parekh eceb487
Update XPath query to fetch youtube iframe
dhaval-parekh 8804f83
Fix php unit test cases
dhaval-parekh 220af89
Apply suggestions from PR
dhaval-parekh cae32c0
Update amp youtibe embed handler
dhaval-parekh 12a722c
update unit test cases
dhaval-parekh 520be01
Update and fix unit test cases
dhaval-parekh 8e484f0
Remove redundant code
dhaval-parekh 6808668
Add support of live channel when added as raw iframe
dhaval-parekh f60fd46
Fix unit test cases
dhaval-parekh c35ecd9
Add unit test cases for live streaming channel
dhaval-parekh 547f237
Update prepare_attribute()
dhaval-parekh 32e9b2d
Update regex for to find seek time from URL
dhaval-parekh 2d1785a
Add additional unit test cases for video seek time
dhaval-parekh 3ecad1e
Sanitize attribute name
dhaval-parekh 74dfcb8
update unit test cases
dhaval-parekh 7f21703
Revert phpstan ignores
westonruter 2c3ed4d
Try adding phpstan version to composer cache key
westonruter d519220
Revert "Revert phpstan ignores"
westonruter 0524ae5
Print phpstan version when running on GHA
westonruter b9827d7
Try removing phpstan before composer install
westonruter fa6ee15
Fix yml syntax error
westonruter f93b9a1
Try downloading a specific version of phpstan instead of latest
westonruter 9d51ef4
Try installing phpstan via shivammathur/setup-php
westonruter 9d8e977
Fix issues identified by phpstan
westonruter 8200f3f
Give more explicit array phpdoc type
westonruter edbcc6f
Remove unreachable code
westonruter 32f358a
Opt to pass-through iframe for unrecognized YouTube URL rather than c…
westonruter 1907df3
Remove condition which cannot be reached since video ID is always pro…
westonruter aac0e40
Use coversDefaultClass
westonruter d983fa4
Prevent generating closing IMG tags
westonruter 9eefef9
Let placeholder link point to YouTube permalink and not iframe src
westonruter 46bc356
Fix adding start to placeholder link; improve coverage
westonruter da36d2d
Make placeholder dependency on video ID more explicit
westonruter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix php unit test cases
commit 8804f83b838cbe3c71eeeed0e4d811eb489317b2
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
An
is_array()
check is sufficient, no?