SKrotkih / YTLiveVideo-Android

Android (Kotlin) app for YouTube live broadcast streaming with using YouTube Live Streaming API v3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

YTLiveStreaming for Android

Example of using YouTube Live Streaming API v3 on Android (Kotlin).

Were also used:

To use this application,

  1. Enable YouTube Live Streaming for your channel.
  2. In your Google Developers Console,
  3. Enable the YouTube Data API v3 (from the Library)

Screen Shot 2020-10-06 at 8 48 27 AM

  1. Create a client ID for Android, using your SHA1 and package name.

Screen Shot 2020-10-06 at 8 45 37 AM Screen Shot 2020-10-06 at 8 52 25 AM

For the YouTube Player API needed API key:

  1. On the Credentials page (look for on the console) copy API Key
  2. Open Credentials_.kt file (util folder). Replace the parameter "API Key" with Past API from the previous step. Close the file.
  3. Rename file Credentials_.kt to Credentials.kt

Demo video

  1. Create a new stream on your YouTube account:

v2

  1. There are All, Upcoming, Active, Completed life cycle broadcasts. Watch current (active) stream.

v5

There is an example of using the same API on iOS: YTLiveStreaming for iOS.

About

Android (Kotlin) app for YouTube live broadcast streaming with using YouTube Live Streaming API v3

License:MIT License


Languages

Language:Kotlin 56.0%Language:Java 37.4%Language:C 5.6%Language:Makefile 1.0%