ios - Iphone: Audio Asset track not found when audio is created as a file, runtime in application -
when select audio asset,i noticed audio asset track not found in selected asset. "audio created runtime file"(means created in application , saved in document directory).
i have used code link below ... work when audio selected resources in project not in case (my case: audio created in app file , saved in doc. dir.)
you can use statement check sound of video
if([[songasset trackswithmediatype:avmediatypeaudio] firstobject]==null) { nslog(@"sound not present"); } else { nslog(@"sound present"); //you initalise things avassettrack *sourceaudiotrack = [[songasset trackswithmediatype:avmediatypeaudio] objectatindex:0]; }
Comments
Post a Comment