MCPcopy Create free account
hub / github.com/astercloud/aster / ConvertVideos

Function ConvertVideos

pkg/media/processor.go:133–143  ·  view source on GitHub ↗

ConvertVideos 转换视频列表

(sources []string)

Source from the content-addressed store, hash-verified

131
132// ConvertVideos 转换视频列表
133func ConvertVideos(sources []string) ([]*Video, error) {
134 videos := make([]*Video, 0, len(sources))
135 for _, src := range sources {
136 video, err := NewVideo(src)
137 if err != nil {
138 return nil, err
139 }
140 videos = append(videos, video)
141 }
142 return videos, nil
143}
144
145// ConvertAudios 转换音频列表
146func ConvertAudios(sources []string) ([]*Audio, error) {

Callers

nothing calls this directly

Calls 1

NewVideoFunction · 0.85

Tested by

no test coverage detected