According to the Fullscreen API specification, both requestFullscreen() and exitFullscreen() methods should return a Promise. However, in the Videogular library, this behavior is not implemented in the VgFullscreenApiService. The methods are called without returning any Promise.
Expected Behavior
The toggleFullscreen(), request() and exit() methods should return a Promise that resolves when the operation completes.
Actual Behavior
The toggleFullscreen(), request() and exit() methods do not return a Promise. This can cause issues with handling fullscreen transitions properly, especially when chaining operations or handling errors.
Description
According to the Fullscreen API specification, both
requestFullscreen()
andexitFullscreen()
methods should return a Promise. However, in the Videogular library, this behavior is not implemented in theVgFullscreenApiService
. The methods are called without returning any Promise.Expected Behavior
The
toggleFullscreen()
,request()
andexit()
methods should return a Promise that resolves when the operation completes.Actual Behavior
The
toggleFullscreen()
,request()
andexit()
methods do not return a Promise. This can cause issues with handling fullscreen transitions properly, especially when chaining operations or handling errors.Attachments
Code Snippet from VgFullscreenApiService: