Skip to content

Commit

Permalink
demo播放网络音乐
Browse files Browse the repository at this point in the history
demo播放网络音乐
  • Loading branch information
DamonHu committed Jul 13, 2020
1 parent 26317cd commit 22f339c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion HDCommonTools/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
case 2:{
switch (indexPath.row) {
case 0:{
NSString * musicFilePath = [[NSBundle mainBundle] pathForResource:@"空谷" ofType:@"wav"];
// NSString * musicFilePath = [[NSBundle mainBundle] pathForResource:@"空谷" ofType:@"wav"];
NSString *musicFilePath = @"https://file-fat.shinningmorning.com/voice/voice_xiongdi.m4a";
[[HDCommonTools sharedHDCommonTools] playMusicWithMusicFilePath:musicFilePath withRepeat:true];
}
break;
Expand Down

0 comments on commit 22f339c

Please sign in to comment.