V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
xiaoyu9965
V2EX  ›  iOS

为什么 AFSoundManager 播放 MP3 没有声音?

  •  
  •   xiaoyu9965 · Sep 29, 2015 · 3073 views
    This topic created in 3874 days ago, the information mentioned may be changed or developed.

    直接上代码!
    let urlMp3:NSURL = NSURL(string: "http://api.sport-x.cn/audio/demo1.mp3")!
    let myAFSoundItem = AFSoundItem.init(streamingURL: urlMp3)
    let player:AFSoundPlayback = AFSoundPlayback.init(item: myAFSoundItem!)
    player.play()

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1177 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 23:26 · PVG 07:26 · LAX 16:26 · JFK 19:26
    ♥ Do have faith in what you're doing.