mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Register pipeline instead of browsing contexts for media instances
This commit is contained in:
parent
7b653cad7b
commit
51ed44c77d
4 changed files with 24 additions and 29 deletions
|
@ -1329,11 +1329,11 @@ impl HTMLMediaElement {
|
|||
HTMLMediaElementTypeId::HTMLVideoElement => Some(self.frame_renderer.clone()),
|
||||
};
|
||||
|
||||
let browsing_context_id = window.window_proxy().top_level_browsing_context_id().0;
|
||||
let client_context_id = ClientContextId::build(
|
||||
browsing_context_id.namespace_id.0,
|
||||
browsing_context_id.index.0.get(),
|
||||
);
|
||||
let pipeline_id = window
|
||||
.pipeline_id()
|
||||
.expect("Cannot create player outside of a pipeline");
|
||||
let client_context_id =
|
||||
ClientContextId::build(pipeline_id.namespace_id.0, pipeline_id.index.0.get());
|
||||
let player = ServoMedia::get().unwrap().create_player(
|
||||
&client_context_id,
|
||||
stream_type,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue