mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-04 23:44:13 +00:00
draft route for streaming extensions
This commit is contained in:
parent
fd419e2de1
commit
ced0113d0c
@ -545,7 +545,7 @@ impl Page {
|
||||
ClientMime::ImagePng | ClientMime::ImageGif |
|
||||
ClientMime::ImageJpeg | ClientMime::ImageWebp
|
||||
) => {
|
||||
match Pixbuf::from_stream(
|
||||
match Pixbuf::from_stream( // @TODO async
|
||||
&connection.input_stream(),
|
||||
None::<&Cancellable>,
|
||||
) {
|
||||
@ -578,7 +578,20 @@ impl Page {
|
||||
}
|
||||
}
|
||||
},
|
||||
// @TODO stream extensions
|
||||
/* @TODO stream or download
|
||||
Some(
|
||||
ClientMime::AudioFlac | ClientMime::AudioMpeg | ClientMime::AudioOgg
|
||||
) => {
|
||||
// Update page meta
|
||||
meta.borrow_mut().status = Some(Status::Success);
|
||||
meta.borrow_mut().title = Some(gformat!("Stream"));
|
||||
|
||||
// Update page content
|
||||
// content.set_stream();
|
||||
|
||||
// Update window components
|
||||
action_update.activate(Some(&id));
|
||||
}, */
|
||||
_ => {
|
||||
// Define common data
|
||||
let status = Status::Failure;
|
||||
|
Loading…
x
Reference in New Issue
Block a user