VideoResourceFormat
class VideoResourceFormat
Implements: IResourceFormat
Package: dev.joid.lib.resource.format.impl · Module: core · Source: VideoResourceFormat.java
The built-in format of MP4, Matroska (MKV, WebM) and AVI files, played as videos with FFmpeg.
Description
Section titled “Description”A video needs the FFmpeg natives, which JOID downloads on the first use (VideoNatives).
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
| VideoResourceFormat() | Creates the format. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
boolean | supports(byte[] header) | If true, header is an MP4, Matroska or AVI file. |
IResourceDecoder | decoder(Asset asset, byte[] header) | Returns a VideoResourceDecoder that plays the file. |
Creation details
Section titled “Creation details”VideoResourceFormat
Section titled “VideoResourceFormat”VideoResourceFormat()
Creates the format.
Method details
Section titled “Method details”supports
Section titled “supports”boolean supports(byte[] header)
If true, header is an MP4, Matroska or AVI file.
decoder
Section titled “decoder”IResourceDecoder decoder(Asset asset, byte[] header)
Returns a VideoResourceDecoder that plays the file.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
