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
a6644a39
Commit
a6644a39
authored
Jan 08, 2025
by
DavidHuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
图片替换
parent
4804e939
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
4 deletions
+30
-4
AppDelegate.swift
galaxy/galaxy/AppDelegate.swift
+2
-3
YHLivePlayerViewController.swift
.../LivestreamSales(直播销售)/C/YHLivePlayerViewController.swift
+6
-1
Contents.json
.../live_play_interface_orientatio_up.imageset/Contents.json
+22
-0
横屏1@2x.png
...ive/live_play_interface_orientatio_up.imageset/横屏1@2x.png
+0
-0
横屏1@3x.png
...ive/live_play_interface_orientatio_up.imageset/横屏1@3x.png
+0
-0
No files found.
galaxy/galaxy/AppDelegate.swift
View file @
a6644a39
...
@@ -144,12 +144,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate, WXApiDelegate {
...
@@ -144,12 +144,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate, WXApiDelegate {
let
vc
=
UIViewController
.
current
??
UIViewController
()
let
vc
=
UIViewController
.
current
??
UIViewController
()
if
vc
.
isKind
(
of
:
YHLivePlayerViewController
.
self
)
{
if
vc
.
isKind
(
of
:
YHLivePlayerViewController
.
self
)
{
if
let
vc2
=
vc
as?
YHLivePlayerViewController
,
vc2
.
canDoRotateFunc
()
{
if
let
vc2
=
vc
as?
YHLivePlayerViewController
,
vc2
.
canDoRotateFunc
()
{
print
(
" 可旋转"
)
print
Log
(
" 可旋转"
)
return
[
.
portrait
,
.
landscapeRight
]
return
[
.
portrait
,
.
landscapeRight
]
}
}
}
}
printLog
(
"不 可旋转"
)
print
(
"不 可旋转"
)
return
.
portrait
return
.
portrait
}
}
...
...
galaxy/galaxy/Classes/Modules/LivestreamSales(直播销售)/C/YHLivePlayerViewController.swift
View file @
a6644a39
...
@@ -128,8 +128,8 @@ class YHLivePlayerViewController: YHBasePlayerViewController {
...
@@ -128,8 +128,8 @@ class YHLivePlayerViewController: YHBasePlayerViewController {
button
.
addTarget
(
self
,
action
:
#selector(
playeButtonClicked
)
,
for
:
.
touchUpInside
)
button
.
addTarget
(
self
,
action
:
#selector(
playeButtonClicked
)
,
for
:
.
touchUpInside
)
return
button
return
button
}()
}()
// MARK: - Initialization
// MARK: - Initialization
init
(
id
:
Int
,
url
:
String
?
=
nil
,
title
:
String
?
=
nil
,
roomId
:
String
?
=
nil
)
{
init
(
id
:
Int
,
url
:
String
?
=
nil
,
title
:
String
?
=
nil
,
roomId
:
String
?
=
nil
)
{
liveId
=
id
liveId
=
id
self
.
roomId
=
roomId
self
.
roomId
=
roomId
...
@@ -417,6 +417,7 @@ class YHLivePlayerViewController: YHBasePlayerViewController {
...
@@ -417,6 +417,7 @@ class YHLivePlayerViewController: YHBasePlayerViewController {
//是否可旋转
//是否可旋转
func
canDoRotateFunc
()
->
Bool
{
func
canDoRotateFunc
()
->
Bool
{
return
true
//直播暂停时有其他问题 先放开
if
let
model
=
viewModel
.
liveDetailModel
{
if
let
model
=
viewModel
.
liveDetailModel
{
if
model
.
status
==
1
{
if
model
.
status
==
1
{
if
model
.
stream_status
==
1
||
model
.
stream_status
==
2
{
if
model
.
stream_status
==
1
||
model
.
stream_status
==
2
{
...
@@ -962,12 +963,14 @@ extension YHLivePlayerViewController {
...
@@ -962,12 +963,14 @@ extension YHLivePlayerViewController {
messageListStateButton
.
isHidden
=
false
messageListStateButton
.
isHidden
=
false
closeButton
.
isHidden
=
false
closeButton
.
isHidden
=
false
topBarView
.
isHidden
=
false
topBarView
.
isHidden
=
false
self
.
playButton
.
setImage
(
UIImage
(
named
:
"live_play_interface_orientatio"
),
for
:
.
normal
)
}
else
{
}
else
{
bottomInputBar
.
isHidden
=
true
bottomInputBar
.
isHidden
=
true
messageListView
.
isHidden
=
true
messageListView
.
isHidden
=
true
messageListStateButton
.
isHidden
=
true
messageListStateButton
.
isHidden
=
true
closeButton
.
isHidden
=
true
closeButton
.
isHidden
=
true
topBarView
.
isHidden
=
true
topBarView
.
isHidden
=
true
self
.
playButton
.
setImage
(
UIImage
(
named
:
"live_play_interface_orientatio_up"
),
for
:
.
normal
)
}
}
if
#available(iOS 16.0, *)
{
if
#available(iOS 16.0, *)
{
...
@@ -990,6 +993,7 @@ extension YHLivePlayerViewController {
...
@@ -990,6 +993,7 @@ extension YHLivePlayerViewController {
messageListStateButton
.
isHidden
=
false
messageListStateButton
.
isHidden
=
false
closeButton
.
isHidden
=
false
closeButton
.
isHidden
=
false
topBarView
.
isHidden
=
false
topBarView
.
isHidden
=
false
self
.
playButton
.
setImage
(
UIImage
(
named
:
"live_play_interface_orientatio"
),
for
:
.
normal
)
}
}
func
changeLandscape
()
{
func
changeLandscape
()
{
...
@@ -1004,6 +1008,7 @@ extension YHLivePlayerViewController {
...
@@ -1004,6 +1008,7 @@ extension YHLivePlayerViewController {
messageListStateButton
.
isHidden
=
true
messageListStateButton
.
isHidden
=
true
closeButton
.
isHidden
=
true
closeButton
.
isHidden
=
true
topBarView
.
isHidden
=
true
topBarView
.
isHidden
=
true
self
.
playButton
.
setImage
(
UIImage
(
named
:
"live_play_interface_orientatio_up"
),
for
:
.
normal
)
}
}
@objc
func
orientationDidChange
()
{
@objc
func
orientationDidChange
()
{
...
...
galaxy/galaxy/Res/Assets.xcassets/YinHeLive/live_play_interface_orientatio_up.imageset/Contents.json
0 → 100644
View file @
a6644a39
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"横屏1@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"横屏1@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
galaxy/galaxy/Res/Assets.xcassets/YinHeLive/live_play_interface_orientatio_up.imageset/横屏1@2x.png
0 → 100644
View file @
a6644a39
2 KB
galaxy/galaxy/Res/Assets.xcassets/YinHeLive/live_play_interface_orientatio_up.imageset/横屏1@3x.png
0 → 100644
View file @
a6644a39
2.91 KB
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