Skip to content

Commit c74c27d

Browse files
authoredJun 30, 2021
feat: add ended getter middleware (#7287)
One thing to note is that this won't affect the play toggle from changing to the replay button on ended because it only listens to the ended event. Otherwise, this works fine.
1 parent 8caeda9 commit c74c27d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/js/tech/middleware.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ export const allowedGetters = {
188188
played: 1,
189189
paused: 1,
190190
seekable: 1,
191-
volume: 1
191+
volume: 1,
192+
ended: 1
192193
};
193194

194195
/**

0 commit comments

Comments
 (0)
Please sign in to comment.