1

Ich muss Live-Streaming von Youtube-Kanal in meine Android-App spielen.Android | Youtube Live-Streaming

Hier ist mein RTMP Url - rtmp://a.rtmp.youtube.com/live2 Und ich habe auch Stream Key Kann mir jemand bitte helfen oder mich zu diesem Thema zu führen.

Es wäre wirklich toll, wenn mir jemand vorschlagen würde, wie ich das erreichen kann.

EDIT

ich Youtube in meiner App integriert haben, aber wenn ich eine Live-Kanal spielen, dann zeigt er mir unter logs -

E/YouTubeAndroidPlayerAPI: fmt.noneavailable 
                  ouq: Video not supported/available 
                   at oun.a(SourceFile:217) 
                   at oqa.a(SourceFile:384) 
                   at oqa.a(SourceFile:710) 
                   at oqg.a(SourceFile:1143) 
                   at onp.onPostExecute(SourceFile:2102) 
                   at android.os.AsyncTask.finish(AsyncTask.java:636) 
                   at android.os.AsyncTask.access$500(AsyncTask.java:177) 
                   at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:653) 
                   at android.os.Handler.dispatchMessage(Handler.java:102) 
                   at android.os.Looper.loop(Looper.java:135) 
                   at android.app.ActivityThread.main(ActivityThread.java:5930) 
                   at java.lang.reflect.Method.invoke(Native Method) 
                   at java.lang.reflect.Method.invoke(Method.java:372) 
                   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405) 
                   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200) 

Antwort

0

ich dies durch folgenden Code getan haben -

 //Opens in the StandAlonePlayer, defaults to fullscreen 
     startActivity(YouTubeStandalonePlayer.createVideoIntent(SplashScreen.this, 
       DEVELOPER_KEY, VIDEO_ID));