Questions tagged [avurlasset]

This tag should be used for questions about the AVURLAsset class of the AVFoundation framework used in iOS, macOS, and tvOS.

AVURLAsset is a concrete subclass of AVAsset that you use to initialize an asset from an URL.

Complete Class Reference in apple.

112 questions
0
votes
1 answer

how to use object c extract mp3 file metadata?

AVURLAsset can extract mp3 file metadata , but when a mp3 file extension name not '.mp3' , The AVURLAsset can't get the metadata . how can i get the extesion name not '.mp3' file metadata ?
0
votes
1 answer

Add sound to AVMutableVideoComposition multiple times

I'm using an AVMutableVideoComposition to add video and audio. I have multiple video and audio files that I stitch together, which basically works fine. I'm using this code to add the audio: AVURLAsset *audioAsset = [[AVURLAsset alloc]…
Swissdude
  • 3,486
  • 3
  • 35
  • 68
0
votes
1 answer

the duration of a mp3 returns zero

I want to get the duration of a mp3 file from the internet,I use the following code: NSURL *url = [NSURL fileURLWithPath:@"http://view.33591.com:586/2012/11/30/11/4207369.mp3"]; AVURLAsset *asset = [[AVURLAsset alloc] initWithURL:url …
Cheng Guo
  • 55
  • 3
0
votes
1 answer

the value of __block variable is not changed

The code below will load the value of the asset asynchronously. I wait for it using while loop. AVURLAsset *asset = [[AVURLAsset alloc] initWithURL:aAudioLink options: nil]; [asset loadValuesAsynchronouslyForKeys:keys …
BB.
  • 707
  • 2
  • 11
  • 22
0
votes
0 answers

AVURLAsset - loadValuesAsynchronouslyForKeys:requestedKeys

I'm using this code to load the values of key and play movie url. [asset loadValuesAsynchronouslyForKeys:requestedKeys completionHandler: ^{ dispatch_async( dispatch_get_main_queue(), ^{ …
9891541
  • 251
  • 3
  • 14
-1
votes
1 answer

Swift get video duration from firebase storage

I'm working on an app that's similar to YouTube functionalities. Now I need to display a list of videos (already stored in Firebase) in a collectionView and I need to get the duration of each video. I'm considering to add a property duration to…
David Wu
  • 105
  • 2
  • 13
-1
votes
1 answer

How to force AVPlayer respect EXIF metadata

I'm streaming an online or localy downloaded mp4 video via AVPlayer component. Some mp4 files have wrong orientation, but EXIF metadata says how video should be rotated when played. However, AVPlayer doesn't seem to respect that. Is there any way to…
mixtly87
  • 1,675
  • 15
  • 32
1 2 3 4 5 6 7
8