RxExoPlayer

RxJava2 binding APIs for ExoPlayer

License

License

Categories

Categories

React User Interface Web Frameworks
GroupId

GroupId

com.github.satoshun.reactivex.exoplayer2
ArtifactId

ArtifactId

rxexoplayer
Last Version

Last Version

0.2.0
Release Date

Release Date

Type

Type

aar
Description

Description

RxExoPlayer
RxJava2 binding APIs for ExoPlayer
Project URL

Project URL

https://github.com/satoshun/RxExoPlayer
Source Code Management

Source Code Management

https://github.com/satoshun/RxExoPlayer

Download rxexoplayer

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.satoshun.reactivex.exoplayer2/rxexoplayer/ -->
<dependency>
    <groupId>com.github.satoshun.reactivex.exoplayer2</groupId>
    <artifactId>rxexoplayer</artifactId>
    <version>0.2.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.satoshun.reactivex.exoplayer2/rxexoplayer/
implementation 'com.github.satoshun.reactivex.exoplayer2:rxexoplayer:0.2.0'
// https://jarcasting.com/artifacts/com.github.satoshun.reactivex.exoplayer2/rxexoplayer/
implementation ("com.github.satoshun.reactivex.exoplayer2:rxexoplayer:0.2.0")
'com.github.satoshun.reactivex.exoplayer2:rxexoplayer:aar:0.2.0'
<dependency org="com.github.satoshun.reactivex.exoplayer2" name="rxexoplayer" rev="0.2.0">
  <artifact name="rxexoplayer" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.github.satoshun.reactivex.exoplayer2', module='rxexoplayer', version='0.2.0')
)
libraryDependencies += "com.github.satoshun.reactivex.exoplayer2" % "rxexoplayer" % "0.2.0"
[com.github.satoshun.reactivex.exoplayer2/rxexoplayer "0.2.0"]

Dependencies

compile (5)

Group / Artifact Type Version
com.google.android.exoplayer » exoplayer-core jar 2.8.1
io.reactivex.rxjava2 : rxjava jar 2.1.8
io.reactivex.rxjava2 : rxandroid jar 2.0.1
com.android.support » multidex jar 1.0.2
org.jetbrains.kotlin : kotlin-stdlib jar 1.2.50

Project Modules

There are no modules declared in this project.

Maven Central

RxExoPlayer

RxJava for ExoPlayer using Kotlin.

Download

implementation "com.github.satoshun.reactivex.exoplayer2:rxexoplayer:{latest-version}"

Introduction

This is a RxJava bindings for ExoPlayer.

This library supports below types.

Player.EventListener sample

Player can be convert to Rx Observable stream.

val player: ExoPlayer = ...
player.events()
    .subscribe {
      Log.d("Player.EventListener", it.toString())
    }

HLS sample

MediaSource can be convert to Rx Observable Stream.

// create a MediaSource.
val source = HlsMediaSource
    .Factory(mediaDataSourceFactory)
    .createMediaSource(Uri.parse(HLS_SAMPLE))
// convert to Rx Observable.
source.events()
    .subscribe {
      Log.d("MediaSourceEvent", it.toString())
    }
// set MediaSource into Player.
player.prepare(source)

License

Copyright (C) 2018 Sato Shun

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Versions

Version
0.2.0
0.1.0