RxExoPlayer

RxJava2 binding APIs for ExoPlayer

Лицензия

Лицензия

Категории

Категории

React Взаимодействие с пользователем Веб-фреймворки
Группа

Группа

com.github.satoshun.reactivex.exoplayer2
Идентификатор

Идентификатор

rxexoplayer
Последняя версия

Последняя версия

0.2.0
Дата

Дата

Тип

Тип

aar
Описание

Описание

RxExoPlayer
RxJava2 binding APIs for ExoPlayer
Ссылка на сайт

Ссылка на сайт

https://github.com/satoshun/RxExoPlayer
Система контроля версий

Система контроля версий

https://github.com/satoshun/RxExoPlayer

Скачать rxexoplayer

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (5)

Идентификатор библиотеки Тип Версия
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

Модули Проекта

Данный проект не имеет модулей.

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.

Версии библиотеки

Версия
0.2.0
0.1.0