bors-servo
f6348b8b54
Auto merge of #24499 - ferjm:media.session.api, r=Manishearth
...
Media Session API
- [X] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #24172
- [x] There are tests for these changes
This PR introduces all the pieces required to prove an end to end media session flow with Android as a test platform.
2019-11-20 12:31:29 -05:00
Fernando Jimenez Moreno
9f77ea1165
Mach fmt, this time including C++ files
2019-11-20 13:40:21 +01:00
Fernando Jiménez Moreno
6dcdfefd72
Fix simpleservo build
2019-11-20 13:34:54 +01:00
Fernando Jiménez Moreno
ca1a2e0525
Update test expectations
2019-11-20 13:34:54 +01:00
Fernando Jiménez Moreno
ba48e542e4
Enable MediaSession WPT
2019-11-20 13:34:31 +01:00
Fernando Jiménez Moreno
59f22abb3e
Remove stop button for now and show play/pause in compact mode
2019-11-20 13:34:31 +01:00
Fernando Jiménez Moreno
35c4c35416
Fix metadata update
2019-11-20 13:34:31 +01:00
Fernando Jiménez Moreno
f65c400828
Update media session metadata and show content text with artist and album
2019-11-20 13:34:30 +01:00
Fernando Jiménez Moreno
d33c96b31e
Fallback to current url as metadata title
2019-11-20 13:34:30 +01:00
Fernando Jiménez Moreno
6ee21af0c4
Update media session metadata according to media player
2019-11-20 13:34:30 +01:00
Fernando Jiménez Moreno
caedc28118
Do not play notification sound when creating media session on Android
2019-11-20 13:34:29 +01:00
Fernando Jiménez Moreno
7b5b46f560
Fix play action
2019-11-20 13:34:29 +01:00
Fernando Jiménez Moreno
07483f1d44
Switch play and pause buttons according to playback state
2019-11-20 13:34:29 +01:00
Fernando Jiménez Moreno
b5b8c6c2a8
Remove prev and next track action buttons for now
2019-11-20 13:34:29 +01:00
Fernando Jiménez Moreno
b048d7faf7
Fix media session action handling
2019-11-20 13:34:29 +01:00
Fernando Jiménez Moreno
9da1dd3592
Default media session actions
2019-11-20 13:34:29 +01:00
Fernando Jiménez Moreno
68baabba63
Format code and fix rebase errors
2019-11-20 13:33:51 +01:00
Fernando Jiménez Moreno
85ec66b43e
Move active media session logic to constellation
2019-11-20 13:33:51 +01:00
Fernando Jiménez Moreno
08f9f17ed3
Send MediaSessionAction from Android
2019-11-20 13:33:51 +01:00
Fernando Jiménez Moreno
b494acbf19
Adapt MediaMetadata interface to new way of declaring constructors
2019-11-20 13:33:16 +01:00
Fernando Jiménez Moreno
0bbacdda0c
Move media session related code out of MainActivity
2019-11-20 13:33:16 +01:00
Fernando Jiménez Moreno
dd63ba425f
MediaSession show media controls on Android
2019-11-20 13:33:15 +01:00
Fernando Jiménez Moreno
761f21fc8b
Send MediaSessionEvent::PlaybackStateChange when needed
2019-11-20 13:33:15 +01:00
Fernando Jiménez Moreno
3f6569447d
MediaSession Android bits
2019-11-20 13:33:15 +01:00
Fernando Jiménez Moreno
7ca74d598c
MediaSession: refactor embedder API. Fix Android build
2019-11-20 13:33:15 +01:00
Fernando Jiménez Moreno
89d9e3ad78
Introduce embedder MediaSessionEvent and move active session to Servo
2019-11-20 13:33:15 +01:00
Fernando Jiménez Moreno
4d147d2c56
Register media instance with session and prepare communication with embedder
2019-11-20 13:33:14 +01:00
Fernando Jiménez Moreno
9c329a7935
Add embedder message to (de)activate media session
2019-11-20 13:32:38 +01:00
Fernando Jiménez Moreno
fd040b0a55
Extend libsimpleservo API with a callback for media session activation
2019-11-20 13:32:38 +01:00
Fernando Jiménez Moreno
d7d775ac60
Extend libsimpleservo API with a method to request a media session action
2019-11-20 13:32:38 +01:00
Fernando Jiménez Moreno
31ce7a2b5c
Handle media session action, no default handling yet
2019-11-20 13:32:38 +01:00
Fernando Jiménez Moreno
ec7a4bf32d
MediaSession: update action handler algorithm
2019-11-20 13:32:38 +01:00
Fernando Jiménez Moreno
fa61191405
Make MediaSession handle embedder requested action
2019-11-20 13:32:11 +01:00
Fernando Jiménez Moreno
6233f78de4
MediaSessionAction message from embedder to script thread
2019-11-20 13:32:10 +01:00
Fernando Jiménez Moreno
7101a9d070
Use BrowsingContextId for MediaSession registration
2019-11-20 13:32:10 +01:00
Fernando Jiménez Moreno
f8246801ba
MediaSession registration
2019-11-20 13:32:10 +01:00
Fernando Jiménez Moreno
1ab65005ae
Set MediaMetadata MediaSession owner
2019-11-20 13:32:10 +01:00
Fernando Jiménez Moreno
4b5b4d19bf
MediaSession API DOM bindings
2019-11-20 13:32:10 +01:00
bors-servo
7da8d75a7e
Auto merge of #24426 - servo:wrup, r=jdm,nox
...
Update webrender
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24426 )
<!-- Reviewable:end -->
2019-11-20 05:08:32 -05:00
bors-servo
6d4a09ebd9
Auto merge of #24785 - servo:linux-wpt2, r=jdm
...
Move WPT Linux from Buildbot to Taskcluster
Closes https://github.com/servo/servo/pull/24418
2019-11-19 22:53:33 -05:00
bors-servo
e07f0280fe
Auto merge of #24776 - jdm:xr-translate, r=Manishearth
...
Support translation in webxr on desktop
This makes it possible to roam around webxr scenes using the WASD keys, and the arrow keys continue to change the user's orientation.
---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #24773
- [x] These changes do not require tests because no tests for interactive webxr content
2019-11-19 21:56:25 -05:00
bors-servo
05f90cd24e
Auto merge of #24651 - servo:jdm-patch-31, r=paulrouget
...
Remove appveyor CI badge.
Fixes #24650 .
2019-11-19 16:00:36 -05:00
Josh Matthews
5c08378595
glutin: Support WASD for translating positing in webxr content.
2019-11-19 14:33:09 -05:00
Josh Matthews
68b832db27
glutin: Use existing routines for rounding physical/logical sizes.
2019-11-19 14:32:31 -05:00
Josh Matthews
2f2a9a38a8
Remove appveyor CI badge.
2019-11-19 14:17:51 -05:00
bors-servo
e953eb10b7
Auto merge of #24782 - servo:timing, r=SimonSapin
...
Prepend `-Ztimings=info`, don’t append, so it can be overridden
2019-11-19 14:09:37 -05:00
bors-servo
e6ae93f66e
Auto merge of #24752 - asajeffrey:split-surfman-chains-api-and-impl, r=jdm
...
Avoid recompiling script every time surfman changes
<!-- Please describe your changes on the following line: -->
Uses a version of webxr where webxr-api doesn't depend on surfman, so we can make changes to it without rebuilding script.
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes do not require tests because it's just build issues
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2019-11-19 12:48:14 -05:00
Simon Sapin
34287e5342
Move WPT Linux from Buildbot to Taskcluster
...
Update expectations as differences don’t look intermittent:
https://github.com/servo/servo/pull/24785#issuecomment-555602259
Fixes https://github.com/servo/servo/issues/23569
2019-11-19 18:37:29 +01:00
Simon Sapin
81a03c1a18
Tweak WPT task names and config
2019-11-19 17:46:10 +01:00
Simon Sapin
b38fd6b21f
Fix run.dockerfile to actually be able to run current Servo
...
… and avoid runtime errors about missing gstreamer plugins
2019-11-19 17:38:47 +01:00