vlc.cr

vlc.cr

VLC media player library bindings for Crystal.

Installation

Add to your shard.yml:

dependencies:
  vlc:
    github: kojix2/vlc.cr

Run shards install

Usage

require "vlc"

# Create VLC instance
instance = LibVlc.new_instance(0, nil)

# Create media from file
media = LibVlc.new_media_from_path(instance, "path/to/video.mp4")

# Create media player
player = LibVlc.new_media_player_from_media(media)

# Play
LibVlc.play_media_player(player)

# Cleanup
LibVlc.free_media_player(player)
LibVlc.free_media(media)
LibVlc.free_instance(instance)

License

MIT

Repository

vlc.cr

Owner
Statistic
  • 0
  • 0
  • 1
  • 0
  • 0
  • 1 day ago
  • September 28, 2025
License

MIT License

Links
Synced at

Sun, 28 Sep 2025 06:19:06 GMT

Languages