Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gstreamer plugin running in wayland with surfman 0.2 #25334

Merged
merged 6 commits into from Dec 20, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Some generated files are not rendered by default. Learn more.

@@ -491,9 +491,9 @@ def windows_unit(cached=True):
"mach smoketest --angle",
"mach package --dev",
"mach build --dev --libsimpleservo",
# We're getting link errors on windows, due to the x11 feature being
# enabled on gstreamer-gl. https://github.com/servo/media/pull/304/
"mach build --dev --media-stack=dummy -p servo-gst-plugin",
# The GStreamer plugin currently doesn't support Windows
# https://github.com/servo/servo/issues/25353
# "mach build --dev -p servo-gst-plugin",

)
.with_artifacts("repo/target/debug/msi/Servo.exe",
@@ -22,18 +22,17 @@ glib = { version = "0.8", features = ["subclassing"] }
gstreamer = { version = "0.14", features = ["subclassing"] }
gstreamer-base = { version = "0.14", features = ["subclassing"] }
gstreamer-gl = { version = "0.14" }
gstreamer-gl-sys = { version = "0.8" }
gstreamer-gl-sys = { version = "0.8", features = ["wayland"] }
gstreamer-sys = { version = "0.8" }
gstreamer-video = { version = "0.14", features = ["subclassing"] }
log = "0.4"
lazy_static = "1.4"
libservo = {path = "../../components/servo"}
servo-media = {git = "https://github.com/servo/media"}
sparkle = "0.1"
# NOTE: the sm-angle-default feature only enables angle on windows, not other platforms!
surfman = { version = "0.1", features = ["sm-angle-default", "sm-osmesa"] }
surfman = { git = "https://github.com/pcwalton/surfman", branch = "multi" }
surfman-chains-api = "0.2"
surfman-chains = "0.2.1"
surfman-chains = { git = "https://github.com/asajeffrey/surfman-chains", branch = "multi" }

[build-dependencies]
gst-plugin-version-helper = "0.1"
@@ -1,5 +1,10 @@
# A GStreamer plugin which runs servo

## Supported platforms

* MacOS + CGL
* Linux + Wayland (currently no WebGL content)

## Build

```
@@ -68,8 +73,6 @@ LD_LIBRARY_PATH=$PWD/support/linux/gstreamer/gst/lib \

## Troubleshooting running the plugin

*Currently x11 support is broken!*

First try:
```
GST_PLUGIN_PATH=target/gstplugins \
@@ -9,7 +9,7 @@ use lazy_static::lazy_static;

lazy_static! {
pub static ref CATEGORY: DebugCategory =
DebugCategory::new("servosrc", DebugColorFlags::empty(), Some("Servo"));
DebugCategory::new("servowebsrc", DebugColorFlags::empty(), Some("Servo"));
}

pub static LOGGER: ServoSrcLogger = ServoSrcLogger;
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.