Skip to content

Commit

Permalink
upload video preview add more props
Browse files Browse the repository at this point in the history
  • Loading branch information
supertiny99 committed Nov 28, 2024
1 parent 72bdf6b commit a866cef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/uploader/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
autoplay="{{ item.autoplay }}"
object-fit="{{videoFit}}"
referrer-policy="{{ referrerPolicy }}"
picture-in-picture-mode="{{ pictureInPictureMode }}"
class="van-uploader__preview-image"
style="{{ computed.sizeStyle({ previewSize }) }}"
data-index="{{ index }}"
Expand Down
4 changes: 4 additions & 0 deletions packages/uploader/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ export const videoProps = {
type: String,
value: 'no-referrer',
},
pictureInPictureMode: {
type: Array,
value: [],
},
};

// props for media
Expand Down

0 comments on commit a866cef

Please sign in to comment.