Skip to content

Commit

Permalink
aleris#1 iOS 11 Compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
werthdavid committed Oct 25, 2017
1 parent dc7e589 commit 997d8d6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/browser/BrowserCodeReader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ export default class BrowserCodeReader {
} else {
this.videoElement = videoElement
}
// Needed for iOS 11
this.videoElement.setAttribute("autoplay", "true");
this.videoElement.setAttribute("muted", "true");
this.videoElement.setAttribute("playsinline", "true");
this.videoElement.setAttribute("autofocus", "true");
}

private getMediaElement(mediaElementId: string, type: string) {
Expand Down

0 comments on commit 997d8d6

Please sign in to comment.