Reputation: 566
Here is my HTML5 Video code:
<video id="video-1" width="600" preload="auto" controls >
<source src='https://tuneables.s3.amazonaws.com/somevideo.mp4' type='video/mp4' />
<source src='https://tuneables.s3.amazonaws.com/somevideo.ogg' type='video/ogg' />
</video>
I have set "src" of other server which has "https://".
This video is running in Chrome but not in FireFox.
Although When I upload this video on my server and set src="http://example.com/somevideo.mp4"
, now the video is running fine in firefox.
What is the actual problem there..?
Is this problem due to "http://" or "https://".?
Thanks In Advance.
Upvotes: 2
Views: 8997
Reputation: 1612
If you're testing on Firefox for Mac OS you need to include a .webm format aswell:
<source src='https://tuneables.s3.amazonaws.com/somevideo.webm' type='video/webm' />
As when I tested on Mac OS in a Firefox browser it didn't run either, but when I included a webm video format it did run and solved all my problems
Upvotes: 0
Reputation: 4402
Why do you have the dot at "video/.mp4"? And not in video/ogg?
Those video types are compatible and should work fine.
Upvotes: 2