what the advantage or disadvantages if i used youtube-API or present the video in a webview

后端 未结 1 1768
后悔当初
后悔当初 2021-01-27 18:13

In YouTube Player API when I press fullscreen it repeats the video from the beginning ,any help to solve this problem

Also when I lock my phone (sleep mode) it stop pla

相关标签:
1条回答
  • 2021-01-27 18:20
    • If you add fullscreen, orientation flags to your AndroidManifest it won't. Basically by default, it recreates the activity, hence restarts.

      <activity
          android:name="MyActivity"
          android:label="@string/app_name"
          android:configChanges="orientation|screenSize" >
      
    • YouTube prohibits running videos in sleep mode, or in background. It's clear in YouTube TOS. Hence there won't be any APIs and doing workarounds will be against the TOS.

    0 讨论(0)
提交回复
热议问题