Panic if we can't open the media file.
This commit is contained in:
parent
c09306fd8c
commit
a501f91dae
|
@ -52,7 +52,7 @@ impl transport::App for Session {
|
||||||
session.accept_connect_request(conn, None)?;
|
session.accept_connect_request(conn, None)?;
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
let media = media::Source::new("../media/fragmented.mp4")?;
|
let media = media::Source::new("../media/fragmented.mp4").expect("failed to open fragmented.mp4");
|
||||||
let init = &media.init;
|
let init = &media.init;
|
||||||
|
|
||||||
// Create a JSON header.
|
// Create a JSON header.
|
||||||
|
|
Loading…
Reference in New Issue