Shyam Sharma
Shyam Sharma

Reputation: 51

VideoJS: not working on ipad

While trying to embed html5 <video> tag in my salesforce web Page, I came across a wonderful library called "Videojs" (http://videojs.com/getting-started/). It served most of the purpose, however when I tried to play a video on Ipad, it failed. Then I came across this link (VideoJS: not working on IOS), which says to try to use videojs's default movie as there possibly could be encoding issue. When I did as per the suggestion, I came with a very interesting scenario. As When I fed the url(http://vjs.zencdn.net/v/oceans.mp4) directly as:

<source src="http://vjs.zencdn.net/v/oceans.mp4" type="video/mp4" />

it worked fine both in windows and in ios. But when I downloaded the same video and saved it to Salesforce CRM Content libraries and gave the src path as:

<source src="/sfc/servlet.shepherd/version/download/id" type="video/mp4" />

it worked in windows desktop browsers but not on ipad(version 9.2). I couldn't understand the issue.

Thanks for any help/ideas/suggestions.

Upvotes: 2

Views: 1649

Answers (1)

JohnPaul
JohnPaul

Reputation: 710

I am googling mostly encoding issue for mp4 file or hugesize file,so use handbreak (https://handbrake.fr/). solve the problem

Upvotes: 2

Related Questions