带有 android 后退按钮的 Videogular2 不会返回到应用程序
Videogular2 with android back button doesn't go back to the app
我正在使用 cordova 和 Angular 开发移动应用程序,我在该应用程序上有视频
我使用带有以下代码的 Videogular
<vg-player vg-responsive="true" (onPlayerReady)="onPlayerReady($event)">
<vg-overlay-play></vg-overlay-play>
<vg-buffering></vg-buffering>
<vg-scrub-bar>
<vg-scrub-bar-current-time></vg-scrub-bar-current-time>
<vg-scrub-bar-buffering-time></vg-scrub-bar-buffering-time>
</vg-scrub-bar>
<vg-controls>
<vg-play-pause></vg-play-pause>
<vg-time-display vgProperty="current" vgFormat="mm:ss"></vg-time-display>
<vg-scrub-bar style="pointer-events: none;"></vg-scrub-bar>
<vg-time-display vgProperty="left" vgFormat="mm:ss"></vg-time-display>
<vg-time-display vgProperty="total" vgFormat="mm:ss"></vg-time-display>
<vg-mute></vg-mute>
<vg-fullscreen></vg-fullscreen>
</vg-controls>
<video [vgMedia]="media" #media id="singleVideo" preload="auto" [poster]="urlbaseImages+programmeData.imagen" >
<source [src]="_domSanitizer.bypassSecurityTrustUrl(programmeData.url)" type="video/mp4">
</video>
</vg-player>
使用 android(我不知道 iOS 上是否也会发生这种情况)当我全屏打开视频时,如果我点击后退按钮,应用程序将关闭
有没有办法让后退按钮只关闭视频但留在应用程序上?
似乎是一个错误,我在这里找到了解决方法
https://github.com/apache/cordova-android/pull/823
我正在使用 cordova 和 Angular 开发移动应用程序,我在该应用程序上有视频
我使用带有以下代码的 Videogular
<vg-player vg-responsive="true" (onPlayerReady)="onPlayerReady($event)">
<vg-overlay-play></vg-overlay-play>
<vg-buffering></vg-buffering>
<vg-scrub-bar>
<vg-scrub-bar-current-time></vg-scrub-bar-current-time>
<vg-scrub-bar-buffering-time></vg-scrub-bar-buffering-time>
</vg-scrub-bar>
<vg-controls>
<vg-play-pause></vg-play-pause>
<vg-time-display vgProperty="current" vgFormat="mm:ss"></vg-time-display>
<vg-scrub-bar style="pointer-events: none;"></vg-scrub-bar>
<vg-time-display vgProperty="left" vgFormat="mm:ss"></vg-time-display>
<vg-time-display vgProperty="total" vgFormat="mm:ss"></vg-time-display>
<vg-mute></vg-mute>
<vg-fullscreen></vg-fullscreen>
</vg-controls>
<video [vgMedia]="media" #media id="singleVideo" preload="auto" [poster]="urlbaseImages+programmeData.imagen" >
<source [src]="_domSanitizer.bypassSecurityTrustUrl(programmeData.url)" type="video/mp4">
</video>
</vg-player>
使用 android(我不知道 iOS 上是否也会发生这种情况)当我全屏打开视频时,如果我点击后退按钮,应用程序将关闭
有没有办法让后退按钮只关闭视频但留在应用程序上?
似乎是一个错误,我在这里找到了解决方法 https://github.com/apache/cordova-android/pull/823