Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
60b4c0eb
Commit
60b4c0eb
authored
Jul 15, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 视频转码相关
parent
a5d2ee57
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
3 deletions
+16
-3
YHSearchInfomationVC.swift
...axy/Classes/Modules/Home(首页)/C/YHSearchInfomationVC.swift
+5
-1
YHHomeListModel.swift
...y/galaxy/Classes/Modules/Home(首页)/M/YHHomeListModel.swift
+2
-0
YHHomeCollectionViewCell.swift
...Classes/Modules/Home(首页)/V/YHHomeCollectionViewCell.swift
+5
-1
YHVideoPlayerVC.swift
galaxy/galaxy/Classes/Tools/VideoPlay/YHVideoPlayerVC.swift
+4
-1
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHSearchInfomationVC.swift
View file @
60b4c0eb
...
...
@@ -381,7 +381,11 @@ extension YHSearchInfomationVC: UITableViewDelegate, UITableViewDataSource {
if
model
.
type
==
1
{
// 视频
if
!
model
.
media_url
.
isEmpty
,
let
url
=
URL
(
string
:
model
.
media_url
)
{
let
vc
=
YHVideoPlayerVC
()
vc
.
url
=
model
.
media_url
if
!
model
.
media_transcode_url
.
isEmpty
{
vc
.
url
=
model
.
media_transcode_url
}
else
{
vc
.
url
=
model
.
media_url
}
vc
.
id
=
model
.
id
self
.
navigationController
?
.
pushViewController
(
vc
)
}
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/M/YHHomeListModel.swift
View file @
60b4c0eb
...
...
@@ -23,6 +23,8 @@ class YHHomeListModel: YHBaseModel {
var
type
:
Int
=
0
//文章类型 '文章类型 1视频 2图文 3图片',
var
is_like
:
Bool
=
false
var
media_url
:
String
=
""
var
media_transcode_url
:
String
=
""
var
like_count
:
Int
=
0
//点赞梳理
var
img_url_compress
:
String
=
""
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHHomeCollectionViewCell.swift
View file @
60b4c0eb
...
...
@@ -95,7 +95,11 @@ extension YHHomeCollectionViewCell {
printLog
(
url
)
let
vc
=
YHVideoPlayerVC
()
vc
.
url
=
listModel
.
media_url
if
!
listModel
.
media_transcode_url
.
isEmpty
{
vc
.
url
=
listModel
.
media_transcode_url
}
else
{
vc
.
url
=
listModel
.
media_url
}
vc
.
id
=
listModel
.
id
vc
.
updateBlock
=
{
[
weak
self
]
item
in
...
...
galaxy/galaxy/Classes/Tools/VideoPlay/YHVideoPlayerVC.swift
View file @
60b4c0eb
...
...
@@ -291,7 +291,10 @@ extension YHVideoPlayerVC {
}
let
title
:
String
=
self
.
viewModel
.
mainModel
?
.
title
??
""
let
link
:
String
=
self
.
viewModel
.
mainModel
?
.
media_url
??
""
var
link
:
String
=
""
if
!
url
.
isEmpty
{
link
=
url
}
let
thumbUrl
=
self
.
viewModel
.
mainModel
?
.
img_url
??
""
if
thumbUrl
.
isEmpty
{
YHHUD
.
flash
(
message
:
"分享失败"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment