video player in Grails - grails

I'm looking for a way to add a video player into my grails app.
I cannot find any other than flash i would prefer HTML
Is there a way i can embed a HTML5 video played into my app
any Ideas?

I would suggest using the HTML5 <video> tag. It's non-flash and will work in modern browsers. If you need to support older browsers, your only real option is via a plugin like Flash or Silverlight, unfortunately.

Related

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.
I am googling mostly encoding issue for mp4 file or hugesize file,so use handbreak (https://handbrake.fr/). solve the problem

Can i use Modernizr on my Phonegap ios app?

I'm just playing with an app i'm making, but i just wanted to know if it's ok to use Modernizr for my ios app using Phonegap. My reason being that i need to find a way to handle what resolution images to serve, and someone suggested Modernizr has a solution for this.
Sure, I think Modernizr would be some kind of "Oversized" (1.), but as plain JavaScript library you can deliver it in your www-folder.
If you simply want to load different images for different screensizes you may also use css-mediaqueries.
Oversized, because you can be sure, you have a modern (webkit based) browser.
You have a geolocation API and you won't need IE polifils.

Playing Youtubes with HTML 5 on iOS

I am trying load a YouTube video into a HTML 5 tag.
The problem I am having is I do not know what the “src” property should be. Using the URL for a video on YouTube does not seem to work, that URL seems to retrieve an entire page rather than just a video file.
I have been able to copy and paste YouTube’s own tag (by viewing the page source), that they use on their pages, but this is not a very efficient or long term solution. Is there a better solution?
I have tried to use YouTube’s API, but no matter what I do, it seems always to pull in the flash player version of the player (which of course won’t work for iOS.) Am I missing something obvious here?
This blog post might help: http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html
The suggestion is to use this code:
<iframe class="youtube-player" type="text/html" width="640" height="385"
src="http://www.youtube.com/embed/VIDEO_ID" frameborder="0">
</iframe>
The iframe will autodetect HTML5 capabilities and use them; if not, it uses Flash as fallback.

Adding Video in MVc

I am new to MVC I want to know how to add Video in MVC 2.0 using Html5. when I try to add video in Mvc like this
Video src="http://stelllent/Videos/Mvc"
It display error Video tag is not defined.
The first prerequisite is to have a browser which supports the <video> tag (IE 9.0+, FireFox 3.5+, Safari 3.0+, Chrome 3.0+, Opera 10.5+, iPhone 1.0+, Android 2.0+, ...). Then you could use it like this:
<video src="/videos/movie.avi" controls="controls">
Your browser does not support the video tag
</video>
Or if you have a controller action which is streaming the video you could also point the src attribute to it.

Converting PDFs to be viewed in any browser

I currently use a PDF-to-Flash to allow for users to flip thru pages of uploaded PDFs. However, with so many using iPhones/iPads I would like to switch this to a solution which works with any browser.
The site is developed in Ruby on Rails and I have looked into using pdf-toolkit and rmagick to convert the PDFs to images but it's not enough since I want the pages to scale with the browser window - SVG is not an option since I need for it to work w/ IE6 ;)
Any ideas?
Thx,
G
Why don't you use http://docs.google.com/viewer ?
http://googlesystem.blogspot.com/2009/09/embeddable-google-document-viewer.html
It's really simple, and it isn't Flash (can serve iPhone users too :D). Just add this to the view:
<iframe src="http://docs.google.com/viewer?url=#{YOUR_PDF_URL}&embedded=true"
style="width:600px; height:500px;" frameborder="0"></iframe>
Another option is a digital publishing platform like the one from Zmags. It converts a PDF to Flash, but when viewed on mobile devices it transforms into a swipeable version. Loads fast too.

Resources