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.)

https://stackoverflow.com/a/12630437/1328096

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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -