polimediaupv / paella-core

Paella Player core library
Educational Community License v2.0
20 stars 15 forks source link

Allow FireFox to play at readystate 2, but protect other browsers #363

Closed karendolan closed 4 months ago

karendolan commented 4 months ago

This pull prevents a premature play() request on video elements at readystate 2, except for Firefox that is ready to play at ready state 2.

Safari drops from readystate 3 to readystate 2 when it is buffering and cannot play a video. Requesting play() on Safari at readystate 2 causes the video to stall.

Chrome is not impacted by this pull because it moves quickly from readystate 2 to 3 during load. This also appears to be the case for other browsers.

Our site has been using this patch for many months with a diverse (in regards to devices and OS) and remote student body.