Fix Readme
parent
48d22b29f7
commit
9fbd450446
|
@ -13,7 +13,7 @@ git = "https://github.com/Orenantedose/vlc-rs.git"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
Play for 10 seconds from an media file.
|
Play for 10 seconds from a media file.
|
||||||
```Rust
|
```Rust
|
||||||
extern crate vlc;
|
extern crate vlc;
|
||||||
use vlc::{Instance, Media, MediaPlayer};
|
use vlc::{Instance, Media, MediaPlayer};
|
||||||
|
@ -32,7 +32,7 @@ fn main() {
|
||||||
mdp.play().unwrap();
|
mdp.play().unwrap();
|
||||||
|
|
||||||
// Wait for 10 seconds
|
// Wait for 10 seconds
|
||||||
thread::sleep_ms(10000);
|
thread::sleep(::std::time::Duration::from_secs(10));
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue