- M1 Macs have been hot out the gate thanks to a bevy of applications that continue to be updated for Apple Silicon. And today we’ve got more good news for M1 Mac owners: the excellent VLC media player is finally available in a native ARM build for Apple Silicon-based macs.
- VLC, the popular open-source media player, has received an update that brings native support for Apple Silicon M1 Macs. VLC was previously available for Intel-based Macs, and was running fine.
- Jan 19, 2021 VLC now runs natively on M1 Macs. The latest update to ubiquitous open-source media player VLC is here, and it comes with native support for Apple silicon Mac computers — the new versions of the.
- VLC Media Player Gets Native Support For M1 Macs VLC 3.0.12 is here, with lots of goodies, including native support for Apple Silicon (M1 processor) Macs. This week, VideoLAN announced a new VLC video player update that will make M1 Mac owners very happy.
This page provides a brief overview on the LibVLC binding for Objective-C.
VLC, the extremely popular cross-platform media player software, just got a big update which brings native support to Apple's M1 Macs. The free open-source media player now features an updated 3.0.
Introduction
VLCKit is an Objective-C wrapper for libvlc's external interface, on macOS, iOS and tvOS.
It includes basic classes for playback, playlists, streaming and transcoding. Doing simple media players (comparable to QuickTime Player or MPlayer OS X) is as hard as doing a QuickTime-based one; thus, it is really easy.MobileVLCKit is a subset specifically targeting the iOS platform, enabling a full playback experience with playlists, metadata handling and network streaming. If you require a media database, MediaLibraryKit will get you going within minutes.
Building the framework for macOS
Vlc Apple Silicon
- Clone http://code.videolan.org/videolan/VLCKit.git
- open
VLCKit.xcodeproj
- make sure the 'Build libvlc' target is selected
- build the project
- Select the 'VLCKit' target and build it.
This will automatically fetch and build libvlc as well as accompanying classes. Alternatively and to get access to more options, you can run the 'buildVLCKit.sh' script on the terminal manually. Add the '-h' flag to see all available options.
Building the framework for iOS
- Clone http://code.videolan.org/videolan/VLCKit.git
- open your favorite terminal application such as Terminal.app or iTerm 2 and navigate to your checkout.
- execute
./compileAndBuildMobileVLCKit.sh
- check
-h
for available options
This will automatically fetch and build libvlc as well as its dependencies and accompanying classes.
If you want to build a library that will work for both the simulator and devices:
- execute
./compileAndBuildMobileVLCKit.sh
- use xcode command line tools to build a universal library:
lipo -create Release-iphoneos/libMobileVLCKit.a Release-iphonesimulator/libMobileVLCKit.a -o libMobileVLCKit.a
Or to build as a static framework with device and simulator support:
./compileAndBuildMobileVLCKit.sh -f
Note: the MobileVLCKit Xcode project also allows you to build a dynamic framework (requiring iOS 8 later) after the build script succeeded once.
Warning: the current build process produces a very large library when using static mode. 90% of the initial size will be stripped on linking.
Dependencies warning: The built script fetches dependencies automatically and builds them locally; beware that system-wide installations through Homebrew may interfere with the local build scripts. If you get autoconf-related errors, try removing /usr/local from your PATH, wiping the source tree, and starting the build over.
Building the framework for tvOS
- Clone http://code.videolan.org/videolan/VLCKit.git
- open your favorite terminal application such as Terminal.app or iTerm 2 and navigate to your checkout.
- execute
./compileAndBuildMobileVLCKit.sh -t
- check
-h
for available options
This will automatically fetch and build libvlc as well as its dependencies and accompanying classes.
If you want to build a library that will work for both the simulator and devices:
- execute
./compileAndBuildMobileVLCKit.sh
- use xcode command line tools to build a universal library:
lipo -create Release-appletvos/libTVVLCKit.a Release-appletvsimulator/libTVVLCKit.a -o libTVVLCKit.a
Or to build as a static framework with device and simulator support:
./compileAndBuildMobileVLCKit.sh -t -f
Note: the MobileVLCKit Xcode project also allows you to build a dynamic framework after the build script succeeded once.
Warning: the current build process produces a very large library when using static mode. 90% of the initial size will be stripped on linking.
Dependencies warning: The built script fetches dependencies automatically and builds them locally; beware that system-wide installations through Homebrew may interfere with the local build scripts. If you get autoconf-related errors, try removing /usr/local from your PATH, wiping the source tree, and starting the build over.
Basic usage in your application
The code should speak by itself
Sample code
We offer sample code both for iOS and macOS.
Examples_OSX
includes 3 different projects.
- BasicPlayerWithPlaylist: this sum's it up pretty well. drag and drop files, hit play / pause, see them play in the same window in the order you want them to.
- FlashVideoDownloader: this exemplifies the basics on how to deploy VLC's URL parsing mechanisms to gain access to the actually played media and how to store it.
- iPodConverter: VLCKit includes streaming and transcoding features including a few pre-defined profiles. In this sample, you see how to use them. Drop a file in the designated area. Hit convert. See the file being converted including a progress bar.
Examples_iOS
includes 2 different projects developed using Xcode 5 and with iOS 7 in mind. With minor modifications, they will also work on iOS 5 and 6.
- SimplePlayback: it's as simple as it sounds. Launch the app to watch a file being streamed live over http from one of our servers to your iOS Simulator or device.
- DropIn-Player: this is a more advanced sample project implementing a basic view controller, which could be embedded in your own app. It allows any kind of media playback, subtitles handling, multiple audio track handling, aspect ratio customizations, playback position manipulation and display, volume. All of that, implemented in a self-contained class and a single xib file.
Are there apps actually deploying VLCKit on macOS and iOS?
This is a selection of apps we are aware of.
- Amahi for iOS by Amahi
- Blackbox by Rotapp
- Dreambox-Live by Rotapp (discontinued)
- Fleex player by fleex.tv
- Korri player by Korrisoft
- Lunettes by the VideoLAN team
- Ma TV Star by Korrisoft
- Movie Player 2 by Dominic Rodemer Online Media
- Player multimédia TNT by Korrisoft
- VLC for iOS by the VideoLAN team
- VLC Streamer by HobbyistSoftware
Vlc Player
Feel free to add your application above in alphabetical order. Note that we don't list apps violating VLCKit's licensing terms - regrettably, there are quite a few.
Compilation tips
- If you do not care about the latest, try using the stable branch, e.g. 2.1-stable
- The build tree has what could be described as 'git submodules' and they sometimes can fall out of sync. If the code inside
MobileVLCKit/ImportedSources/vlc
falls out of sync or you need to force a rebuild you may want to removecontrib/iPhoneOS-armv7*/
- In some situations your libtoolize may interfere with the build tools. You may want to add
$PATH/MobileVLCKit/ImportedSources/vlc/extras/tools/build/bin
towards the beginning of your PATH and build with it
Related
External Links
Vlc Media Player 64-bit
One of the main tasks that many people perform on computers is playing various types of media. To support media playback, PCs and Mac computers need media players, and one of the most popular multi-platform media players is called VLC. The macOS version of VLC has received a significant update adding full support for the new M1 Mac computers.
The update allows the software to take complete advantage of the new Apple Silicon inside the Mac computers. This allows for improved performance and better energy efficiency, which will be very welcome by MacBook users looking for the most battery life possible. The updated version of VLC is 3.0.12.
Along with full support for M1 Mac computers, the update also adds enhancements to work correctly for macOS Big Sur. Other tweaks to the latest version of the media player include a fix for audio distortions and adaptive streaming resolution, along with security improvements. There are currently two versions of VLC with versions for Mac computers running Intel chips and one for Mac computers running the latest M1 chips.
This means users will need to update VLC for Mac version 3.0.12 and then check for updates again to install version 3.0.12.1 for ARM-powered Mac computers. VLC is a free download for Mac and Windows users. It’s also available for iOS devices via the App Store.
Anyone wanting to learn more about the new Apple M1 Mac computers can check out our M1 MacBook Air review from last month. More recently, an unwelcome change was made to the M1 Macs preventing users from sideloading iPhone and iPad apps onto the laptops. That wasn’t such a welcome change, but a better performing version of VLC is.