I'm trying to use the 'ReceivedMessage' sound on macOS using AudioServicesPlaySystemSound() but I can't seem to find the ID anywhere.
What I've tried:
I've looked under /System/Library/Components/CoreAudio.component/Contents/SharedSupport/SystemSounds and couldn't find it either - although MessageSent is there.
I've tried AudioServicesPlaySystemSound(1003) as well following this link but that just results in silence. Any help would be greatly appreciated!
I've tried looking in Messages > Show Package Contents which only led to more disappointment.
I found the file here but I was a hoping to just link to it directly rather than including the .caf file in my app bundle.
Related
I have an app that saves data in my Documents directory. It would be very useful to be able to mail the data file to some other users so they can also use the gathered information. I have spent most of today looking for a solution, but have not found any answers basic enough to be of any help. So, I would greatly appreciate some help to get me started. Like, what do I need to do to make IOS aware that I am interested in opening ( in my case actually only copying the file to the app’s Documents directory for further chewing) a file with, for example the .xyz-extension and how this is done.
Much appreciated,
stalle
Running on a real device, there seems to be no problem.
I am using Lubuntu linux 18.04LTS, VLC 3.0.8 trying to record via vlc a video stream from a security camera and so far have not had success. I tried using the GUI "Convert" but despite choosing mp4, it seems to only play back as an mp3. Then I thought the command line might work, but I haven't found a clear tutorial in how to set up the right parameters. The closest I've gotten is this, which is:
vlc -vvv rtsp://#192.168.0.xyz:XXXX/videofeed --sout="#transcode{vcodec=h264,acodec=mpga,ab=128,channels=2,samplerate=44100,scodec=none}:file{mux=mp4,dst=/media/my/external/hard/disk/yard-01.mp4,no-overwrite}" :no-sout-all :sout-keep
The problem is the file created is not usable/readable. Using Gnome MPV player, I get "Format not recognized." And it doesn't play. Xine seems to play it, but treat it as a silent audio file (guessing at that). When I look at the command line messages, I get a long scroll of "mp4 mux warning: i_length <= 0" which, I am guessing, cannot be good.
I'm the first to admit I don't know much about the options in that line above...just cut them from other folks' posts who said they got this to work. Is there something I can tweak above to make it record video properly? It doesn't have to be mp4, just something decent that will allow me to get a good feed for security purposes.
I should add that the streaming part works fine in VLC. I have a nice feed whenever I want via live streaming. So I know the hardware and access part is fine. It's just the transcoding that I think is going awry.
Any and all help greatly appreciated. Thank you in advance!
I have a problem that i want to open and edit some images of .png extension that are currently in .des extension (for example button_start.png is in the form button_start.des) when i open button_start.des in the xcode it just show a text file like this(button_start.png 12234.00132330122309.that is now of image along with a long numerical number or possibly a hash code) i had been trying to open this .des file with many softwares like coreldraw and quickbooks but it still dont open.It had been weeks but still i am not finding any solution.please guys help me to solve this problem. thanks
.des-files are 3D-project-files. Xcode can't read nor see them, so you need to open them in the application they were created in and export them as PNGs.
If you added the .des-ending manually to a .png-file, you could simply rename the file file.png and it will work.
Im new to iPhone programming and wanted to see how people have solved this problem:
Ive created my app which will ship with certain pLists and .png files in the main bundle. However, what I want to do is when the app starts up, Id like it to check my server to see if there are updated versions of the files in the documents folder available. If so Id like the app to download those files.
I was wondering if someone can point me to some resources on how to do this? Ive searched online but haven't come up with good hits.
Whats the google key-word for searching this topic anyways?
Thanks a lot
you can use NSUrlRequest to download the files, to move them to the correct place you can use NSFileManager, if you look at the apple docs for both these classes there should be sample code explaining how to copy/save a file from NSData, and also how to download it.
I don't have any example resources of how to do exactly this, though I would probably do something along the lines of onAppLoad checking to see if the content of the application that you want to keep updated is the most recent, and if not, download it.
As for keywords to search I would try something along the lines of "Automatic App Content Updating/Verification" and throw in "iOS/iPhone/iPad" or some similar combination.
I'll do some more poking around and shoot you a comment notification if I find anything worthwhile, and then edit my post with it.
I am making an iPhone application and i want to use libical to parse .ics dat from an .ics file OR from the URL location of the .ics file..
Firstly i want to know how i would go about using libical in my project? How to add it into my iphone project etc.. ive seen some guides but they seem to be specific to OSX projects and not iphone projects..
Secondly i want to parse event names and their descriptions, so i that i can store the event names/ descriptions as variables..
I was wondering if this was possible using libical.. if so could someone please show me roughly how i may go about implementing this...
Any and all information will be very much appreciated!
Thank You For Reading
I know it might not be a very helpful answer - posting it because i can't comment on the question, so sorry for that - but ics data files are relatively easily parsable. Open one in a text editor and take a look, i've implemented an ics parser before for exactly what you're trying to do, took me a couple of hours, and trying to get all sorts of libraries to compile used taken me more in a few occasions :)
Found an excellent library for parsing .ics files. There are a whole lot of functions too for other tasks like managing calendar and calendar events.
https://github.com/KiranPanesar/MXLCalendarManager