Mimic versatile behaviour of Apple's UIWebView with Sencha Touch - sencha-touch

Given a URL to a...
PDF, Apple's UIWebView component will display the PDF in the PDF
reader.
video, Apple's UIWebView component will display the video in
the video player.
music file, Apple's UIWebView component will play
the music in the video player.
What is the best way to mimic this functionality in Sencha Touch?
Many thanks
EDIT: Also, how do you display a website in a panel? I've tried using an embed and an iframe, but these aren't scrollable on the device.

I don't understand, this should work just like that? Are you thinking of rendering pdf/video/music inside Sencha Application?
If yes, check out Sencha examples for audio/video. For pdf you will need some new code. I would suggest using pdf.js inside Sencha panel, haven't tried it though.

This was answered in sencha touch :: how to create a panel for website-preview inside iFrame.
Anyway, if you want to get the same effect as a UIWebView in senchatouch, I recommend using PhoneGap as long as your intention is that your webapp is used only on mobile devices. PhoneGap Plugins available to use the native WebViews each mobile OS. The plugin, both for IOS to ChildrenBrowser called Android. Sorry about the other systems can not help more.

Without a lot of hacky code, you can't.

Related

Video.js for Vimeo

I use video.js for vimeo. Played on the desktop in a custom player with my styles, it's good, but on the tablets and mobiles played in a default browse player. Why? I want custom player in mobile too. Can you help me?
In a recent version video.js was updated to use the custom skin on touch devices, so you might try updating your version. But this will still only make a difference on tablets that don't go to fullscreen video. On iOS devices and most(?) android devices, whenever the video goes to fullscreen it uses the native controls, and there's nothing we can do in the browser to change that. Hopefully in the future the devices will adopt the requestFullscreen browser API so we can use custom controls in that context.

Capture image through Sencha Application 2.1 without using Phonegap

I want to capture a photo from my SenchaTouch 2.1 application and want to display on the view.
I don't want to use Phone Gap just want to access the camera through my Sencha Application. Kindly share some code that will suffice the above mentioned need Or some suggestions it will be really helpful.
Thanks
Have you looked at the Sencha Touch API docs, for the Ext.device.Camera class?
http://docs.sencha.com/touch/2-1/#!/api/Ext.device.Camera

Will Retina.js Work Properly in iPhone UIWebView?

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.

ipad image swiper like iTune's horizontal library

I need to make an ipad app which includes an image swiper but not a regular one. I need it to be like itunes library swiper when the device rotation is horizontal. is there any way to do it with objective c or should i do it with html and javascript?
thanks.
I have some experience in using iCarousel by Nick Lockwood. It is very easy to use with several build in effects and also not so hard to modify.
Do you mean coverflow?
You could use this library on CocoaControls called TapKu
There are also a few others here
You can check this HTML+JavaScript implementation http://idangero.us/sliders/swiper/plugins/3dflow.php

Objective-C iPhone - Playing youtube within an app

Is it possible to play youtube using the method described in this url
http://iphoneincubator.com/blog/audio-video/how-to-play-youtube-videos-within-an-application
but with a custom button? (i.e in the picture in the link, it's of a baseball game with the play button overlay on top, I want that to be a custom button that I create)
Thank you,
Tee
No, the way that you play YouTube videos is by opening it in the mobile site, which takes you to the embedded QuickTime/YouTube viewer. It doesn't play them in the view of your app like the QTView would on a Mac.