chore: add custom titles, description and chapters

This commit is contained in:
Konstantin Späth
2023-08-13 00:01:27 +02:00
parent fd2e396262
commit b225b0f800
6 changed files with 142 additions and 3 deletions

View File

@@ -13,11 +13,26 @@ export default function App() {
uri: 'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4',
// uri: 'https://sample.vodobox.net/skate_phantom_flex_4k/skate_phantom_flex_4k.m3u8',
// type: 'm3u8',
title: 'Custom Title',
subtitle: 'Custom Subtitle',
description: 'Custom Description',
}}
style={[styles.fullScreen, StyleSheet.absoluteFillObject]}
controls
fullscreen
resizeMode={'contain'}
chapters={[
{
title: 'Chapter 1',
startTime: 0.0,
endTime: 20.0,
},
{
title: 'Chapter 2',
startTime: 20.0,
endTime: 40.0,
},
]}
/>
</>
);