-
Notifications
You must be signed in to change notification settings - Fork 32
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
Feature/support twitter videos #85
base: master
Are you sure you want to change the base?
Feature/support twitter videos #85
Conversation
Hi, thanks for the PR! However, i'm not seeing a video-preview while my browser window exceeds 600px, removing:
makes it work on the example site. Could you fix this issues and maybe implement a test that tests your implementation? |
@StevenKowalzik The twitter tests are all failing locally for me, and AFAICS they fail for all other open PRs here as well. Maybe there is a general problem? I have almost no experience with javascript testing tools, so maybe someone else could have a look at that first? |
@djmaze You need Twitter credentials to run the tests: https://github.com/heiseonline/embetty-server#configuration Travis CI does not set secrets for builds triggered by pull requests to prevent exfiltration. This makes the Twitter tests fail for pull requests and succeed after they have been merged. |
@djmaze I thought about your proposed changes. The |
a415a7f
to
78587a9
Compare
78587a9
to
3bff9d4
Compare
Summary
This PR changes the handling of twitter posts with embedded videos. Instead of linking to a still image of the video, a HTML video element (with
preload="none"
for data privacy) is embedded into the post.(refs heiseonline/embetty-server#33)
Update: Firefox' "Tracking Protection" blocks the inline video. As a workaround, videos are now linked to instead of embedded in Firefox.
Motivation
The current twitter video handling is broken (see above).
Review
Embed a twitter post which includes a video.