-
-
Notifications
You must be signed in to change notification settings - Fork 696
/
Copy pathTools.swift
29 lines (24 loc) · 1.17 KB
/
Tools.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
// Tools.swift
// Example
//
// Created by Silence on 2023/5/31.
//
import UIKit
import HXPhotoPicker
struct Tools {
static var musicInfos: [VideoEditorMusicInfo] {
var musics: [VideoEditorMusicInfo] = []
// let lyricUrl1 = Bundle.main.url(forResource: "天外来物", withExtension: nil)!
// let lrc1 = try! String(contentsOfFile: lyricUrl1.path) // swiftlint:disable:this force_try
// let music1 = VideoEditorMusicInfo(audioURL: .network(url: URL(string: "http://tsnrhapp.oss-cn-hangzhou.aliyuncs.com/chartle/%E5%A4%A9%E5%A4%96%E6%9D%A5%E7%89%A9.mp3")!), // swiftlint:disable:this line_length
// lrc: lrc1)
// musics.append(music1)
let lyricUrl7 = Bundle.main.url(forResource: "世间美好与你环环相扣", withExtension: nil)!
let lrc7 = try! String(contentsOfFile: lyricUrl7.path) // swiftlint:disable:this force_try
let music7 = VideoEditorMusicInfo.init(audioURL: .bundle(resource: "世间美好与你环环相扣", type: "mp3"),
lrc: lrc7)
musics.append(music7)
return musics
}
}