Files
kotlin-fork/samples/videoplayer
Sergey Bogolepov 0ce85df549 Minor fixes for samples
Added homebrew paths for videoplayer sample
Fixed android sample
chmod +x calculator/androidApp/gradlew
Removed obsolete stubGenerator for html5canvas
2018-02-12 19:02:33 +03:00
..
2017-12-25 16:38:30 +03:00
2018-02-12 19:02:33 +03:00
2018-02-12 19:02:33 +03:00

Simple video player

This example shows how one could implement a video player in Kotlin. Almost any video file supported by ffmpeg could be played with it. ffmpeg and SDL2 is needed for that to work, i.e.

 port install ffmpeg-devel
 brew install ffmpeg sdl2
 apt install libavcodec-dev libavformat-dev libavutil-dev libswscale-dev \
             libavresample-dev
 apt install libsdl2-dev
 pacman -S mingw-w64-x86_64-SDL2 mingw-w64-x86_64-ffmpeg

To build use ../gradlew build.

To run use ./build/konan/bin/<platform>/Player.kexe file.mp4.