mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-01-24 13:13:16 -05:00
minor api fixes
* videoSampleEntryId should be a number, not a string * fix some markdown formatting * fix missing description of sampleFileBytes
This commit is contained in:
parent
c547a49ac8
commit
d7eea63829
@ -299,6 +299,7 @@ arbitrary order. Each recording object has the following properties:
|
||||
map.mp4` URL.
|
||||
* `videoSamples`: the number of samples (aka frames) of video in this
|
||||
recording.
|
||||
* `sampleFileBytes`: the number of bytes of video in this recording.
|
||||
|
||||
Under the property `videoSampleEntries`, an object mapping ids to objects with
|
||||
the following properties:
|
||||
@ -331,7 +332,7 @@ Example response:
|
||||
"startTime90k": 130985461191810,
|
||||
"endTime90k": 130985466591817,
|
||||
"sampleFileBytes": 8405564,
|
||||
"videoSampleEntryId": "1",
|
||||
"videoSampleEntryId": 1,
|
||||
},
|
||||
{
|
||||
"endTime90k": 130985461191810,
|
||||
|
@ -440,7 +440,7 @@ pub struct Recording {
|
||||
pub end_time_90k: i64,
|
||||
pub sample_file_bytes: i64,
|
||||
pub video_samples: i64,
|
||||
pub video_sample_entry_id: String,
|
||||
pub video_sample_entry_id: i32,
|
||||
pub start_id: i32,
|
||||
pub open_id: u32,
|
||||
|
||||
|
@ -712,7 +712,7 @@ impl Service {
|
||||
open_id: row.open_id,
|
||||
first_uncommitted: row.first_uncommitted,
|
||||
video_samples: row.video_samples,
|
||||
video_sample_entry_id: row.video_sample_entry_id.to_string(),
|
||||
video_sample_entry_id: row.video_sample_entry_id,
|
||||
growing: row.growing,
|
||||
});
|
||||
if !out
|
||||
|
Loading…
x
Reference in New Issue
Block a user