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:
Scott Lamb 2021-02-22 13:46:51 -08:00
parent c547a49ac8
commit d7eea63829
3 changed files with 17 additions and 16 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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