VideoUtil
Variables
| Name | Description | Type | Default | Variable Type |
|---|
| EXT_MP4 | นามสกุลของไฟล์ vdo | String | “.mp4” | const val |
| REQUEST_CODE_VDOCAM | code สำหรับใช้เพื่อดักตอนเช็ค Request code ใน onAcivityResult | Int | 10001 | var |
Method Overview
| Name | Description | Return |
|---|
| createVdoIntent() | เป็นการสร้าง Intent ของ Video | Intent |
Method Details
fun createVdoIntent(isHightVdoQuality : Boolean? = null , vdoDurationLimit : Int? = null , sizeLimit : Long? = null) : Intent
เป็นการสร้าง Intent ของ Video โดยสามารถกำหนดค่าเบื้องต้นได้ ทั้งความชัดของ Video , ความยาวอง Video , ขนาดไฟล์ที่ต้องการ
Parameters
| Name | Description | Type | Default |
|---|
| isHightVdoQuality | ความชัดของภาพ true คือ สูงสุด , false คือ ต่ำสุด , null คือ ไม่กำหนด | Boolean | null |
| vdoDurationLimit | ระยะเวลาของ Video เป็นหน่วย วินาที ถ้า null คือไม่กำหนด | Int | null |
| sizeLimit | ขนาดของไฟล์ หน่วย MB ถ้า null คือไม่กำหนด เช่น 1045876 ก็คือ 110241024 | Long | null |
Returns
| Type | Description |
|---|
| Intent | Return Intent ของ Video ที่มีการกำหนดค่าเบื้องต้นตาม parameter ด้านบน และสามารถไป กำหนดค่าเพิ่มเติมต่อจากนี้ได้ โดยใช้ Intent อันนี้ |