# Skip Intro Button
ByteArk Player สามารถเพิ่มปุ่ม Skip Intro เข้าไปใน video player เพื่อข้าม intro ของรายการตอนเริ่มไปยังเนื้อหาของรายการได้เลย โดยระบุ skipIntroButton ใน options ดังตัวอย่าง
# การแสดงผล Skip Intro Button

# การปรับตั้งค่า options
| Name | Type | Required | Description |
|---|---|---|---|
| skipIntroButton | Object | No | |
| skipIntroButton.time | Number | Yes | เวลาที่ต้องการให้ข้ามไปเล่นเมื่อกดปุ่ม Skip Intro (หน่วยเป็นวินาที) |
# Methods
| Name | Parameters | Return | Description |
|---|---|---|---|
| player.skipIntroTime(time) | time | Number | เปลี่ยนเวลาที่ต้องการให้ข้ามไปเล่นเมื่อกดปุ่ม Skip Intro (หน่วยเป็นวินาที) |
# ตัวอย่างซอร์สโค้ด
<!doctype html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<div id="video-player"></div>
<script src="https://byteark-sdk.cdn.byteark.com/player/v2/byteark-player.min.js"></script>
<script>
var player = bytearkPlayer('video-player', {
fluid: true,
poster: '/assets/samples/player/images/poster-big-buck-bunny.jpg',
sources: [{
title: 'Big Buck Bunny',
src: 'https://byteark-playertzxedwv.stream-playlist.byteark.com/streams/TZyZheqEJUwC/playlist.m3u8',
type: 'application/x-mpegURL'
}],
skipIntroButton: {
time: 100
}
});
</script>
</body>
</html>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24