Skip to content

Commit

Permalink
add mediaElementAttributes option
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiiRochi committed Jun 24, 2022
1 parent 65bba10 commit 330546c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const plugin = fpAPI => {

const { addFilter, utils } = fpAPI;
const { Type, createRoute } = utils;

const mediaWrapperView = createMediaWrapperView(fpAPI);

// called for each view that is created right after the 'create' method
Expand Down Expand Up @@ -62,7 +63,8 @@ const plugin = fpAPI => {
return {
options: {
allowVideoPreview: [true, Type.BOOLEAN],
allowAudioPreview: [true, Type.BOOLEAN]
allowAudioPreview: [true, Type.BOOLEAN],
mediaElementAttributes: [{ controls: true }, Type.OBJECT]
}
};
};
Expand Down

0 comments on commit 330546c

Please sign in to comment.