Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
VLCKit
VLCKit
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 76
    • Issues 76
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 3
    • Merge Requests 3
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • VideoLAN
  • VLCKitVLCKit
  • Issues
  • #339

Closed
Open
Opened Mar 01, 2020 by Tâm Nguyễn Hoàng@hoangtam.cntt

Replay sound

Hi VLC, I want to implement automatic replay sound (infinity loop) Could you help me, how can I do that?

There is my code

  • let soundFilePath = Utils.loadSoundPath("background_music.ogg")
  • let soundURL = URL(fileURLWithPath: soundFilePath)
  • let media = VLCMedia(url: soundURL)
  • let mediaPlayer = VLCMediaPlayer()
  • mediaPlayer.media = media
  • mediaPlayer.delegate = self
  • mediaPlayer.play()

Thank you,

Edited Mar 01, 2020 by Tâm Nguyễn Hoàng
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: videolan/VLCKit#339