Repository navigation
Add <audio> and <video> player backends - #21543
Conversation
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @mbrubeck (or someone else) soon. |
|
Heads up! This PR modifies the following files:
|
|
☔ The latest upstream changes (presumably #21509) made this pull request unmergeable. Please resolve the merge conflicts. |
9a4d088 to
3d3a86d
Compare
|
I'm unable to get this to render at all -- can you share the testcase you're using? I'm just using the one from W3schools since it's very simple. |
|
r? @nox could you take a look at the DOM changes, please? r? @Manishearth @mrobinson could you review the layout changes, please? Thanks! |
|
r? @Manishearth |
I already replied on IRC, but for reference, in case anyone else wants to try this, this example should work. |
| # [patch."https://github.com/servo/<repository>"] | ||
| # <crate> = { path = "/path/to/local/checkout" } | ||
| [patch."https://github.com/servo/media"] | ||
| servo-media = { git = "https://github.com/ferjm/media", branch = "framerenderer" } |
| /// The Webrender Document ID associated with this thread. | ||
| webrender_document: DocumentId, | ||
|
|
||
| /// FIXME(victor): |
There was a problem hiding this comment.
@ceyusa could you elaborate more on what needs to be fixed here exactly, please?
There was a problem hiding this comment.
I used the wrong tag. It is not a fixme but a xxx, perhaps. What I mean is it would be nice to rethink this design. Perhaps it is better to create a proxy object to keep the RenderApiSender for the servo-media, rather than pass it all along from constellation to document to html element.
There was a problem hiding this comment.
I think process isolation wise script should not have access to this, cc @asajeffrey
A proxy approach would be nice. Ideally the network task would directly talk to WR, maybe via constellation
| pub webvr_chan: Option<IpcSender<WebVRMsg>>, | ||
| /// The Webrender document ID associated with this thread. | ||
| pub webrender_document: DocumentId, | ||
| /// FIXME(victor): The Webrender API sender in this constellation's pipeline |
There was a problem hiding this comment.
The same I commented above, not a fixme but a request to rethink this approach,
| .. RequestInit::default() | ||
| }; | ||
|
|
||
| self.setup_media_player(); |
There was a problem hiding this comment.
I suspect that this is not the best place to setup the media player. I need to properly read the spec, but I would say that we should be setting it up a bit earlier, and ideally handling any potential setup failure.
| this.upcast::<EventTarget>().fire_event(atom!("pause")); | ||
|
|
||
| //FIXME(victor) | ||
| //this.player.pause(); |
There was a problem hiding this comment.
This can be uncommented once we update servo-media to its latest revision (after #21325 lands)
|
Hm, so it's not that they're stacked behind, it's that they seem to get laid out as 0x0 boxes at (0,0). Curious. |
Manishearth
left a comment
There was a problem hiding this comment.
The DOM side approach looks okay, though we might want to rethink the sender stuff.
Any progress on figuring out what's going on with layout? cc @mbrubeck @mrobinson
|
☔ The latest upstream changes (presumably #21723) made this pull request unmergeable. Please resolve the merge conflicts. |
|
💔 Test failed - mac-dev-unit |
|
fwiw I'm re-highstating right now, so this may break. |
|
Oops. |
|
@bors-servo try retry |
|
💔 Test failed - mac-rel-wpt1 |
|
Something's funky with mac5 |
|
@bors-servo retry took it offline, it's got its own problems |
|
somehow the virtualenv needed a reinstall 🤷♂️ |
|
💔 Test failed - mac-rel-wpt4 |
legit failure, we don't support that event. |
|
Those failures don't happen on linux. Fernando previously tracked those failures down to the lack of the codecs on mac. |
|
Oh, hmm |
|
I suspect this is brew not being smart about reinstalls when you're installing with extra args. May need to do an uninstall before resalting (but first I'll verify that this is indeed what's happening) |
|
@bors-servo try |
|
💔 Test failed - mac-rel-wpt3 |
The crash looks unrelated to this PR. |
|
@bors-servo r=Manishearth |
|
📌 Commit 7e6661d has been approved by |
|
⚡ Previous build results for android, android-x86, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt4, status-taskcluster, windows-msvc-dev are reusable. Rebuilding only mac-rel-wpt3... |
|
☀️ Test successful - android, android-x86, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, status-taskcluster, windows-msvc-dev |
These patches enables audio and video playing inside Servo.
It is bit hackish way to enable it, thus the purpose of this pull request is for an early request for comments.
It is tested with the current servo-media GStreamer backend in Linux.
The produced layout is not correct, since the elements after the video seems to be stacked behind, and the same with the scrolling bars.There is no JavaScript interface yet, neither controls../mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is