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
We found this bug in Opencast*, but after research. I found that the code in paella core also is affected over this potential error.
*Live streaming is not load in Paella 7 because there is no default preview image.
What is the error,
If the media doesn't have videoPreviewand videoPreviewPortrait and is not set in config.json a default value (defaultVideoPreviewPortrait and defaultVideoPreview) paella will fail to load the media.
As stated in the documentation, this is not a bug, it is the normal behaviour. It is mandatory to always have a preview image, because due to browser security settings, autoplay may not be available, even for live videos.
The first solution you propose is not feasible, because if the browser blocks autoplay, in some situations it can cause usability problems.
As for the second solution, I don't understand why you find this option better than simply defining a default image in the configuration, as the solution you propose also depends on having metadata available, whereas the default preview image always works.
If you are still interested in implementing the second option, you could do so without modifying paella-core, by overriding some of the initialisation functions to provide a data URL in the defaultVideoPreview and defaultVideoPreviewPortrait fields. It is easy to generate an image from text using an HTML Canvas, from which you can get a data URL that you could place in these fields.
Hi,
We found this bug in Opencast*, but after research. I found that the code in paella core also is affected over this potential error.
*Live streaming is not load in Paella 7 because there is no default preview image.
What is the error,
If the media doesn't have
videoPreview
andvideoPreviewPortrait
and is not set inconfig.json
a default value (defaultVideoPreviewPortrait
anddefaultVideoPreview
) paella will fail to load the media.The potential error is here:
paella-core/src/js/Paella.js
Lines 96 to 100 in a3ef034
Suggested fixes:
I think the two suggestions can be implemented simultaneously. What are your thoughts?
The text was updated successfully, but these errors were encountered: