{"id":2642,"date":"2025-11-11T15:18:05","date_gmt":"2025-11-11T08:18:05","guid":{"rendered":"https:\/\/portal-atlasx.cdg.co.th\/home\/?post_type=docs&#038;p=2642"},"modified":"2025-11-11T15:18:05","modified_gmt":"2025-11-11T08:18:05","slug":"video","status":"publish","type":"docs","link":"https:\/\/portal-atlasx.cdg.co.th\/home\/docs\/android\/library\/video\/","title":{"rendered":"Video"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\" id=\"videoutil\">VideoUtil<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"variables\">Variables<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Default<\/th><th>Variable Type<\/th><\/tr><\/thead><tbody><tr><td>EXT_MP4<\/td><td>\u0e19\u0e32\u0e21\u0e2a\u0e01\u0e38\u0e25\u0e02\u0e2d\u0e07\u0e44\u0e1f\u0e25\u0e4c vdo<\/td><td>String<\/td><td>&#8220;.mp4&#8221;<\/td><td>const val<\/td><\/tr><tr><td>REQUEST_CODE_VDOCAM<\/td><td>code \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e43\u0e0a\u0e49\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e14\u0e31\u0e01\u0e15\u0e2d\u0e19\u0e40\u0e0a\u0e47\u0e04 Request code \u0e43\u0e19 onAcivityResult<\/td><td>Int<\/td><td>10001<\/td><td>var<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"method-overview\">Method Overview<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Name<\/th><th>Description<\/th><th>Return<\/th><\/tr><\/thead><tbody><tr><td>createVdoIntent()<\/td><td>\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Intent \u0e02\u0e2d\u0e07 Video<\/td><td>Intent<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"method-details\">Method Details<\/h2>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>fun createVdoIntent(isHightVdoQuality : Boolean? = null , vdoDurationLimit : Int? = null , sizeLimit : Long? = null) : Intent<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">fun<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">createVdoIntent<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #001080\">isHightVdoQuality<\/span><span style=\"color: #000000\"> : <\/span><span style=\"color: #001080\">Boolean<\/span><span style=\"color: #000000\">? = <\/span><span style=\"color: #0000FF\">null<\/span><span style=\"color: #000000\"> , <\/span><span style=\"color: #001080\">vdoDurationLimit<\/span><span style=\"color: #000000\"> : <\/span><span style=\"color: #001080\">Int<\/span><span style=\"color: #000000\">? = <\/span><span style=\"color: #0000FF\">null<\/span><span style=\"color: #000000\"> , <\/span><span style=\"color: #001080\">sizeLimit<\/span><span style=\"color: #000000\"> : <\/span><span style=\"color: #001080\">Long<\/span><span style=\"color: #000000\">? = <\/span><span style=\"color: #0000FF\">null<\/span><span style=\"color: #000000\">) : <\/span><span style=\"color: #001080\">Intent<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Intent \u0e02\u0e2d\u0e07 Video \u0e42\u0e14\u0e22\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e04\u0e48\u0e32\u0e40\u0e1a\u0e37\u0e49\u0e2d\u0e07\u0e15\u0e49\u0e19\u0e44\u0e14\u0e49 \u0e17\u0e31\u0e49\u0e07\u0e04\u0e27\u0e32\u0e21\u0e0a\u0e31\u0e14\u0e02\u0e2d\u0e07 Video , \u0e04\u0e27\u0e32\u0e21\u0e22\u0e32\u0e27\u0e2d\u0e07 Video , \u0e02\u0e19\u0e32\u0e14\u0e44\u0e1f\u0e25\u0e4c\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"parameters\">Parameters<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Name<\/th><th>Description<\/th><th>Type<\/th><th>Default<\/th><\/tr><\/thead><tbody><tr><td>isHightVdoQuality<\/td><td>\u0e04\u0e27\u0e32\u0e21\u0e0a\u0e31\u0e14\u0e02\u0e2d\u0e07\u0e20\u0e32\u0e1e true \u0e04\u0e37\u0e2d \u0e2a\u0e39\u0e07\u0e2a\u0e38\u0e14 , false \u0e04\u0e37\u0e2d \u0e15\u0e48\u0e33\u0e2a\u0e38\u0e14 , null \u0e04\u0e37\u0e2d \u0e44\u0e21\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14<\/td><td>Boolean<\/td><td>null<\/td><\/tr><tr><td>vdoDurationLimit<\/td><td>\u0e23\u0e30\u0e22\u0e30\u0e40\u0e27\u0e25\u0e32\u0e02\u0e2d\u0e07 Video \u0e40\u0e1b\u0e47\u0e19\u0e2b\u0e19\u0e48\u0e27\u0e22 \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35 \u0e16\u0e49\u0e32 null \u0e04\u0e37\u0e2d\u0e44\u0e21\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14<\/td><td>Int<\/td><td>null<\/td><\/tr><tr><td>sizeLimit<\/td><td>\u0e02\u0e19\u0e32\u0e14\u0e02\u0e2d\u0e07\u0e44\u0e1f\u0e25\u0e4c \u0e2b\u0e19\u0e48\u0e27\u0e22 MB \u0e16\u0e49\u0e32 null \u0e04\u0e37\u0e2d\u0e44\u0e21\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14 \u0e40\u0e0a\u0e48\u0e19 1045876 \u0e01\u0e47\u0e04\u0e37\u0e2d 1<em>1024<\/em>1024<\/td><td>Long<\/td><td>null<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"returns\">Returns<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table style=\"border-width:1px\"><thead><tr><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>Intent<\/td><td>Return Intent \u0e02\u0e2d\u0e07 Video \u0e17\u0e35\u0e48\u0e21\u0e35\u0e01\u0e32\u0e23\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e04\u0e48\u0e32\u0e40\u0e1a\u0e37\u0e49\u0e2d\u0e07\u0e15\u0e49\u0e19\u0e15\u0e32\u0e21 parameter \u0e14\u0e49\u0e32\u0e19\u0e1a\u0e19 \u0e41\u0e25\u0e30\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e44\u0e1b \u0e01\u0e33\u0e2b\u0e19\u0e14\u0e04\u0e48\u0e32\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21\u0e15\u0e48\u0e2d\u0e08\u0e32\u0e01\u0e19\u0e35\u0e49\u0e44\u0e14\u0e49 \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49 Intent \u0e2d\u0e31\u0e19\u0e19\u0e35\u0e49<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"featured_media":0,"parent":2531,"menu_order":14,"comment_status":"closed","ping_status":"closed","template":"","meta":{"nav_title":"","positive":"","negative":"","footnotes":""},"docs_category":[],"class_list":["post-2642","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/2642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/comments?post=2642"}],"version-history":[{"count":2,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/2642\/revisions"}],"predecessor-version":[{"id":2734,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/2642\/revisions\/2734"}],"up":[{"embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/2531"}],"wp:attachment":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/media?parent=2642"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs_category?post=2642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}