mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Auto merge of #8454 - jdm:media, r=KiChjang
Implement basic <media> infrastructure This gets us to the point where we can start playing with actually integrating rust-media to process the data received by the network request, as currently it's just ignored. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8454) <!-- Reviewable:end -->
This commit is contained in:
commit
f9d9cd3aae
108 changed files with 1957 additions and 1265 deletions
|
@ -21,6 +21,7 @@ pub enum LoadType {
|
|||
Subframe(Url),
|
||||
Stylesheet(Url),
|
||||
PageSource(Url),
|
||||
Media(Url),
|
||||
}
|
||||
|
||||
impl LoadType {
|
||||
|
@ -30,6 +31,7 @@ impl LoadType {
|
|||
LoadType::Script(ref url) |
|
||||
LoadType::Subframe(ref url) |
|
||||
LoadType::Stylesheet(ref url) |
|
||||
LoadType::Media(ref url) |
|
||||
LoadType::PageSource(ref url) => url,
|
||||
}
|
||||
}
|
||||
|
@ -39,7 +41,8 @@ impl LoadType {
|
|||
LoadType::Image(_) => LoadContext::Image,
|
||||
LoadType::Script(_) => LoadContext::Script,
|
||||
LoadType::Subframe(_) | LoadType::PageSource(_) => LoadContext::Browsing,
|
||||
LoadType::Stylesheet(_) => LoadContext::Style
|
||||
LoadType::Stylesheet(_) => LoadContext::Style,
|
||||
LoadType::Media(_) => LoadContext::AudioVideo,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue