Render audio and video file preview
Audio and video files are not downloaded, but the element src is fetching the content directly from storage. Unfortunately, one cannot skip forward, when the RS server doesn't support content ranges.
This commit is contained in:
@@ -6,10 +6,17 @@ moduleForComponent('file-preview', 'Integration | Component | file preview', {
|
||||
});
|
||||
|
||||
test('it renders', function(assert) {
|
||||
// Set any properties with this.set('myProperty', 'value');
|
||||
// Handle any actions with this.on('myAction', function(val) { ... });
|
||||
this.set('metaData', {
|
||||
etag: "714148227",
|
||||
isBinary: false,
|
||||
isFolder: false,
|
||||
name: "fra-pdx",
|
||||
path: "trips/2018/06/19/fra-pdx",
|
||||
size: 92086791,
|
||||
type: "application/json"
|
||||
});
|
||||
|
||||
this.render(hbs`{{file-preview}}`);
|
||||
this.render(hbs`{{file-preview metaData=metaData}}`);
|
||||
|
||||
assert.equal(this.$().text().trim(), '');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user