Tuncer Ayaz
01a99b5cbe
Make gstreamer(-sys) optional
2019-11-21 20:08:03 +00:00
Tuncer Ayaz
c7ac4bbb19
simpleservo: add media-{dummy,gstreamer} features
2019-11-21 20:08:02 +00:00
Tuncer Ayaz
528322cfed
Fix needs_gstreamer_env() signature
...
Use iterable default value for `features`.
2019-11-21 20:08:01 +00:00
Tuncer Ayaz
a3ef594470
Pass feature list to build_env()
2019-11-21 20:08:01 +00:00
Alan Jeffrey
4e3f164f7b
Allow mach build to explicitly set the media stack
...
You can select the media backend by building as follows:
$ ./mach build -d --media-stack=dummy
or
$ ./mach build -d --media-stack=gstreamer
2019-11-21 20:08:01 +00:00
bors-servo
91b612f8df
Auto merge of #24692 - paulrouget:checkcpp-tc, r=jdm
...
Run test-tidy with CPP files check on Windows
2019-11-21 12:11:37 -05:00
Paul Rouget
b71774d8fe
Run test-tidy on Windows
2019-11-21 09:56:39 +01:00
bors-servo
47e39af0f3
Auto merge of #24798 - tmiasko:jemalloc, r=jdm
...
Update jemalloc-sys to 0.3.2
Update jemalloc-sys to 0.3.2 to avoid issue where jemalloc occasionally keeps
spinning in `je_spin_adaptive`.
- [X] `./mach build --release` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #24791
2019-11-20 20:35:33 -05:00
bors-servo
eb363ec8ae
Auto merge of #24777 - servo:jdm-patch-34, r=Manishearth
...
Enable webxr by default
This changes two things:
* enable WebXR by default, since it's not exactly an experimental technology in Servo anymore
* enable the glwindow webxr backend by default so it's easier to test WebXR on desktop nightlies
Since the glwindow pref is only checked in the glutin desktop port, enabling it for other ports does not hurt us at all and it removes a papercut for testing WebXR content on desktop.
<!-- 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/24777 )
<!-- Reviewable:end -->
2019-11-20 16:37:35 -05:00
bors-servo
dc22a78cc2
Auto merge of #24757 - Akash-Pateria:async-wasm-compilation-subsequent, r=jdm
...
Async wasm compilation event loop integration
The PR contains changes related to binding the runnable dispatching in script_runtime and is part of the Asynchronous WebAssembly Compilation fix. This is the first step in the subsequent steps mentioned in the [wiki](https://github.com/servo/servo/wiki/Asynchronous-WebAssembly-compilation-project ).
---
<!-- 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 are part of #21476 fix
2019-11-20 16:16:13 -05:00
Josh Matthews
b816c0ff68
Enable webxr by default.
2019-11-20 15:43:06 -05:00
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