Just pass an URL to your media file to AVPlayer (using the AVPlayer initWithURL initializer).
You can obtain an URL to a resource within your main bundle via NSBundle.
e.g.:
Just pass an URL to your media file to AVPlayer (using the AVPlayer initWithURL initializer).
You can obtain an URL to a resource within your main bundle via NSBundle.
e.g.:
I have a lot of pictures and they divide d to groups, one group has a relevant AAC file, when a picture is showed, play specific segment in relevant AAC file, is this easy to implement?
I have a lot of pictures and they divide d to groups, one group has a relevant AAC file, when a picture is showed, play specific segment in relevant AAC file, is this easy to implement?
Yeah, I read it.
In fact, I want to read .srt file and show it on images and play sound background base on contents of file .srt, do you have any more detail suggestion?
Yeah, I read it.
In fact, I want to read .srt file and show it on images and play sound background base on contents of file .srt, do you have any more detail suggestion?
"play sound background base on contents of file .srt?"
"any more detail suggestions?"
That's some serious word salad you've got going there.
Here's a suggestion. Learn to describe your problem well enough so others can understand it.
Then do you own research, experiment with the things you find, and post CONCRETE, SPECIFIC QUESTIONS on the specific things you have having problems with.
Don't post ill-formed questions look for others to do all your work for you.
When you can't be bothered to even describe what you are doing clearly then why should others invest the time to play 20 questions with you to figure out what you are talking about, research the answer, and provide it to you?