• 大小: 127KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-20
  • 语言: 其他
  • 标签: swift  ios  

资源简介

播放 暂停 进度 后台 对于初学音乐播放的同学 可以看看 参考下

资源截图

代码片段和文件信息

//
//  NSMutableArray+STKAudioPlayer.m
//  StreamingKit
//
//  Created by Thong Nguyen on 30/01/2014.
//  Copyright (c) 2014 Thong Nguyen. All rights reserved.
//

#import “NSMutableArray+STKAudioPlayer.h“

@implementation NSMutableArray (STKAudioPlayer)

-(void) enqueue:(id)obj
{
    [self insertobject:obj atIndex:0];
}

-(void) skipQueue:(id)obj
{
    [self addobject:obj];
}

-(void) skipQueueWithQueue:(NSMutableArray*)queue
{
    for (id item in queue)
    {
        [self addobject:item];
    }
}

-(id) dequeue
{
    if ([self count] == 0)
    {
        return nil;
    }
    
    id retval = [self lastobject];
    
    [self removeLastobject];
    
    return retval;
}

-(id) peek
{
    return [self lastobject];
}

@end

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-10-09 09:12  hangge_1667\
     目录           0  2017-05-02 16:20  hangge_1667\hangge_1667.xcodeproj\
     文件       19250  2017-05-02 16:20  hangge_1667\hangge_1667.xcodeproj\project.pbxproj
     目录           0  2018-10-17 15:36  __MACOSX\
     目录           0  2018-10-17 15:36  __MACOSX\hangge_1667\
     目录           0  2018-10-17 15:36  __MACOSX\hangge_1667\hangge_1667.xcodeproj\
     文件         213  2017-05-02 16:20  __MACOSX\hangge_1667\hangge_1667.xcodeproj\._project.pbxproj
     目录           0  2018-10-09 09:12  hangge_1667\hangge_1667.xcodeproj\xcuserdata\
     目录           0  2018-10-09 09:12  hangge_1667\hangge_1667.xcodeproj\xcuserdata\sunxin.xcuserdatad\
     目录           0  2018-10-09 09:12  hangge_1667\hangge_1667.xcodeproj\xcuserdata\sunxin.xcuserdatad\xcschemes\
     文件         334  2018-10-09 09:12  hangge_1667\hangge_1667.xcodeproj\xcuserdata\sunxin.xcuserdatad\xcschemes\xcschememanagement.plist
     目录           0  2017-05-02 15:53  hangge_1667\hangge_1667.xcodeproj\xcuserdata\hangge.xcuserdatad\
     目录           0  2017-05-02 15:53  hangge_1667\hangge_1667.xcodeproj\xcuserdata\hangge.xcuserdatad\xcschemes\
     文件        3351  2017-05-02 15:53  hangge_1667\hangge_1667.xcodeproj\xcuserdata\hangge.xcuserdatad\xcschemes\hangge_1667.xcscheme
     目录           0  2018-10-17 15:36  __MACOSX\hangge_1667\hangge_1667.xcodeproj\xcuserdata\
     目录           0  2018-10-17 15:36  __MACOSX\hangge_1667\hangge_1667.xcodeproj\xcuserdata\hangge.xcuserdatad\
     目录           0  2018-10-17 15:36  __MACOSX\hangge_1667\hangge_1667.xcodeproj\xcuserdata\hangge.xcuserdatad\xcschemes\
     文件         213  2017-05-02 15:53  __MACOSX\hangge_1667\hangge_1667.xcodeproj\xcuserdata\hangge.xcuserdatad\xcschemes\._hangge_1667.xcscheme
     文件         483  2017-05-02 15:53  hangge_1667\hangge_1667.xcodeproj\xcuserdata\hangge.xcuserdatad\xcschemes\xcschememanagement.plist
     文件         213  2017-05-02 15:53  __MACOSX\hangge_1667\hangge_1667.xcodeproj\xcuserdata\hangge.xcuserdatad\xcschemes\._xcschememanagement.plist
     文件         213  2017-05-02 15:53  __MACOSX\hangge_1667\hangge_1667.xcodeproj\xcuserdata\hangge.xcuserdatad\._xcschemes
     文件         213  2017-05-02 15:53  __MACOSX\hangge_1667\hangge_1667.xcodeproj\xcuserdata\._hangge.xcuserdatad
     文件         213  2018-10-09 09:12  __MACOSX\hangge_1667\hangge_1667.xcodeproj\._xcuserdata
     目录           0  2017-05-02 15:53  hangge_1667\hangge_1667.xcodeproj\project.xcworkspace\
     文件         156  2017-05-02 15:53  hangge_1667\hangge_1667.xcodeproj\project.xcworkspace\contents.xcworkspacedata
     目录           0  2018-10-17 15:36  __MACOSX\hangge_1667\hangge_1667.xcodeproj\project.xcworkspace\
     文件         213  2017-05-02 15:53  __MACOSX\hangge_1667\hangge_1667.xcodeproj\project.xcworkspace\._contents.xcworkspacedata
     目录           0  2018-10-09 09:12  hangge_1667\hangge_1667.xcodeproj\project.xcworkspace\xcuserdata\
     目录           0  2018-10-17 13:53  hangge_1667\hangge_1667.xcodeproj\project.xcworkspace\xcuserdata\sunxin.xcuserdatad\
     文件       46149  2018-10-17 13:53  hangge_1667\hangge_1667.xcodeproj\project.xcworkspace\xcuserdata\sunxin.xcuserdatad\UserInterfaceState.xcuserstate
     目录           0  2017-05-04 14:39  hangge_1667\hangge_1667.xcodeproj\project.xcworkspace\xcuserdata\hangge.xcuserdatad\
............此处省略76个文件信息

评论

共有 条评论