哔哩哔哩, 暂停的时候快进 不要重新继续播放视频. #4979
HornyPrivateGamer
started this conversation in
功能建议 / Ideas
Replies: 4 comments 3 replies
-
Ha lo Anyone ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
脚本调的也是 b 站提供的播放器 API (#4341) 附 b 站播放器 t.prototype.seek = function (e, t) {
return (0, n.mG)(this, void 0, void 0, function () {
var r,
i,
s,
u,
c,
l,
d,
f,
p,
h,
y = this
return (0, n.Jh)(this, function (m) {
switch (m.label) {
case 0:
if (
((r = this.rootPlayer.disabled.seek || this.rootPlayer.hasFeature('noSeek')),
this.log.i(
'[seek]',
ee(
ve ||
(ve = (0, n.cy)(
['params:', ',alt:', ',disabled:', ''],
['params:', ',alt:', ',disabled:', ''],
)),
e,
t,
r,
),
),
(i = (null == t ? void 0 : t.initiator) || null),
(u = (s =
'number' == typeof e
? {
value: e,
}
: e).isOffset
? this.getCurrentTime() + s.value
: s.value),
(c = (0, C.Z)(u, 0, this.getDuration() - 0.1)),
this.patchAdvStore.hasValidAdv)
) {
if (
((l = (0, C.Z)(e, 0, this.getDuration() - 0.1)),
(d = this.patchAdvStore.getSeekDecision(l)),
(f = d.isSameEp),
(p = d.t),
(h = d.index),
!f)
)
return (
this.patchAdvStore.setState({
index: h,
}),
[2, this.patchAdvStore.patchSwitch(p)]
)
c = p
}
if (r) throw new Error('Seek Disabled')
if (isNaN(c)) throw new Error('The provided double value is non-finite')
return (
this.seekDeferred && (this.seekDeferred = null),
this.freeStore.eventAtom.setActionCaller('iSeek', i),
(this.seekDeferred = this.rootPlayer.addDispose(new se.B())),
this.mediaStore.setState({
seekLoad: !0,
}),
this.rootPlayer.emit(
a.t.Player_ProgressBar_Change,
new CustomEvent(a.t.Player_ProgressBar_Change, {
detail: {
progressTime: c,
initiator: i,
},
}),
),
this.mediaStore.internalSeek(c),
this.dp.seekAction && this.dp.seekAction(),
(this.dp.seekAction = (0, o.gx)(
function () {
return !y.mediaStore.state.seeking && !y.mediaStore.video.seeking
},
function () {
return y.seekDeferred.resolve()
},
)),
[4, this.seekDeferred.promise]
)
case 1:
return m.sent(), null != s.autoplay ? [2, s.autoplay ? this.play(t) : this.pause(t)] : [2]
}
})
})
} |
Beta Was this translation helpful? Give feedback.
1 reply
-
@the1812 还是老样子 如果楼主同意做这个功能的话,我立刻可以给100, 事成之后再给150 |
Beta Was this translation helpful? Give feedback.
1 reply
-
非常赞同,早就想说了. 全世界都是暂停的时候快进视频,不会播放就B在搞特殊 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
就感觉看的时候想暂停然后想快进下,总是重新开始播放,能不能做得像 YouTube 一样
现在基本上所有的播放器都是暂停后,如果快进的话视频是不会重新开始播放的, MPV, Youtube.
谢谢,就这样
而且对的,我就是24号那个捐钱的那个人 :)
如果楼主同意做这个功能的话,我立刻可以给100, 事成之后再给150
@the1812
Beta Was this translation helpful? Give feedback.
All reactions