Skip to content

Commit c5b6406

Browse files
committed
发布修复window有时候投递失败的问题
1 parent ae9cf41 commit c5b6406

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

easyToTV/myModel/投屏模块.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"github.com/alexballas/go2tv/soapcalls"
1010
"github.com/alexballas/go2tv/soapcalls/utils"
1111
"os"
12-
"path"
1312
"path/filepath"
1413
"sort"
1514
"strconv"
@@ -208,9 +207,10 @@ func (this *E投屏模块) E设置播放进度(cur int) error {
208207

209208
func (this *E投屏模块) E投递视频文件(设备URL string, 文件路径 string, 字幕文件路径 string) error {
210209
//获取文件名
211-
fileName := path.Base(文件路径)
210+
fileName := filepath.Base(文件路径)
211+
212212
播放文件URL := this.FileServer.E写文件名与路径(fileName, 文件路径)
213-
fileName = path.Base(字幕文件路径)
213+
fileName = filepath.Base(字幕文件路径)
214214
字幕文件URL := this.FileServer.E写文件名与路径(fileName, 字幕文件路径)
215215

216216
// 获取设备的 UPnP DLNA 媒体渲染器信息

0 commit comments

Comments
 (0)