问题描述
我正在尝试使用https://www.npmjs.com/package/ngx-plyr配置视频播放器。但是我需要在设置控件中自定义速度。因此,根据文档,我尝试了此操作-
data-plyr-config="{ selected: 1,options: [0.5,0.75,1,1.25]}"
:-
<div plyr plyrTitle="Video 1" data-plyr-config="{ selected: 1,1.25]}" [plyrDriver]="hlsDriver" [plyrPlaysInline]="true" [plyrSources]="videoSources" [plyrPoster]="poster" [plyrOptions]="options" (plyrEnterFullScreen)="fullscreen($event)" (plyrExitFullScreen)="fullscreen($event)" (plyrInit)="player = $event" (plyrPlay)="played($event)" (plyrQualityChange)="onQualityChange()">
但是它不起作用。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)