Bug 160655

Summary: Video tag should not trigger "ended" after setting currentTime to the end of the video.
Product: WebKit Reporter: Sam Joch <samuel>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: doremylover123, eric.carlson, jeremyj-wk, jer.noble
Priority: P2    
Version: Safari 9   
Hardware: iPhone / iPad   
OS: iOS 9.3   
Attachments:
Description Flags
"ended" issue none

Description Sam Joch 2016-08-08 03:47:19 PDT
Created attachment 285562 [details]
"ended" issue

## Use case

1. video.currentTime = video.duration
2. video triggered "ended"
3. video.currentTime = 10
4. video triggered "ended" again!

This is easily reproductible using a MP4 video,
it also happens sometime using HLS_V1 or HLS_V5 stream.

## Expectation

The video should not trigger "ended" after setting
currentTime to the end of the video.

## Note

You can find in attachment a way to reproduce this issue.

Thanks