Closed basaran closed 3 years ago
Hello, I made some changes to sindresorhus' isfullscreen to take care of the SSR issues. I can send a PR if you like.
I went ahead and made a forked package giving link to your repository as the original. If this is any issue, please kindly let me know. Thank you again for making this nice component.
@basaran How do you repair SSR problems? Since the SSR feature was added to Svelte, almost all svelte components in the DEV environment have crashed.
I followed your Commits to process the window and navigator objects, but I don't know how to proceed.
npm package: @svelte-parts/editor
It's usually the case if you are pulling in JS that does things on the window
object without checking the environment. In svelte-video-player case, it was the common js export not exporting isScreenfull properly to be used with the module import system.
@basaran The fork at https://www.npmjs.com/package/svelte-video-player-kit seems to work well for me in most cases. However, I am finding that it does not seem to work out-of-the-box with browsers in iOS. All other operating systems and browsers seem to work fine. Is there something that needs to be done to get this working with SSR and Sveltekit when on iOS?
I haven't done any svelte projects lately but my last compile from last year was and is still running fine on iphones. The forked package should be working without issues. What error do you see on the console?
Hello, I'm trying to use svelte video on a skeleton sveltekit project with SSR enabled. During dev, it returns the following at the first page hit: