mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-28 03:13:51 +02:00
Merge branch 'main' into hls
This commit is contained in:
@@ -17,6 +17,7 @@ export default withMermaid({
|
||||
sitemap: {
|
||||
hostname: 'https://mediabunny.dev',
|
||||
},
|
||||
lastUpdated: true,
|
||||
head: [
|
||||
['link', { rel: 'icon', type: 'image/png', href: '/mediabunny-logo.png' }],
|
||||
['link', { rel: 'icon', type: 'image/svg+xml', href: '/mediabunny-logo.svg' }],
|
||||
|
||||
@@ -97,9 +97,13 @@ await sink.getKeyPacket(5); // => EncodedPacket | null
|
||||
|
||||
When retrieving a packet using a timestamp, the last packet (in [presentation order](#decode-vs-presentation-order)) with a timestamp less than or equal to the search timestamp will be returned. The methods return `null` if there exists no such packet.
|
||||
|
||||
There is a special method for retrieving the first packet (in [decode order](#decode-vs-presentation-order)):
|
||||
There are special methods for retrieving the first packet (in [decode order](#decode-vs-presentation-order)):
|
||||
```ts
|
||||
await sink.getFirstPacket(); // => EncodedPacket | null
|
||||
|
||||
// The first packet is typically a key frame, but this is not required.
|
||||
// This method returns the first key frame:
|
||||
await sink.getFirstKeyPacket(); // => EncodedPacket | null
|
||||
```
|
||||
The last packet (in [presentation order](#decode-vs-presentation-order)) can be retrieved like so:
|
||||
```ts
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
User-agent: *
|
||||
Allow: /
|
||||
|
||||
Sitemap: https://mediabunny.dev/sitemap.xml
|
||||
Reference in New Issue
Block a user