Giter Site home page Giter Site logo

rashikaranpuria / youtube-livestream-android-app Goto Github PK

View Code? Open in Web Editor NEW
20.0 5.0 10.0 167.02 MB

Livestream to your youtube channel by using this android app. Made using Youtube's live streaming API

Home Page: http://www.rashikaranpuria.com/liveme-detail.html

Java 0.24% Makefile 5.56% C 87.79% C++ 0.31% Assembly 6.09% Objective-C 0.01% Verilog 0.01% Coq 0.01%
android youtube-api youtube livestream livestreaming ffmpeg

youtube-livestream-android-app's Introduction

[Deprecated]YouTube WatchMe for Android

The code is a reference implementation for an Android OS application that creates a YouTube Live Streaming event and streams into that event.

This application utilizes YouTube Data API v3 , YouTube Live Streaming API, Google Play Services and Plus API.

To use this application,

  1. In your Google Developers Console,
  2. Enable the YouTube Data API v3 and Google+ API.
  3. Create a client ID for Android, using your SHA1 and package name.
  4. Enable YouTube Live Streaming for your channel.

This is porject is not actively maintained.

youtube-livestream-android-app's People

Contributors

rashikaranpuria avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

youtube-livestream-android-app's Issues

java.lang.UnsatisfiedLinkError: dlopen failed: library "libffmpeg.so" not found

FATAL EXCEPTION: main
Process: com.google.android.apps.watchme, PID: 8248
java.lang.UnsatisfiedLinkError: dlopen failed: library "libffmpeg.so" not found
at java.lang.Runtime.loadLibrary0(Runtime.java:1077)
at java.lang.Runtime.loadLibrary0(Runtime.java:998)
at java.lang.System.loadLibrary(System.java:1656)
at com.google.android.apps.watchme.Ffmpeg.(Ffmpeg.java:26)
at com.google.android.apps.watchme.Ffmpeg.init(Native Method)
at com.google.android.apps.watchme.VideoStreamingConnection.open(VideoStreamingConnection.java:71)
at com.google.android.apps.watchme.StreamerService.startStreaming(StreamerService.java:72)
at com.google.android.apps.watchme.StreamerActivity.startStreaming(StreamerActivity.java:164)
at com.google.android.apps.watchme.StreamerActivity.access$200(StreamerActivity.java:39)
at com.google.android.apps.watchme.StreamerActivity$1.onServiceConnected(StreamerActivity.java:59)
at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:2077)
at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:2110)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7839)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)

App is getting crashed on StreamerActivity.java . Can you please help with this issue?

Project Compilation error

I am just cloning your project and trying to compile on

Android Studio 3.1.3
Build #AI-173.4819257, built on June 4, 2018
JRE: 1.8.0_152-release-1024-b02 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

and it shows some generic errors like ndk configuration path= NULL


apply plugin: 'com.android.application'

android {
    signingConfigs {
        config {
            keyAlias 'keystore'
            keyPassword '123'
            storeFile file('/home/rashi/StudioProjects/allbits-watchme/keystore.jks')
            storePassword '123'
        }
    }
    compileSdkVersion 22
    buildToolsVersion '27.0.3'
    defaultConfig {
        applicationId "com.google.android.apps.watchme"
        minSdkVersion 16
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
        sourceSets.main {
            jniLibs.srcDir 'src/main/libs'
            jni.srcDirs = [] //disable automatic ndk-build call
        }
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.config
            debuggable true
        }
        debug {
            debuggable true
            signingConfig signingConfigs.config
            minifyEnabled false
        }
    }
    configurations {
        implementation.exclude group: "org.apache.httpcomponents", module: "httpclient"
    }
    externalNativeBuild {
        ndkBuild {
            path 'src/main/jni/Android.mk'
        }
    }
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.google.android.gms:play-services-plus:7.8.0'
    implementation 'com.android.support:support-v4:22.2.0'
    implementation 'com.android.support:design:22.2.0'
    implementation 'com.google.apis:google-api-services-youtube:v3-rev120-1.19.0'
    implementation 'com.google.http-client:google-http-client-android:+'
    implementation 'com.google.api-client:google-api-client-android:+'
    implementation 'com.google.api-client:google-api-client-gson:+'
    implementation 'com.mcxiaoke.volley:library:1.0.18'
    implementation 'com.google.code.gson:gson:2.3'
}

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
        maven { url "https://maven.google.com" }
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.3'
    }
}

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://maven.google.com"
        }
    }
}

com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden

when i run this project the following error occurs

E/WatchMe: com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden { "code": 403, "errors": [ { "domain": "youtube.liveBroadcast", "message": "Stream is inactive", "reason": "errorStreamInactive", "extendedHelp": "https://developers.google.com/youtube/v3/live/docs/liveBroadcasts/transition" } ], "message": "Stream is inactive" } at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113) at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40) at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:444) at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1108) at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:542) at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:475) at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:592) at com.example.usb.util.YouTubeApi.startEvent(YouTubeApi.java:186) at com.example.usb.MainActivity$StartEventTask.doInBackground(MainActivity.java:394) at com.example.usb.MainActivity$StartEventTask.doInBackground(MainActivity.java:378) at android.os.AsyncTask$3.call(AsyncTask.java:378) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:919)

I saw this https://developers.google.com/youtube/v3/live/docs/liveBroadcasts/transition .

But , how can I solve this error?

Why this error occurs?

Main Activity ACCOUNT_KEY & App_NAME

Where to get the ACCOUNT_KEY & App_NAME from..?
I added these credentials:
ACCOUNT_KEY : tried with "firebase Web API Key" and "console.developers.google.com API Keys"
App_NAME : "console.developers.google.com Project name"

Created firebase and google-services.json added. Enabled APIs And Changed the client.json to my details.

Error: Missing android Permission GET_ACCOUNT. How to fix it

audio function not working

I got the app to stream to youtube, but only video is streamed, and no audio comes out. This seemed to be an issue in the Youtube WatchMe repository as well. I tried a couple of their solutions but they didn't seem to work. Do you know what the issue might be?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.