我正在使用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上是否也会发生这种情况),当我以全屏模式打开视频时,然后如果点击后退按钮,应用程序将关闭
有没有一种方法可以使后退按钮仅关闭视频但保留在应用程序上?