https://github.com/skrotkih/ytlivevideo-android
Android (Kotlin) app for YouTube live broadcast streaming with using YouTube Live Streaming API v3
https://github.com/skrotkih/ytlivevideo-android
android broadcasting coroutines-android googlesignin kotlin kotlin-android mvvm-android streaming streaming-library viewmodel youtube youtube-api youtube-api-v3 youtube-watchme ytlivevideo-android
Last synced: 3 months ago
JSON representation
Android (Kotlin) app for YouTube live broadcast streaming with using YouTube Live Streaming API v3
- Host: GitHub
- URL: https://github.com/skrotkih/ytlivevideo-android
- Owner: SKrotkih
- License: mit
- Created: 2020-09-18T08:20:20.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-12T04:51:43.000Z (over 4 years ago)
- Last Synced: 2023-04-02T13:11:40.367Z (about 2 years ago)
- Topics: android, broadcasting, coroutines-android, googlesignin, kotlin, kotlin-android, mvvm-android, streaming, streaming-library, viewmodel, youtube, youtube-api, youtube-api-v3, youtube-watchme, ytlivevideo-android
- Language: Kotlin
- Homepage:
- Size: 788 KB
- Stars: 6
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# YTLiveStreaming for Android
Example of using [YouTube Live Streaming API v3](https://developers.google.com/youtube/v3/live/docs) on Android (Kotlin).
Were also used:
- [Google Java API Client Services](https://github.com/googleapis/google-api-java-client-services)
- [Google Sign-In](https://developers.google.com/identity/sign-in/android/sign-in).
- MVVM pattern
- Coroutines (Multithreading async operations)
- [YouTube Android Player API](https://developers.google.com/youtube/android/player)To use this application,
1. [Enable YouTube Live Streaming for your channel](https://support.google.com/youtube/answer/2474026?hl=en).
1. In your [Google Developers Console](https://console.developers.google.com),
1. Enable the YouTube Data API v3 (from the Library)
1. Create a client ID for Android, using your SHA1 and package name.

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.ktDemo video
1. Create a new stream on your YouTube account:
2. There are All, Upcoming, Active, Completed life cycle broadcasts. Watch current (active) stream.

There is an example of using the same API on iOS: [YTLiveStreaming for iOS](https://github.com/SKrotkih/YTLiveStreaming).