We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae9cf41 commit c5b6406Copy full SHA for c5b6406
easyToTV/myModel/投屏模块.go
@@ -9,7 +9,6 @@ import (
9
"github.com/alexballas/go2tv/soapcalls"
10
"github.com/alexballas/go2tv/soapcalls/utils"
11
"os"
12
- "path"
13
"path/filepath"
14
"sort"
15
"strconv"
@@ -208,9 +207,10 @@ func (this *E投屏模块) E设置播放进度(cur int) error {
208
207
209
func (this *E投屏模块) E投递视频文件(设备URL string, 文件路径 string, 字幕文件路径 string) error {
210
//获取文件名
211
- fileName := path.Base(文件路径)
+ fileName := filepath.Base(文件路径)
+
212
播放文件URL := this.FileServer.E写文件名与路径(fileName, 文件路径)
213
- fileName = path.Base(字幕文件路径)
+ fileName = filepath.Base(字幕文件路径)
214
字幕文件URL := this.FileServer.E写文件名与路径(fileName, 字幕文件路径)
215
216
// 获取设备的 UPnP DLNA 媒体渲染器信息
0 commit comments