You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, basically I want to limit it to a specific platform, 'flash' in this example (any other would produce the same error, though). Projekktor fails in that case with an error message in line 2680 (function _getTypeFromFileExtension).
The problem is that the regex in the try/catch block before this line ALWAYS fails (at least in my case). The regex never returns a proper result because the function parameter url is not a string but an array. This then always sets fileExt='NaN' in the catch block. This file extension is not part of the extTypes array and so an error is thrown.
I just found out that the file extension "NaN" exists if you don't limit the platforms and therefore this error does not popup though the regex fails here, too.
Can someone confirm this?
The text was updated successfully, but these errors were encountered:
Yeah, thanks - this works now. Would be a good idea to add it by default in order to avoid this pitfall. But is the regex functioning properly? I was somewhat confused it always returns NaN in my cases. But maybe I just did not look close enough.
I'm not quite sure if this is a bug or misconfiguration on my site but I've ran into the following problems:
I'm having a video element like this one:
Which I'm initializing with these options:
So, basically I want to limit it to a specific platform, 'flash' in this example (any other would produce the same error, though). Projekktor fails in that case with an error message in line 2680 (function _getTypeFromFileExtension).
The problem is that the regex in the try/catch block before this line ALWAYS fails (at least in my case). The regex never returns a proper result because the function parameter
url
is not a string but an array. This then always setsfileExt='NaN'
in the catch block. This file extension is not part of the extTypes array and so an error is thrown.I just found out that the file extension "NaN" exists if you don't limit the platforms and therefore this error does not popup though the regex fails here, too.
Can someone confirm this?
The text was updated successfully, but these errors were encountered: