(_: String, args: &Table)
| 33 | |
| 34 | impl VideoInput { |
| 35 | fn new(_: String, args: &Table) -> VideoInput { |
| 36 | VideoInput { |
| 37 | urls: args["urls"] |
| 38 | .as_array() |
| 39 | .expect("expect string array for urls") |
| 40 | .iter() |
| 41 | .map(|n| n.as_str().unwrap().to_owned()) |
| 42 | .collect(), |
| 43 | repeat: args["repeat"] |
| 44 | .as_integer() |
| 45 | .expect("expect args[repeat] in node[VideoInput]") |
| 46 | .to_owned() as u32, |
| 47 | ..Default::default() |
| 48 | } |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | node_register!("VideoInput", VideoInput); |
nothing calls this directly
no outgoing calls
no test coverage detected