在我的活动中,我尝试启动一个特定的视频:
Intent intent = YouTubeStandalonePlayer.createVideoIntent(this, key, videoId);
startActivity(intent);
视频 id 是LT5YThKAsic
,但是在独立播放器活动出现之后(我可以在那里简单地看到我的视频),我得到了一个 Force Close 和以下堆栈跟踪,我认为这不是很有帮助。
FATAL EXCEPTION: main
java.lang.IllegalArgumentException
at com.google.android.youtube.core.utils.s.a(SourceFile:112)
at com.google.android.youtube.core.async.GDataRequestFactory.a(SourceFile:395)
at com.google.android.youtube.api.ab.a(SourceFile:141)
at com.google.android.youtube.core.async.a.d.a(SourceFile:101)
at com.google.android.youtube.core.async.a.d.a(SourceFile:73)
at com.google.android.youtube.core.player.Director.v(SourceFile:530)
at com.google.android.youtube.core.player.Director.a(SourceFile:398)
at com.google.android.youtube.core.player.Director.a(SourceFile:412)
at com.google.android.youtube.core.player.Director.a(SourceFile:425)
at com.google.android.youtube.api.ApiPlayer.a(SourceFile:195)
at com.google.android.youtube.api.service.a.d.run(SourceFile:167)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:132)
at android.app.ActivityThread.main(ActivityThread.java:4134)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:491)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
at dalvik.system.NativeStart.main(Native Method)
Force finishing activity com.google.android.youtube/.api.StandalonePlayerActivity
知道为什么会崩溃吗?