我正在使用nativescript-videoplayer插件,效果很好。但是,当我按控件暂停或跳过视频,然后向下滚动时,控件会随着滚动而浮动
我尝试公开“ hideMediaControls”并以滚动方式(总值)调用它
<GridLayout *ngIf="selectedTabview == 0" row="2" width="100%"
backgroundColor="white">
<ListView #listview [items]="items" separatorColor="transparent">
<ng-template let-item="item">
<StackLayout >
<GridLayout rows="auto, auto, auto, auto, auto" columns="64, *"
class="post-content">
<Image row="0" col="0" rowSpan="2" src="~/app/images/br.jpg"
stretch="aspectFill" class="postImageSmall" loadMode="async"></Image>
<Label row="0" col="1" class="postAuthorName" [text]="item.name"></Label>
<Label row="1" col="1" class="postDateSmall" [text]="item.price"></Label>
<WrapLayout row="2" col="0" colSpan="2">
<Label class="postTitle" textWrap="true"
[text]="item.categor"></Label>
<VideoPlayer row="2" col="0" colSpan="2" height="380" stretch="aspectFill"
src="https://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"
autoplay="true" controls="true" fill="true"></VideoPlayer>
</WrapLayout>
</GridLayout>
</StackLayout>
</ng-template>
</ListView>
</GridLayout>
没有错误 我希望Videoplayer控件能够坚持播放视频