Skip to content

Commit

Permalink
add mediaElementAttributes option
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiiRochi committed Feb 5, 2021
1 parent e3fa9f4 commit ba6860b
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 @@ -58,7 +59,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 ba6860b

Please sign in to comment.