Has anyone been able to play GIFs efficiently on OSX using NSImageView?
FLAnimatedImageView (https://github.com/Flipboard/FLAnimatedImage) is great for iOS but there does not seem to be an equivalent for OSX.
I've resorted to rendering GIFs in a webview because it provides better performance than NSImageView with isAnimated=YES, especially when displaying multiple GIFs.
Related
Is there any way to run videos on Apple watch using Watchkit within my app? I tried finding any video player, but there was nothing. Thanks!
No - there's currently no way to run video on Apple Watch using Watchkit.
Depending on your desired outcome, you may be interested in the Animation capabilities of WatchKit. By adding a series of images into your Watch App bundle, WatchKit allows you to cycle through them at up to 120 fps or slower when fetching images from iPhone.
You could accomplish some pretty amazing results by animating images, although bare in mind image resources need to be kept to a minimum.
I suggest this tutorial on WatchKit Animation
and this Swift framework for rendering UIViews as image sequences in WatchKit.
does anybody know any library or tools to show a animated gif which comes from a changing URL on IOS7 devices?
I'm searching for a better performance solution than UIWebView.
Maybe some code which explodes the frames into separate images.
There are several open source projects for displaying GIFs in iOS.
Check these out:
UIImage from animated GIF
GIF UIImageView Loader
GIF iOS
Animated GIF iPhone
Flipboard FLAnimatedImage
Also, there are questions on SO with a similar problem. Check them out here and here.
Building a small iPhone app in XCode and I'm trying to implement a couple images inside a UIWebView. I know the JS library Retina.js works flawlessly in most browsers but I'm not sure how it would handle in a Web View?
It's possible to just use the CSS3 media queries to handle this instead, but that's a lot of extra code. Would love to hear if anybody has experience with this.
I have an app and it has a static uimage as the background. To dress up the app, I have a video that would be great as the background but I cannot find any examples of how to play a video as a background view. I have looked at MPMoviePlayerController but I am not sure if it would do what I am expecting.
Anyone have any ideas, or an example of a video as a background to an app?
Thanks
I guess you could just use the MPMoviePlayerController, if you don't do it fullscreen (which is not possible on the iPhone, but it is so on the iPad).
Then you can just put buttons, labels whatever you want on top of that.
Should work fine :)
I'm using MPMoviePlayerController to play different videos.
However, when I change the video using setContentURL (I'm just targeting OS 3.2 and above), I notice a white flicker.
Is there anyway I can get rid of that flicker and make the transition between videos look smooth?
Thanks,
Tee
Unfortunately not, and I've had this problem too. You could use another instance of the controller, and use an animation to transition from one video to the other, to have a bit more control over the process.