Coder Social home page Coder Social logo

ybrid / player-sdk-swift Goto Github PK

View Code? Open in Web Editor NEW
21.0 8.0 4.0 5.16 MB

Audio Player SDK written in Swift, fully compatible with Ybrid®. Can be used in iOS, iPadOS, etc., or other Swift applications.

Home Page: https://ybrid.gitbook.io/player-sdk-swift/

License: Other

Swift 97.25% Shell 1.52% Ruby 1.23%
audio sdk-swift player ybrid ios swift opus ogg radio streaming

player-sdk-swift's People

Contributors

florianatnacamar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

player-sdk-swift's Issues

Playback opus sometimes stuck on `buffering`

Hi and thanks for this library.

Xcode 13, iOS 15, simulator. I'm playing local files that are stored in the documents directory.

For some files (always .opus), I get a weird behaviour where it gets stuck buffering. And it's always the same files, for instance foo.opus will always play perfectly, and bar.opus will always get stuck.

Any idea ?

swift SPM import YbridPlayerSDK

Integrated with the YbridPlayerSDK, but clicking on the header file to enter it is blank and cannot access the methods [inside](Uploading 截屏2023-11-20 10.53.14.png…)

Ybrid Player as AVPlayer Replacement

Hello!

First off, thank you very much for this open source audio player library.
I notice there are several features typical in audio players that Ybrid Player does not seem to have, such as audio duration and seek to functionality. Do these features exist anywhere or are they purposefully absent?

Since it has such good support for OGG/OPUS, I'd love to use this library rather than AVPlayer as an audio player with standard features like seeking, current position, duration, play/pause, and so forth.

Crash on PlaybackEngine deinit

Had lots of the following crash

#0	(null) in __exceptionPreprocess ()
#1	(null) in objc_exception_throw ()
#2	(null) in +[NSException raise:format:arguments:] ()
#3	(null) in AVAE_RaiseException(NSString*, ...) ()
#4	(null) in _AVAE_CheckAndReturnErr(char const*, int, char const*, char const*, bool, int, NSError**) ()
#5	(null) in AVAudioEngineGraph::RemoveNode(AVAudioNode*, NSError**) ()
#6	(null) in -[AVAudioNode didDetachFromEngine:error:] ()
#7	(null) in AVAudioEngineImpl::DetachNode(AVAudioNode*, bool, NSError**) ()
#8	(null) in -[AVAudioEngine detachNode:] ()
#9	0x10352fc34 in PlaybackEngine.deinit at /Users/alex/Developer/iOS/_frameworks/player-sdk-swift/player-sdk-swift/playing/PlaybackEngine.swift:84
#10	(null) in PlaybackEngine.__deallocating_deinit ()
#11	(null) in _swift_release_dealloc ()
#12	(null) in bool swift::HeapObjectSideTableEntry::decrementStrong<(swift::PerformDeinit)1>(unsigned int) ()
#13	(null) in AudioPipeline.onFormatChanged(_:) ()
#14	0x103500cac in 0x1034f4000 at /Users/alex/Developer/iOS/_frameworks/player-sdk-swift/player-sdk-swift/decoding/AudioDecoder.swift:55
#15	0x1035258dc in $s14YbridPlayerSDK9AudioDataC6formatSo13AVAudioFormatCSgvW at /Users/alex/Developer/iOS/_frameworks/player-sdk-swift/player-sdk-swift/decoding/AudioData.swift:39
#16	(null) in $s14YbridPlayerSDK9AudioDataC6formatSo13AVAudioFormatCSgvs ()
#17	0x1035258dc in OpusData.onOpusHead(package:packetno:) at /Users/alex/Developer/iOS/_frameworks/player-sdk-swift/player-sdk-swift/decoding/opus/OpusData.swift:228
#18	0x10352426c in 0x1034f4000 at /Users/alex/Developer/iOS/_frameworks/player-sdk-swift/player-sdk-swift/decoding/opus/OpusData.swift:122
#19	0x1035237c0 in 0x1034f4000 at /Users/alex/Developer/iOS/_frameworks/player-sdk-swift/player-sdk-swift/decoding/opus/OpusData.swift:109
#20	0x103520f80 in 0x1034f4000 at /Users/alex/Developer/iOS/_frameworks/player-sdk-swift/player-sdk-swift/decoding/opus/OggContainer.swift:97
#21	0x103527830 in 0x1034f4000 at /Users/alex/Developer/iOS/_frameworks/player-sdk-swift/player-sdk-swift/decoding/opus/OpusDecoder.swift:109
#22	0x103504490 in closure #1 in AudioPipeline.decode(data:) at /Users/alex/Developer/iOS/_frameworks/player-sdk-swift/player-sdk-swift/AudioPipeline.swift:285

This line was the issue, crashes disappeared after removing it :

Update Swift version

I cannot use this package in my project, because I get an error that says this SDK is built with Swift 5.3.2, but I'm running Swift 5.6. Can you please update it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.