Skip to content
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

Ensure mobile video poster is displayed on Android #994

Merged
merged 1 commit into from Sep 26, 2018

Conversation

tf
Copy link
Member

@tf tf commented Sep 18, 2018

Before the poster was only displayed if the native_video_player
feature was present. This is only the case on iPhone.

Now we show the poster on all phone platforms, but hide it while
videos are playing if the native_video_player feature is not
present. Otherwise the video being played inline would not be visible.

REDMINE-15810

Before the poster was only displayed if the `native_video_player`
feature was present. This is only the case on iPhone.

Now we show the poster on all phone platforms, but hide it while
videos are playing if the `native_video_player` feature is not
present. Otherwise the video being played inline would not be visible.
@tf tf added the bug label Sep 18, 2018
}

// But not while playing inline (e.g. on Android)
&.has_no_native_video_player .videoPage.should_play .background_image {

Choose a reason for hiding this comment

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

Selector videoPage should match regex /^[-a-z0-9_]+$/


.has_phone_platform {
// Show mobile poster only on phone platform
.videoPage .background_image {

Choose a reason for hiding this comment

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

Selector videoPage should match regex /^[-a-z0-9_]+$/

@@ -0,0 +1,15 @@
.videoPage .background_image {

Choose a reason for hiding this comment

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

Selector videoPage should match regex /^[-a-z0-9_]+$/

@coveralls
Copy link

Coverage Status

Coverage remained the same at 99.156% when pulling dd424c6 on tf:mobile-poster-android into 8b0e8da on codevise:master.

@tf tf added this to the v12.3 milestone Sep 18, 2018
@tf tf merged commit 07f4bfe into codevise:master Sep 26, 2018
@tf tf deleted the mobile-poster-android branch September 26, 2018 13:18
tf added a commit to tf/pageflow that referenced this pull request Sep 26, 2018
Backport of codevise#994

Before the poster was only displayed if the `native_video_player`
feature was present. This is only the case on iPhone.

Now we show the poster on all phone platforms, but hide it while
videos are playing if the `native_video_player` feature is not
present. Otherwise the video being played inline would not be visible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants