Safari 11.1.2 won't able to play the video django app

736 views Asked by At

I have an application in django. I have uploaded a video which is playing perfectly fine in all the browser except for safari.

Configuration for media files in settings.py is as

MEDIA_ROOT = os.path.join(BASE_DIR,'media_root')
MEDIA_URL = '/media_root/'

Url which i am testing is http://admin.newsyoucantuse.in/media_root/blog/videos/sample_video_sample_video_SampleVideo_1080x720_2mb.mp4

I have gone through a lot of solutions but didn't understand what exactly is the issue,

1

There are 1 answers

0
daemon On

I resolved the issue by changing the environment to production in app_name/settings.py file.

Now it is working.