Download the PHP package githen/laravel-tencent-vod without Composer

On this page you can find all versions of the php package githen/laravel-tencent-vod. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-tencent-vod

laravel-TencentVod

基于laravel的腾讯点播上传

image image image

安装

配置文件说明

生成vod.php上传配置文件

初始化视频上传实例

在html中引入JS文件

实例化上传类

参数 名称 说明 备注
dom 上传文件对应的<input type=file>标识 必填
config 配置文件中的标识 必填
signature 获取上传签名的方法 非必填,默认请求:jiaoyu/tencent/vod/sign/{config}
maxFilesize 文件大小 MB
acceptedFiles 允许上传文件后缀(.jpg,.png) 默认为.mp4
chunkSize 分片大小 单位:MB,默认2MB
maxFiles 最多上传文件数 非必填,默认:1
progressInterval 进程回调间隔 非必填,默认:200ms
replace MaxFiles为1时,是否直接替换
cover 上传的封面图 File资源对象 非必填
expireTime 视频临时存放时长 非必填,默认:7200 单位:秒 直接存放,值设为 undefined

回调参数说明

type action 说明
media progress 媒体文件上传进度
media upload 媒体文件上传成功时
cover progress 封面文件上传进度
cover upload 封面上传成功时
done done 媒体文件上传结果
files error 上传报错
files remove 超过视频限制数量

自动注入的路由

请求方法 请求地址 参数说明 备注
GET jiaoyu/tencent/vod/sign/{param} param(string):使用的配置中的标识 获取上传签名
GET jiaoyu/tencent/vod/modify/{param} param(string):使用的配置中的标识
FileId:腾讯视频ID
ExpireTime:到期时间戳
修改视频的时长

错误码

错误码 说明 备注
1001 签名请求报错
1002 修改视频时长报错

支持方法

已封装的Provider提供的方法,

调用方法 ModifyMediaInfo($label, $params = [])

修改视频基本信息

参数 类型 说明
FileId 必填:String 媒体文件唯一标识。
Name String 媒体文件名称,最长 64 个字符。
Description String 媒体文件描述,最长 128 个字符。
ExpireTime String 媒体文件过期时间,采用 ISO 日期格式。填“9999-12-31T23:59:59Z”表示永不过期。
CoverData String 视频封面图片文件(如 jpeg, png 等)进行 Base64 编码后的字符串,仅支持 gif、jpeg、png 三种图片格式。

调用方法 getSignature($label)

获取上传签名

调用方法 ProcessMediaByProcedure($label, $params = [])

对视频执行转码

参数 类型 说明
FileId 必填:String 媒体文件唯一标识。
ProcedureName 必填:String 任务流模板名字。
TasksPriority Integer 任务流的优先级,数值越大优先级越高,取值范围是-10到10,不填代表0。
TasksNotifyMode String 任务流状态变更通知模式,可取值有 Finish,Change 和 None,不填代表 Finish。
SessionContext String 来源上下文,用于透传用户请求信息,任务流状态变更回调将返回该字段值,最长 1000 个字符。
SessionId String 用于去重的识别码,如果三天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。

调用方法 DescribeTaskDetail($label, $params = [])

获取任务详情

参数 类型 说明
TaskId 必填:String 任务ID

调用方法 send($label, $action, $params = [])

发送请求


All versions of laravel-tencent-vod with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2|^8.0
illuminate/support Version ~6.20|^8.0|^11.0|^12.0
guzzlehttp/guzzle Version ~6.0|^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package githen/laravel-tencent-vod contains the following files

Loading the files please wait ...