Closed Bug 873959 Opened 11 years ago Closed 6 years ago

Create an API for generating thumbnails for HTML videos

Categories

(Core :: Audio/Video: Playback, defect)

defect
Not set
normal

Tracking

()

RESOLVED INACTIVE

People

(Reporter: cajbir, Unassigned)

References

Details

We should provide an API specific for generating thumbnail/preview images for videos. 

On Firefox OS we have the issue that thumbnail generation uses the existing API's to copying a video frame to a canvas then obtaining the image from that canvas.

This has the following issues:

1) The video defaults to using the hardware decoder which cannot get access to the pixel data on some devices (See bug 866028 comment 10).
2) The code to implement creating the video element, seeking to a certain point and obtaining the data is relatively complex, having to deal with a number of events and APIs.
3) The decoding will load the media resource and decode audio as well as video unnecessarily.

After some discussion (see bug 866028 comment 16) it was considered to create an API specific for video thumbnail generation. It can be optimized to not use the hardware decoder and find the largest keyframe for the thumbnail image (or some other specific algorithm).
Blocks: 866028
Component: Audio/Video → Audio/Video: Playback
Mass closing do to inactivity.
Feel free to re-open if still needed.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.