[DAY13]影片及音档

#影片及音档下载过程极慢所以建议少用

VideoSendMessage
video_message = VideoSendMessage(
    original_content_url='https://example.com/original.mp4'必须是能够下载的影片,
    preview_image_url='https://example.com/preview.jpg'影片下载前的预览图
)

type
String Required
影片跟图像很像但必须适用mp4且大小不能超过200MB
video
originalContentUrl
String Required
URL of video file (Max character limit: 2000)
HTTPS over TLS 1.2 or later
mp4
Max file size: 200 MB
URL码
预览图用於载入成功前看的
previewImageUrl
String Required
URL of preview image (Max character limit: 2000)
HTTPS over TLS 1.2 or later
JPEG or PNG
Max file size: 1 MB
用於影片看完後可以进行一些动作,但我在LINE官网没找到示范所以这里就先没了,未来找到再补上
trackingId
String Optional
ID used to identify the video when Video viewing complete event occurs. If you send a video message with trackingId added, the video viewing complete event occurs when the user finishes watching the video.
You can use the same ID in multiple messages.
Max character limit: 100
Supported character types: Half-width alphanumeric characters (a-z, A-Z, 0-9) and symbols (-.=,+*()%$&;:@{}!?<>[])

AudioSendMessage

audio_message = AudioSendMessage(
    original_content_url='https://example.com/original.m4a',
    duration=240000
)

Audio message
type
String Required
audio
与影片类似但只能用m4a档
originalContentUrl
String Required
URL of audio file (Max character limit: 2000)
HTTPS over TLS 1.2 or later
m4a
Max file size: 200 MB
音档执行秒数
duration
Number Required
Length of audio file (milliseconds)
https://ithelp.ithome.com.tw/upload/images/20210927/20140159uf4qfp7jZg.png


<<:  Day 13:100. same tree

>>:  day12 轻松一下,用 coroutine 接个 restful api

[DAY 19] 卡多利亚良食故事馆

卡多利亚良食故事馆 地点:台南市後壁区42-27号 时间:9:00~17:00 对於一个研替来说 最...

【在 iOS 开发路上的大小事-Day12】好用的 CocoaPods 套件-IQKeyboardManagerSwift

前情提要 在开发 App 的时候,有遇过键盘开启的时候,TextField 却被挡住无法输入的情况吗...

从零开始学游戏开发:建立得分条 Part1.开始

这是 Roblox 从零开始系列,使用者介面章节的第一个单元,你将开始学习如何设计出一个精美的得分条...

Golang 转生到web世界 - 档案操作

Golang 档案操作 写web多少还是会遇到除了表单外,就是跟档案有关的行为了,这部分我自己都是习...

JavaScript Day 20. BOM 与 DOM

前端网页三大要素:JavaScript、HTML、CSS,HTML 负责整体资料与架构,CSS 负责...