I'm developing a site for mobile devices (such as iPhones and Androids). And I would like to have a scenario when user clicks a button and hears a sound from audio-file (.wav for example). Is it possible to achive it somehow?
Thank you for your help!
You should be able to just add in a link or embed the file into the html for your site. Here is some info on it:
http://www.boutell.com/newfaq/creating/iphoneaudio.html
Related
I want to share the URL of the current Safari page with my app from within Safari.
Unfortunately, somehow all SO posts or tutorials deal with how to share URLS, texts, ... from your own app to other apps and not the other way around.
Can anyone give me some keywords/WebSite/Documentations/... on how to display my own app in the share sheet options of other apps (e.g. Safari).
Thanks
For those who are also just starting with iOS development and are asking the same question:
https://developer.apple.com/documentation/foundation/app_extension_support/supporting_suggestions_in_your_app_s_share_extension
You have to add a share extension to your project. There you can make all the other settings, such as the number and type of objects you can receive (image, text, link, ...) and the view that is displayed when you call your own app.
I want to show custom play Icon inspite of facebook regular playionc when a user shares video from website. Currently I saw Youtube does this, How to do this?
Thanks in advance
No, its not possible to provide our own start card, the only thing we can control is image and text which will be displayed on the startcard
I've made an app for a client that uploads a vide to youtube and then emails them a link to a page that, when opened on Safari, displays the video and then prompts them to add the page to their homescreen as a web app.
For some reason, when the app is played in Safari the video plays fine but when it is played from homescreen it doesn't play sound through the speakers, only through the headphones. Anyone know of a reason this could be happening?
EDIT: Fixed it myself and posted to another answer
http://www.shockoe.com/blog/embedded-youtube-videos-wont-play-sound-through-speakers-when-played-from-web-apps-added-to-homescreen-fix/
Answered my own question! Need to use Object embed not iframe
http://www.shockoe.com/blog/embedded-youtube-videos-wont-play-sound-through-speakers-when-played-from-web-apps-added-to-homescreen-fix/
I think the answer to this is probably no, as I have been searching for days and have not run across the answer. I have a mobile site that has links to youtube videos in http://www.youtube.com/watch?v=XXXXXXXXX format. The links open in the iPhone Youtube app which takes the user out of Safari and is a suboptimal experience, as the user then has to re-open safari. Is there any type of parameter to pass that would allow these video links to open in the same view that say an embedded video opens in, or a direct MP4 would open in(which allows the user to simply click done, and boom they are back on Safari)? It sucks that only iframe or embedded videos seem to allow this functionality and not links.
From messing around with the mobile Youtube site itself, it looks like you can link to the mobile page for a particular video with this URL format: http://m.youtube.com/#/watch?v=XXXXXXXXX. Visiting that URL will show the video page in Safari without launching the Youtube app.
For me this solution is pretty simple but elegant and it did work perfectly
https://github.com/hellozimi/HCYoutubeParser
I'd like to have my application be able to add bookmarks to safari programmatically, is this possible?
Not really possible : there's no API for that (and you can understand it from user perspective....).
An answer here confirms it :
Add bookmark to Safari on iPhone when an application is installed?
You can't add a bookmark in Safari itself, but you can add an icon on the user's Home screen that bookmarks an arbitrary URL:
User Experience Coding How-To's for Safari on iPhone