I have to make a photo album for my mobile app.I am getting the images for photo album from local database using ajax call.I have used many of 'jquery mobile' plugin for it.but any one is not working.
so any one have good example and solution for it, please suggest me.
Thank's
What is the real advantage of using Ajax in a mobile photo-album?
Anyway I found some photogalleries (one or 2 not based on jquery-mobile):
http://tympanus.net/codrops/2010/05/27/awesome-mobile-image-gallery-web-app/
http://neteye.github.com/touch-gallery.html
http://www.photoswipe.com/
http://www.digicrafts.com.hk/components/JSMobilePhotoAlbum
Alternatively you can:
1. create the albums as list items.
2. in album view show thumbnails of photos
3. Click on thumbnail = show photo in fullscreen with a back button.
Good luck :)
Related
How to get videos from gallery using BSImagePickerViewController. I am already using it for selecting and fetching multiple images from gallery. But can it be used for videos also. No help found from google so far, already spend a day. Please guide.
Just looked around and found this
https://github.com/mikaoj/BSImagePicker/issues/65
Seem like BSImagePicker does not support Video for now. You can use other library to pick both videos and pictures:
https://github.com/guillermomuntaner/GMImagePicker
https://github.com/zhangao0086/DKImagePickerController
I didn't use it before, but hope it can help you.
I am developing ios app in appcelerator studios .In that app i need to show thumbnails of remote service videos . I am getting videos data through JSON object. I am getting thumbnails for only one video rest of them also i am getting but those are append to first video of the JSON object.
can any one help me how to show thumbnails for remote located videos ?
Thanks in advance.
I'm not sure if I fully get your question, but from your title I take that you want to generate thumbnails for remove videos?
For this you can use the following API:
http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Media.VideoPlayer-method-requestThumbnailImagesAtTimes
This does mean that you have to load in every single video (the view itself does not need to be visible to the user) which is quite heavy. So if at all possible it is better to get them from wherever you get the videos from, or use some middleware to generate and cache them there.
I am using UIImageWriteToSavedPhotosAlbum() method to save images in photo library.I am calling webservices to get images and saving it in photo library but It is creating copy of images because webservice is calling no. of time.
How can I replace existing images from Photo Library?
Thanks
No you can not, since this will allow you to update user images with their consent.
Apple is very restrictive about these kind of things, just image you are overwriting all the images by adding some banner. There is noway the user can undo this.
I am using AGImagePickerController for selecting the multiple images at a time and get their information. It is working fine. But I also want that when I click on any album, I get that album images data without going to its detail page.
In
self.assetsGroups..:(
"ALAssetsGroup - Name:Saved Photos, Type:Saved Photos, Assets count:2"
)
I am getting Album info but don't know how to get its images without open album detail page. If anyone know how to get it please help me out.
Thanks in advance.
I want to create an app in Ruby on Rails that when a user pastes the link of a video, the thumbnail is embedded, and when the user clicks the thumbnail, the video is embedded with ajax. How should I start developing this functionality? I plan on using Embedly. My first question is how do I use it? I've read the documentation, but there are a bunch of different tutorials and I'm not sure which one to use. And specifically how do I get the thumbnail and the video? Also, should I have a separate model for both the thumbnail and the video? Or should the thumbnail be a field in the video table? What should I be storing in my database?
I would really, really appreciate any help.
Embed.ly API gives you a pretty wide range of options. Thumbnail is also included in the return hash. All you need to do is capture the url your users paste, plug it into this API url, and parse the returned hash for the thumbnail image.
You can then easily use the jQuery plugin to generate the embed link when the user clicks on the thumbnail.
$.embedly('http://www.youtube.com/watch?v=LfamTmY5REw',
{maxWidth: 600,
elems: $('#element'),
success: function(oembed, dict){
alert(oembed.title);
});
Note that in this function elems property is where you want your video to be embedded. oembed parameter contains the hash, which includes the thumbnail image link. So you can do everything in this one call. Embed the video as soon as the user pastes the link, and simply hide the embedded video until the user interacts with the thumbnail image.
You should probably save the thumbnail url as a field of the same model as everything else.