All Projects → khizar1556 → Mkvideoplayer

khizar1556 / Mkvideoplayer

Licence: mit
MKVideoPlayer library is a video player have some basic features that need to develop an video player application in android studio

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Mkvideoplayer

Magicalexoplayer
The Easiest Way To Play/Stream Video And Audio Using Google ExoPlayer In Your Android Application
Stars: ✭ 171 (+216.67%)
Mutual labels:  player, mediaplayer, videoplayer, mobile
KingPlayer
🎬 一个专注于 Android 视频播放器的基础库,无缝切换内核。(IjkPlayer、ExoPlayer、VlcPlayer、MediaPlayer)
Stars: ✭ 35 (-35.19%)
Mutual labels:  player, mediaplayer, videoplayer
HAudioPlayer
AVPlayer再封装,实现类网易云音乐播放动画效果
Stars: ✭ 15 (-72.22%)
Mutual labels:  player, mediaplayer
VideoPlayerBot
An Telegram Bot By @AsmSafone To Stream Videos in Telegram Voice Chat. This is Also The Source Code of The Bot Which is Being Used In Our Support Group! ❤️
Stars: ✭ 187 (+246.3%)
Mutual labels:  player, videoplayer
Playerbase
The basic library of Android player will process complex business components. The access is simple。Android播放器基础库,专注于播放视图组件的高复用性和组件间的低耦合,轻松处理复杂业务。
Stars: ✭ 2,814 (+5111.11%)
Mutual labels:  player, mediaplayer
expo-video-player
Customizable Video Player controls for Expo
Stars: ✭ 174 (+222.22%)
Mutual labels:  player, videoplayer
ti.exoplayer
A native control for playing videos for Titanium. Based on Google ExoPlayer, using Titanium.Media.VideoPlayer API.
Stars: ✭ 17 (-68.52%)
Mutual labels:  mediaplayer, videoplayer
blade-player
Android music player that plays from local library, Spotify or Deezer
Stars: ✭ 67 (+24.07%)
Mutual labels:  player, android-application
Zftplayer
iOS平台下基于IJKplayer封装的视频播放器,主要适用于视频点播。针对视频格式,前后台切换,内存管理控件的层级分离做了相应优化
Stars: ✭ 273 (+405.56%)
Mutual labels:  player, videoplayer
Dkvideoplayer
Android Video Player. 安卓视频播放器,封装MediaPlayer、ExoPlayer、IjkPlayer。模仿抖音并实现预加载,列表播放,悬浮播放,广告播放,弹幕
Stars: ✭ 3,796 (+6929.63%)
Mutual labels:  player, mediaplayer
Xgplayer
A HTML5 video player with a parser that saves traffic
Stars: ✭ 4,792 (+8774.07%)
Mutual labels:  player, videoplayer
Fanplayer
A portable video player based on ffmpeg for windows and android platform.
Stars: ✭ 229 (+324.07%)
Mutual labels:  player, mediaplayer
Imusic
一个集视频播放器、音乐播放器封装库于一身的iMusic工程
Stars: ✭ 228 (+322.22%)
Mutual labels:  player, videoplayer
CommenPlayer
CommenPlayer ——Video player, Support ijkPlayer, Vlc, MediaPlayer, ExoPlayer; 视频播放器,支持ijkPlayer,Vlc,MediaPlayer,ExoPlayer
Stars: ✭ 81 (+50%)
Mutual labels:  player, mediaplayer
Videoplayer
📽 A video player for SwiftUI, support for caching, preload and custom control view. SwiftUI 视频播放器,支持边下边播、预加载、自定义控制层
Stars: ✭ 212 (+292.59%)
Mutual labels:  player, videoplayer
Xamarinmediamanager
Cross platform Xamarin plugin to play and control Audio and Video
Stars: ✭ 647 (+1098.15%)
Mutual labels:  player, mediaplayer
Sbplayerclient
支持全格式的mac版视频播放器
Stars: ✭ 110 (+103.7%)
Mutual labels:  player, videoplayer
Sjvideoplayer
iOS VideoPlayer MediaPlayer video player media player 短视频播放器 可接入 ijkplayer aliplayer alivodplayer plplayer
Stars: ✭ 2,066 (+3725.93%)
Mutual labels:  player, videoplayer
Mobileplayer Ios
📱 🎥 A powerful and completely customizable media player for iOS
Stars: ✭ 2,931 (+5327.78%)
Mutual labels:  player, mobile
Musicplayer
Implemented using Clean Arch, MVVM, LiveData, Room, Koin, Coil, Service, Notification and ExoPlayer
Stars: ✭ 413 (+664.81%)
Mutual labels:  player, android-application

Donate

Bitcoin BitcoinQR

3AcFNxGKLW357XKg9RJuBPSU3wjezi1HPh

MK VideoPlayer

MKVideoPlayer library is a video player have some basic features that need to develop an video player application in android studio

features

  1. base on ijkplayer.
  2. gestures for volume control
  3. gestures for brightness control
  4. gestures for forward or backward
  5. fullscreen by manual or sensor
  6. lock screen feature
  7. AspectRatio feature.

How to add Library into Your project

The easiest way to get started using MKVideoPlayer(MK video player) is to add it as a gradle dependency. You need to make sure you have the maven { url 'https://jitpack.io' } repositories included in the build.gradle file in the root of your project:

allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

Next add a gradle compile dependency to the build.gradle file of your app module. The following will add a dependency to the full library:

dependencies {
	         compile 'com.github.khizar1556.MKVideoPlayer:mkvideoplayer:0.1.5'
	}

How to use

case 1: only want to play a video fullscreen

just callMKPlayerActivity.configPlayer(activity).play(url).

case 2: Add a MKplayer in layout

step 1: include video layout in your layout xml file

<include
        layout="@layout/mk_player"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />


step 2: How to play a Video using MKPlayer

 MKPlayer mkplayer = new  MKPlayer(Activity);
mkplayer.play(url);

step 3: How to handle setPlayerCallBacks

 player.setPlayerCallbacks(new MKPlayer.playerCallbacks() {
            @Override
            public void onNextClick() {
            //It is the method for next song.It is called when you pressed the next icon
            //Do according to your requirement
            }
            @Override
            public void onPreviousClick() {
            //It is the method for previous song.It is called when you pressed the previous icon
            //Do according to your requirement
            }
        });

API:

  • play(url) //play video
  • stop()//stop video
  • pause()//pause video
  • start() //start video
  • forward() // forward or back video,example: forward(0.1f) forward(-0.1f)
  • getCurrentPosition()
  • setScaleType(MKPlayer.SCALETYPE_FITPARENT) //set video scale type
  • toggleAspectRatio() // toggle video scale type
  • seekTo(...) //seek to specify position
  • getDuration() //get video duration
  • onInfo(...) //callback when have some information
  • onError(...) //callback when an error occurred
  • onComplete(...) //callback when the play is over
  • onControlPanelVisibilityChange(...) //callback when control panel visibility change
  • setPlayerCallbacks() //Callback to control next and previous methods

Screenshots:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].