WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
160405
[Mac][iOS] Adopt MediaRemote "seek to playback position"
https://bugs.webkit.org/show_bug.cgi?id=160405
Summary
[Mac][iOS] Adopt MediaRemote "seek to playback position"
Eric Carlson
Reported
2016-08-01 08:28:24 PDT
Adopt MediaRemote "seek to playback position"
Attachments
Proposed patch.
(31.17 KB, patch)
2016-08-01 10:23 PDT
,
Eric Carlson
dino
: review+
Details
Formatted Diff
Diff
Updated patch for the bots.
(31.49 KB, patch)
2016-08-01 12:03 PDT
,
Eric Carlson
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Eric Carlson
Comment 1
2016-08-01 08:30:08 PDT
<
rdar://problem/27547583
>
Eric Carlson
Comment 2
2016-08-01 10:23:10 PDT
Created
attachment 285019
[details]
Proposed patch.
WebKit Commit Bot
Comment 3
2016-08-01 10:29:17 PDT
Attachment 285019
[details]
did not pass style-queue: ERROR: Source/WebCore/platform/ios/RemoteCommandListenerIOS.mm:115: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WebCore/platform/audio/PlatformMediaSession.h:134: The parameter name "argument" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 2 in 21 files If any of these errors are false positives, please file a bug against check-webkit-style.
Dean Jackson
Comment 4
2016-08-01 11:46:19 PDT
Comment on
attachment 285019
[details]
Proposed patch. View in context:
https://bugs.webkit.org/attachment.cgi?id=285019&action=review
> Source/WebCore/platform/mac/RemoteCommandListenerMac.mm:129 > + CFNumberRef positionRef = static_cast<CFNumberRef>(CFDictionaryGetValue(options, kMRMediaRemoteOptionPlaybackPosition)); > + if (positionRef) > + CFNumberGetValue(positionRef, kCFNumberDoubleType, &argument.asDouble); > + platformCommand = PlatformMediaSession::SeekToPlaybackPositionCommand;
Does this mean that if you can't get the playback position, you'll seek to the start?
Eric Carlson
Comment 5
2016-08-01 12:03:00 PDT
Comment on
attachment 285019
[details]
Proposed patch. View in context:
https://bugs.webkit.org/attachment.cgi?id=285019&action=review
>> Source/WebCore/platform/mac/RemoteCommandListenerMac.mm:129 >> + platformCommand = PlatformMediaSession::SeekToPlaybackPositionCommand; > > Does this mean that if you can't get the playback position, you'll seek to the start?
Good point, I will fix that.
Eric Carlson
Comment 6
2016-08-01 12:03:25 PDT
Created
attachment 285024
[details]
Updated patch for the bots.
WebKit Commit Bot
Comment 7
2016-08-01 12:05:14 PDT
Attachment 285024
[details]
did not pass style-queue: ERROR: Source/WebCore/platform/ios/RemoteCommandListenerIOS.mm:118: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WebCore/platform/audio/PlatformMediaSession.h:134: The parameter name "argument" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 2 in 21 files If any of these errors are false positives, please file a bug against check-webkit-style.
Eric Carlson
Comment 8
2016-08-01 12:51:29 PDT
Committed
r203982
:
http://trac.webkit.org/changeset/203982
Eric Carlson
Comment 9
2016-08-03 09:35:54 PDT
Plus
r204082
to fix a problem on iOS.
Eric Carlson
Comment 10
2016-08-11 09:36:38 PDT
And
r204375
to update MediaRemoteSPI.h
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug