Skip to content

Intiserahmed/opus-player-swiftui

Repository files navigation

Swift Opus Audio Player

A simple SwiftUI-based audio player for Opus files using SwiftOGG and AVFoundation.

Features

  • Play and pause Opus audio files
  • Seek through the audio using a slider
  • Display current playback time and total duration
  • Support for mono and stereo Opus files

Requirements

  • iOS 14.0+
  • Xcode 12.0+
  • Swift 5.3+

Dependencies

Installation

  1. Clone this repository:
  2. Open the project in Xcode
  3. Install SwiftOGG using your preferred dependency manager (e.g., Swift Package Manager)

Usage

  1. Add your Opus file to the project (default name: "homeaudio.opus")
  2. Build and run the app
  3. Use the play/pause button to control playback
  4. Use the slider to seek through the audio

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

About

A SwiftUi Opus Audio Player

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published