All Projects → HamidrezaAmz → Magicalexoplayer

HamidrezaAmz / Magicalexoplayer

Licence: mit
The Easiest Way To Play/Stream Video And Audio Using Google ExoPlayer In Your Android Application

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Magicalexoplayer

Xgplayer
A HTML5 video player with a parser that saves traffic
Stars: ✭ 4,792 (+2702.34%)
Mutual labels:  player, dash, mp4, videoplayer, hls
Awesome Video
A curated list of awesome streaming video tools, frameworks, libraries, and learning resources.
Stars: ✭ 397 (+132.16%)
Mutual labels:  audio, player, dash, mp4, hls
Sjmediacacheserver
A HTTP Media Caching Framework. It can cache FILE or HLS media. 音视频边播边缓存框架, 支持 HLS(m3u8) 和 FILE(mp4, mp3等).
Stars: ✭ 87 (-49.12%)
Mutual labels:  audio, player, mp4, hls
p2p-cdn-sdk-android
Free p2p cdn android github sdk to reduce video streaming costs of live and on demand video using webrtc by upto 90% and improve scalability by 6x - 🚀 Vadootv 🚀
Stars: ✭ 39 (-77.19%)
Mutual labels:  player, hls, exoplayer, dash
Openplayerjs
Lightweight HTML5 video/audio player with smooth controls and ability to play VAST/VPAID/VMAP ads
Stars: ✭ 255 (+49.12%)
Mutual labels:  audio, player, dash, hls
KingPlayer
🎬 一个专注于 Android 视频播放器的基础库,无缝切换内核。(IjkPlayer、ExoPlayer、VlcPlayer、MediaPlayer)
Stars: ✭ 35 (-79.53%)
Mutual labels:  player, exoplayer, mediaplayer, videoplayer
Mkvideoplayer
MKVideoPlayer library is a video player have some basic features that need to develop an video player application in android studio
Stars: ✭ 54 (-68.42%)
Mutual labels:  player, mediaplayer, videoplayer, mobile
Mediaelement Files
Sample media files (MP4, WebM, Ogv, MP3, etc.) for the MediaElement.js library
Stars: ✭ 92 (-46.2%)
Mutual labels:  audio, dash, mp4, hls
Audioplayer
Audio Player for Nextcloud and ownCloud
Stars: ✭ 179 (+4.68%)
Mutual labels:  stream, audio, player, mp4
React Player
A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia and DailyMotion
Stars: ✭ 5,931 (+3368.42%)
Mutual labels:  audio, player, dash, hls
Vime
Customizable, extensible, accessible and framework agnostic media player. Modern alternative to Video.js and Plyr. Supports HTML5, HLS, Dash, YouTube, Vimeo, Dailymotion...
Stars: ✭ 1,928 (+1027.49%)
Mutual labels:  audio, player, dash, hls
Xamarinmediamanager
Cross platform Xamarin plugin to play and control Audio and Video
Stars: ✭ 647 (+278.36%)
Mutual labels:  audio, player, exoplayer, mediaplayer
Clappr
🎬 An extensible media player for the web.
Stars: ✭ 5,436 (+3078.95%)
Mutual labels:  player, dash, mp4, hls
Nginx Vod Module
NGINX-based MP4 Repackager
Stars: ✭ 1,378 (+705.85%)
Mutual labels:  stream, dash, mp4, hls
Shinobi
☮️ 🇵🇸 Shinobi CE - The Free Open Source CCTV platform written in Node.JS (Camera Recorder - Security Surveillance Software - Restreamer
Stars: ✭ 1,099 (+542.69%)
Mutual labels:  stream, mp4, hls
Wjplayer
Video.js bundle that supports HLS, VAST/VMAP, 360-degree videos, and more.
Stars: ✭ 55 (-67.84%)
Mutual labels:  audio, player, hls
Android P2p Engine
Let your viewers become your unlimitedly scalable CDN.
Stars: ✭ 70 (-59.06%)
Mutual labels:  player, exoplayer, hls
Nexplayer unity plugin
Stream videos in HLS & DASH with Widevine DRM using NexPlayer Video Streaming Player SDK for Unity on Android & iOS devices
Stars: ✭ 73 (-57.31%)
Mutual labels:  player, dash, hls
React Native Jw Media Player
React-Native Android/iOS bridge for JWPlayer SDK (https://www.jwplayer.com/)
Stars: ✭ 76 (-55.56%)
Mutual labels:  audio, player, mediaplayer
Hls.js
HLS.js is a JavaScript library that plays HLS in browsers with support for MSE.
Stars: ✭ 10,791 (+6210.53%)
Mutual labels:  stream, player, hls

GitHub API

MagicalExoPlayer

The Easiest Way To Play Video Using ExoPlayer In Your Android Application. Add Dependencies Into Your Gadle File, Sync Your Project And Then Just Pass Your Url Or Local Video Address To The Player. MagicalExoPlayer Support MP4, HLS, DASH And MP3.

mock_up_and_exo_player_2

Getting Started

These instructions will help you to use this library inside your projects

Prerequisites

This library was built with androidX, so you should migrate into androidX to use this library with out any problem. For migration you can use Migrating to AndroidX

Installing

Step 1. Add the JitPack repository to your build file, Add it in your root build.gradle at the end of repositories:

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

Step 2. Add the dependency

dependencies {
    implementation 'com.github.HamidrezaAmz:MagicalExoPlayer:1.0.16'
}

Here we go for implementation

Add player view into your XML

<com.potyvideo.library.AndExoPlayerView
        android:id="@+id/andExoPlayerView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />

Refrence to custom-view inside your activity or fragment (I use butterknife), Or you can use findViewById()

 @BindView(R.id.andExoPlayerView)
 AndExoPlayerView andExoPlayerView;

Or

 AndExoPlayerView andExoPlayerView = findViewById(R.id.andExoPlayerView);

Implementation Example

 andExoPlayerView.setSource("URL OR FILE ADDRESS");

Custom Attributes

Command Description
andexo_resize_mode Type Of Video Player Size, you can pass Fill,Fit,Zoom
andexo_full_screen Show FullScreen Toggle Button, you can Pass True,False
andexo_play_when_ready Player Start Playing On Stream Is Ready True,False
andexo_aspect_ratio In Order To Get The Desired Playerr Size, You Can Pass The Aspect Ratios You Need ASPECT_1_1, ASPECT_16_9, ASPECT_4_3, ASPECT_MATCH, ASPECT_MP3
andexo_show_controller Show Or Hide Player Controller True,False
andexo_loop Play video with loop modes Infinite,Finite

XML With Custom Attrs.

<com.potyvideo.library.AndExoPlayerView
        android:id="@+id/andExoPlayerView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:andexo_aspect_ratio="aspect_16_9"
        app:andexo_full_screen="true"
        app:andexo_play_when_ready="true"
        app:andexo_show_controller="true"
        app:andexo_resize_mode="Fit" />

TIP

  • If you wan to support full screen, please add this config into your activity in manifest.xml
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|smallestScreenSize|uiMode"

For example your activity with be something like this

<activity
      android:name=".MainActivity"
      android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|smallestScreenSize|uiMode">
      <intent-filter>
          <action android:name="android.intent.action.MAIN" />

          <category android:name="android.intent.category.LAUNCHER" />
      </intent-filter>
</activity>
  • If you want to pass custom headers over your stream url, you can just pass them as a hashmap like this:
  HashMap<String , String> extraHeaders = new HashMap<>();
  extraHeaders.put("foo","bar");
  andExoPlayerView.setSource("STREAM_URL", extraHeaders);

Other Libraries


❤️ Support My Projects

However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it. ☕️ 🍔 🍟 🍎

  • Starring: You may give a star or share the projects you like.
  • Bitcoin: You can send me bitcoins at this address (or scanning the code below):

16cAkXGQRjx6xLH4CCN5wyWaVDQH2pzyVu

qrcode

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].