mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-05 07:54:14 +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::ImagePng | ClientMime::ImageGif |
|
||||||
ClientMime::ImageJpeg | ClientMime::ImageWebp
|
ClientMime::ImageJpeg | ClientMime::ImageWebp
|
||||||
) => {
|
) => {
|
||||||
match Pixbuf::from_stream(
|
match Pixbuf::from_stream( // @TODO async
|
||||||
&connection.input_stream(),
|
&connection.input_stream(),
|
||||||
None::<&Cancellable>,
|
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
|
// Define common data
|
||||||
let status = Status::Failure;
|
let status = Status::Failure;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user