]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Don't force autoplay
authorChocobozzz <me@florianbigard.com>
Tue, 7 Apr 2020 09:05:43 +0000 (11:05 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 7 Apr 2020 09:05:43 +0000 (11:05 +0200)
Don't use muting to autoplay videos. If the web browser does not want to
autoplay the video, it's okay.

client/src/assets/player/peertube-player-manager.ts

index dbf631a5e761b45e03610c2bcec47ea52e3f9be4..8e6a4f139c8f9cbedbdea91d8a2d0e0fa42e6727 100644 (file)
@@ -236,7 +236,7 @@ export class PeertubePlayerManager {
         : undefined, // Undefined so the player knows it has to check the local storage
 
       autoplay: autoplay === true
-        ? 'any' // Use 'any' instead of true to get notifier by videojs if autoplay fails
+        ? 'play' // Use 'any' instead of true to get notifier by videojs if autoplay fails
         : autoplay,
 
       poster: commonOptions.poster,