|
@@ -96,9 +96,11 @@ class AudioWareFullScreenScene extends scene {
|
|
|
// 监听onended事件
|
|
|
let audioDom = document.getElementById('courseware-audio');
|
|
|
if (audioDom) {
|
|
|
- audioDom.onended = function () {
|
|
|
+ audioDom.addEventListener('ended', function () {
|
|
|
+ TVUtil.Toast.show('播放结束', 1500);
|
|
|
document.getElementById('audio-play').classList.add('paused');
|
|
|
- }
|
|
|
+ audioDom.currentTime = 0;
|
|
|
+ }, false);
|
|
|
}
|
|
|
// 指定光标位置
|
|
|
if (focusTarget && this.moye.root.getWidgetById(focusTarget)) {
|