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
fe1ce698
Commit
fe1ce698
authored
Dec 28, 2024
by
DavidHuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
点播分享 进入app 后就打开点播界面
parent
280a718c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
2 deletions
+43
-2
AppDelegate.swift
galaxy/galaxy/AppDelegate.swift
+18
-1
YHPlayerManager.swift
...ses/Modules/LivestreamSales(直播销售)/C/YHPlayerManager.swift
+1
-0
YHVODPlayerViewController.swift
...s/LivestreamSales(直播销售)/C/YHVODPlayerViewController.swift
+24
-1
No files found.
galaxy/galaxy/AppDelegate.swift
View file @
fe1ce698
...
...
@@ -95,7 +95,24 @@ class AppDelegate: UIResponder, UIApplicationDelegate, WXApiDelegate {
YHPlayerManager
.
shared
.
enterLive
(
from
:
nil
,
playbackInfo
:
playbackInfo
)
}
}
}
else
{
}
else
if
iType
==
3
{
//VodID
//点播分享
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
0.25
)
{
if
!
YHLoginManager
.
shared
.
isLogin
()
{
printLog
(
"需要登录"
)
return
}
//直播 - 获取它对应的参数
if
let
liveId
=
arrItems
[
"VodID"
]
as?
String
{
let
playbackInfo
=
YHPlayerManager
.
PlaybackInfo
(
id
:
liveId
.
intValue
(),
url
:
nil
,
title
:
nil
,
roomId
:
nil
,
uid
:
nil
,
isLive
:
false
,
scene
:
.
fullscreen
)
YHPlayerManager
.
shared
.
enterVOD
(
from
:
nil
,
playbackInfo
:
playbackInfo
)
}
}
}
else
{
printLog
(
"未处理的类型
\(
iType
)
"
)
}
}
...
...
galaxy/galaxy/Classes/Modules/LivestreamSales(直播销售)/C/YHPlayerManager.swift
View file @
fe1ce698
...
...
@@ -295,6 +295,7 @@ class YHPlayerManager: NSObject {
// MARK: - Scene Management
func
enterVOD
(
from
sourceView
:
UIView
?,
playbackInfo
:
PlaybackInfo
)
{
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
closeShareUIInLiveRoomNotifiction
,
object
:
nil
)
let
playerType
=
determinePlayerType
(
for
:
.
fullscreen
)
var
updatedInfo
=
playbackInfo
updatedInfo
.
scene
=
.
fullscreen
...
...
galaxy/galaxy/Classes/Modules/LivestreamSales(直播销售)/C/YHVODPlayerViewController.swift
View file @
fe1ce698
...
...
@@ -174,7 +174,30 @@ class YHVODPlayerViewController: YHBasePlayerViewController {
guard
let
recordedDetailModel
=
viewModel
.
recordedDetailModel
else
{
return
}
YHShareAlertView
.
show
(
image
:
recordedDetailModel
.
recorded_image
,
title
:
"@"
+
recordedDetailModel
.
account
,
subMessage
:
recordedDetailModel
.
recorded_title
,
linkUrl
:
recordedDetailModel
.
recorded_h5_url
,
isLive
:
false
,
fromAiSale
:
true
)
DispatchQueue
.
global
()
.
async
{
YHShareManager
.
shared
.
createMutilShareShortUrl
(
type
:
3
,
param
:
[
"VodID"
:
String
(
self
.
vodId
)])
{
shortUrl
,
error
in
if
let
url
=
shortUrl
{
let
tmpT
=
url
.
base64Encoded
??
""
//对deepLink使用 base64编码
var
oldUrl
=
recordedDetailModel
.
recorded_h5_url
if
oldUrl
.
contains
(
"?"
)
{
oldUrl
=
oldUrl
+
"&appDeepLink=
\(
tmpT
)
"
}
else
{
oldUrl
=
oldUrl
+
"?appDeepLink=
\(
tmpT
)
"
}
DispatchQueue
.
main
.
async
{
YHShareAlertView
.
show
(
image
:
recordedDetailModel
.
recorded_image
,
title
:
"@"
+
recordedDetailModel
.
account
,
subMessage
:
recordedDetailModel
.
recorded_title
,
linkUrl
:
oldUrl
,
isLive
:
false
,
fromAiSale
:
true
)
}
return
}
DispatchQueue
.
main
.
async
{
YHShareAlertView
.
show
(
image
:
recordedDetailModel
.
recorded_image
,
title
:
"@"
+
recordedDetailModel
.
account
,
subMessage
:
recordedDetailModel
.
recorded_title
,
linkUrl
:
recordedDetailModel
.
recorded_h5_url
,
isLive
:
false
,
fromAiSale
:
true
)
}
}
}
}
// MARK: - Data Loading
...
...
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