Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 043fbf1

Browse filesBrowse files
committed
[Bug 18338] Make sure duration is reported in millisecs on iOS player
1 parent ad39b46 commit 043fbf1
Copy full SHA for 043fbf1

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎engine/src/mbliphoneplayer.mm

Copy file name to clipboardExpand all lines: engine/src/mbliphoneplayer.mm
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,15 +554,15 @@ static void content_to_url(MCStringRef p_file, NSURL*& r_url)
554554
void MCiOSPlayerControl::GetDuration(MCExecContext& ctxt, integer_t& r_duration)
555555
{
556556
if (m_controller != nil)
557-
r_duration = [m_controller duration];
557+
r_duration = [m_controller duration] * 1000;
558558
else
559559
r_duration = 0;
560560
}
561561

562562
void MCiOSPlayerControl::GetPlayableDuration(MCExecContext& ctxt, integer_t& r_duration)
563563
{
564564
if (m_controller != nil)
565-
r_duration = [m_controller playableDuration];
565+
r_duration = [m_controller playableDuration] * 1000;
566566
else
567567
r_duration = 0;
568568
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.