Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC-iOS
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
269
Issues
269
List
Boards
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
VLC-iOS
Commits
7712970f
Commit
7712970f
authored
May 07, 2018
by
Carola Nitz
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
360 video: adjust values when they get out of bounds
parent
af887ffa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
Sources/VLCPlaybackController.m
Sources/VLCPlaybackController.m
+10
-1
No files found.
Sources/VLCPlaybackController.m
View file @
7712970f
...
...
@@ -967,7 +967,16 @@ typedef NS_ENUM(NSUInteger, VLCAspectRatio) {
#if !TARGET_OS_TV
-
(
BOOL
)
updateViewpoint
:(
CGFloat
)
yaw
pitch
:(
CGFloat
)
pitch
roll
:(
CGFloat
)
roll
fov
:(
CGFloat
)
fov
absolute
:(
BOOL
)
absolute
{
NSLog
(
@"update with yaw:%f pitch:%f roll:%f, fov:%f"
,
yaw
,
pitch
,
roll
,
fov
);
//adjusting the values
if
(
fabs
(
yaw
)
>
180
)
{
yaw
=
yaw
>
0
?
yaw
-
360
:
yaw
+
360
;
}
if
(
fabs
(
roll
)
>
180
)
{
roll
=
roll
>
0
?
roll
-
360
:
roll
+
360
;
}
if
(
fabs
(
pitch
)
>
90
)
{
pitch
=
pitch
>
0
?
pitch
-
180
:
pitch
+
180
;
}
return
[
_mediaPlayer
updateViewpoint
:
yaw
pitch
:
pitch
roll
:
roll
fov
:
fov
absolute
:
absolute
];
}
...
...
Carola
@caro
mentioned in commit
f125c56c
·
May 17, 2018
mentioned in commit
f125c56c
mentioned in commit f125c56c730a6ace764ab320ef4bb2adf55ed468
Toggle commit list
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