mobile

Youtube iFrame API setPlaybackQuality ignored on mobile device

允我心安 提交于 2019-12-18 03:22:09
问题 I'm trying to setup YouTube iframe API to play a FullHD video with a lower quality. My goal is to save bandwidth on mobile devices and reduce loading time. My HTML structure is the classical player div, plus a debug div for messages. HTML <div id="debug"></div> <div id="your_video_id"> <div id="player"></div> </div> I've tried to invoke setPlaybackQuality as soon as the player is ready, to avoid mobile users wasting time in buffering (as suggested in this post). I've also invoked it in both

Cordova register file types to 'open with' list

梦想与她 提交于 2019-12-18 02:51:08
问题 I'd like to register my Ionic app (through Cordova) to open certain file types. Just like Dropbox does. When a user has a file on another application (like email), and he clicks 'open with', there's a list which contains the Dropbox app. Heres a tutorial from Apple: https://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/DocumentInteraction_TopicsForIOS/Articles/RegisteringtheFileTypesYourAppSupports.html Is there any Cordova plugin that support both Android and iOS

Cordova register file types to 'open with' list

烂漫一生 提交于 2019-12-18 02:50:57
问题 I'd like to register my Ionic app (through Cordova) to open certain file types. Just like Dropbox does. When a user has a file on another application (like email), and he clicks 'open with', there's a list which contains the Dropbox app. Heres a tutorial from Apple: https://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/DocumentInteraction_TopicsForIOS/Articles/RegisteringtheFileTypesYourAppSupports.html Is there any Cordova plugin that support both Android and iOS

“VIEW FULL SITE” mobile site option

£可爱£侵袭症+ 提交于 2019-12-18 01:31:22
问题 So I'm working on the mobile version of a site I'm doing, and so far, I'm pulling the mobile sites content from its main counterpart, the main site. As I study some mobile sites out there, I notice a lot of em have a "view full site" link. Now I plan on redirecting the mobile visitors via .js in the header tag on main site via a check for screen width etc...(not sure if its the best way but so far the easiest on my brain))(but suggestions also welcome) but something like this if (screen.width

navigator.geolocation getCurrentPosition not updating in Chrome Mobile

戏子无情 提交于 2019-12-18 01:13:29
问题 I have created a site (can be accessed at http://dev.gkr33.com) which is designed for a smartphone and attempts to use the navigator.geolocation api and grab your position via getCurrentPosition. This seems to work initially, however if you try to refresh the page it always brings back the last GPS position. I have added some debug information on the page which grabs the time of the getCurrentPosition return and after the initial positioning it always returns the same time (down to the

navigator.geolocation getCurrentPosition not updating in Chrome Mobile

淺唱寂寞╮ 提交于 2019-12-18 01:13:22
问题 I have created a site (can be accessed at http://dev.gkr33.com) which is designed for a smartphone and attempts to use the navigator.geolocation api and grab your position via getCurrentPosition. This seems to work initially, however if you try to refresh the page it always brings back the last GPS position. I have added some debug information on the page which grabs the time of the getCurrentPosition return and after the initial positioning it always returns the same time (down to the

How to implement swipe gestures for mobile devices?

a 夏天 提交于 2019-12-17 23:49:12
问题 I have an application made in AngularJS which has arrow key navigation to switch views. I want to implement this navigation using swipe for touch devices. I tried jGestures library but it doesn't go well with swipe. I have been recommended NOT to use jquery mobile. Is there any other way to implement swipe? EDIT: It does not detect swipe cleanly. I tested it on multiple devices, including iPad and it takes multiple swipes to do an action(routing in my case). 回答1: I made this function for my

Get screen resolution on a mobile website

大憨熊 提交于 2019-12-17 22:51:49
问题 I am designing a mobile website that has a section to download wallpapers from. In order to accommodate many users, I wish to make it possible to download a wallpaper based on the screen resolution. I want to detect resolution from JavaScript and show the appropriate wallpaper. This is what I found online and tried and failed xD: width = window.innerWidth || document.body.clientWidth height = window.innerHeight || document.body.clientHeight; For my SGS3, which has the resolution 720x1280 I

How do Adobe PhoneGap and Apache Cordova differ?

…衆ロ難τιáo~ 提交于 2019-12-17 22:38:53
问题 So far, I haven't been able to find a "plain English" explanation of the difference between Apache Cordova and PhoneGap, and when to use either of them. I'm looking to build an app with one of them, and I have the following constraints: It needs to be open source (preferably GPL, APL2, etc.) It needs to have a good dev community backing it (and preferably good docs) It needs to take the same javaScript and use it produce native binaries for Android, iOS, Windows Phone and Blackberry (write

Fixed Position Background on iOS

倾然丶 夕夏残阳落幕 提交于 2019-12-17 22:19:33
问题 I have a website that has a full-image fixed background that the content "floats" above. It works fine in desktop browsers, but the fixed background ends up scrolling on iPads and other tablets. This seems to be a common issue, but then I ran across this website, which seems to have a fixed background even on iPad's. http://confitdemo.wordpress.com/ Any clue how they are pulling that off? I tried: #content-wrapper.posts-page { background-attachment: fixed !important; background-clip: border