iOS 开发实用技术导航
NSHipster 中文版
› http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
› http://www.cocos2d-iphone.org/
CocoaPods
› http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
› http://code.google.com/mobile/analytics/
WWDC
› https://developer.apple.com/wwdc/
Design Guides and Resources
› https://developer.apple.com/design/
Transcripts of WWDC sessions
› http://asciiwwdc.com
Cocoa with Love
› http://cocoawithlove.com/
Cocoa Dev Central
› http://cocoadevcentral.com/
NSHipster
› http://nshipster.com/
Style Guides
› Google Objective-C Style Guide
› NYTimes Objective-C Style Guide
Useful Tools and Services
› Charles Web Debugging Proxy
› Smore
lembacon
V2EX  ›  iDev

用于 iOS/Mac 的流媒体播放引擎 DOUAudioStreamer

  •  
  •   lembacon ·
    lembacon · May 7, 2013 · 12962 views
    This topic created in 4934 days ago, the information mentioned may be changed or developed.
    基于 Core Audio 实现的用于 iOS/Mac 的流媒体播放引擎 DOUAudioStreamer。

    https://github.com/douban/DOUAudioStreamer
    21 replies  •  2016-02-18 10:39:19 +08:00
    dazuiba
    dazuiba
    May 7, 2013
    1
    收了!
    仔细看了一下,结构很清晰,并且用Memeroy-File Mapping的方式解决了http和file不同的datasource。
    正准备改造手上的Streamer, 现在看来用不着了。
    谢谢!
    sugarit
    sugarit
    May 7, 2013
    2
    用了楼主的dRadio好久了,感谢
    BB9z
    BB9z
    May 7, 2013
    3
    请问,比 AVFoundation 的 AVPlayer 好在哪里?
    offspring
    offspring
    May 7, 2013
    4
    mark一下
    fourj
    fourj
    May 7, 2013❤️1
    5
    @BB9z 如果有一些定制需求的话,AVPlayer就无法满足了,比如文件是加密的,比如render的时候加些效果
    qichunren
    qichunren
    May 7, 2013
    6
    请问一下,这个对于服务器端的媒体文件有什么要求?需要以http chunked的形式提供文件吗?
    VeryCB
    VeryCB
    May 7, 2013
    7
    赞!
    lembacon
    lembacon
    OP
    May 7, 2013
    8
    @BB9z 这个 @fourj 解释的挺好的〜
    lembacon
    lembacon
    OP
    May 7, 2013
    9
    @qichunren 不用,普通的 HTTP Server 就可以了,不需要任何额外配置〜
    ultragtx
    ultragtx
    May 7, 2013
    10
    用core audio是为了支持可视化吧
    dazuiba
    dazuiba
    May 8, 2013
    11
    @lembacon 给你提了个issue, 不支持seek to a time position啊。

    有计划支持这个feature么?
    lembacon
    lembacon
    OP
    May 9, 2013
    12
    @ultragtx 也是为了方便其它的一些处理〜
    lembacon
    lembacon
    OP
    May 9, 2013
    13
    @dazuiba 这个 feature 以后会加上的〜(抱歉这两天比较忙,现在才回复 issue 哈 =。=)
    alexrezit
    alexrezit
    May 9, 2013
    14
    哈哈今天在豆瓣看到有人吐槽你的这个 audio engine 只有播放和暂停两个功能.
    notedit
    notedit
    May 10, 2013
    15
    楼主有没有兴趣用AVFoundation 写一个视频播放引擎啊

    最近遇到一些需求需要自定义播放器
    kernel1983
    kernel1983
    May 10, 2013
    16
    首先mark一下

    相比
    https://github.com/mattgallagher/AudioStreamer
    https://github.com/DigitalDJ/AudioStreamer
    有什么区别

    另外, 如果想实现ios端的cache(第一次边下边存, 第二次从cache里面读), 另外实现流媒体的seek(假设部分缓存了), 怎么破? 这些都是我的自身需求, 哈哈
    darnel
    darnel
    Apr 15, 2015
    17
    请问下,为什么我这边播放就会报错。
    OSStatus status = AudioConverterNew(&inputFormat, &_outputFormat, &_audioConverter);
    status 是 2
    idage
    idage
    Jul 29, 2015
    18
    请问下,为什么我这边播放就会报错。
    OSStatus status = AudioConverterNew(&inputFormat, &_outputFormat, &_audioConverter);
    status 是 0
    我跟楼上遇到了类似的错误 不知道要改哪里 求楼主赐教
    hilenlai
    hilenlai
    Aug 4, 2015
    19
    OSStatus status = AudioConverterNew(&inputFormat, &_outputFormat, &_audioConverter);
    status 是 1

    也是同样的错误
    skeven
    skeven
    Jan 19, 2016
    20
    它本身可以支持多种格式的音频吗 是静态资源吗 手头上有个电台类的 app 还有录音功能 所以要支持 求楼主告知 非常感谢
    skeven
    skeven
    Feb 18, 2016
    21
    请问楼主里面有做将音频缓存到本地的操作吗? 谢谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2590 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 11:12 · PVG 19:12 · LAX 03:12 · JFK 06:12
    ♥ Do have faith in what you're doing.