Comments (6)
I have installed django-embed-video in my Django 1.7 project and use SoundCloud and YouTube embedding and it works. Except the case that my site is HTTPS and video is HTTP so Chrome blocks it.
from django-embed-video.
Thank you for report. To HTTPS issue - embed videos should support SSL as well. Do you use {% video %}
tag and do you have django.core.context_processors.request
in TEMPLATE_CONTEXT_PROCESSORS
?
from django-embed-video.
@yetty Yes. I have django.core.context_processors.request
in TEMPLATE_CONTEXT_PROCESSORS
and use {% video %}
tag.
from django-embed-video.
To fix this I wrote js function that rewrites embed URL from http://youtube... to https://youtube... and then it works
from django-embed-video.
@yetty maybe on django settings with HTTPS enabled (like SECURE_PROXY_SSL_HEADER
) prefer https
URLs over http
urls? Or add something like EMBED_VIDEO_SSL = True
from django-embed-video.
- 2014 v 1:12, Olexandr Shalakhin:
I read you commented on the issue with Django embed video where on https site I have http YouTube links. Maybe you meant that if people copy/paste https links django-embed-video stores them as “https”. It would be great if all added links could be added as https youtube.
Saved url doesn’t have any effect on final url. It is used just for parsing video code.
To use or not to use HTTPS is decided on request.is_secure
. Take look at get_backend
function in VideoNode
[1]. HTTPS can be forced by passing extra params to template tag [2] - just in development version, not in pypi package yet. If any of these options doesn’t work for you, please give more information to reproduce your problem.
[1] https://github.com/yetty/django-embed-video/blob/master/embed_video/templatetags/embed_video_tags.py#L124
[2] http://django-embed-video.readthedocs.org/en/latest/examples.html#template-examples
from django-embed-video.
Related Issues (20)
- django.db.utils.OperationalError: no such table: posts_post HOT 1
- video unavailable HOT 6
- Emails to @mgrdcm not deliverable HOT 6
- GraphQL Youtube SSL problem: Max retries exceeded with url ... caused by NewConnectionError
- No thumbnails with Vimeo Backend HOT 1
- Suddenly stopped working on AWS. HOT 9
- django-embed-video attaches "_RvGGQVH" to video HOT 4
- Issues with testing on Pypy3 HOT 2
- Template and URL name
- Showing error HOT 4
- Polish translation HOT 3
- Adjust project settings to allow merging PRs HOT 2
- Add (Youtube) playlist support HOT 1
- django-embed-video==1.2 is rendering the iframe as HTTP rather than HTTPS. HOT 6
- example_project outdated HOT 2
- Option to disable request HOT 1
- adding classes HOT 1
- XSS possible in YoutubeBackend with user-provided URL HOT 2
- wrong path on installation.rst HOT 3
- Add Odysee support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-embed-video.