question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

video-js does not work with Primefaces 10

See original GitHub issue

Hi, I have a simple xhtml page with a video-js tag:

        <h:outputScript name="video-js/video.min-7.3.0.js" target="head" />
        <h:outputScript name="video-js/http-streaming.min-1.11.1.js" target="head" />
        <h:outputStylesheet name="video-js/video-js-7.5.5.css" />
...
<h:form>
...
<video
    id="player"
        class="video-js vjs-default-skin"
        width="854" height="480"
        data-setup='{"html5": {"hls": {"withCredentials": true}}, "controls": true, "autoplay": true, "muted": false}'
>
    <source src="#{recorder.mediaURL}"
            type="#{recorder.mediaMimeType}"/>
</video>
...

Using Primefaces 8.0.2, the video tag works fine, the player starts and play the video correctly.

Using Primefaces 10.0.0, the video tag does not work and console provides the following errors:

Uncaught TypeError: v.setTimeout is not a function at _t (video.min-7.3.0.js.xhtml:12)

Uncaught TypeError: Cannot read property ‘mergeOptions’ of undefined at http-streaming.min-1.11.1.js.xhtml:1685

Best regards

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
mellowarecommented, Mar 31, 2021

If someone creates a small reproducer i can look at it and try and see what is causing it but it definitely seems to be a JS conflict.

0reactions
mellowarecommented, Apr 2, 2021

Closing this ticket for now until @giulianoc can provide a reproducer as @jepsar has tested on 10.0.0 and its working fine. I will reopen if @giulianoc can provide a test case.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - Video.js
A guide to troubleshooting common issues with Video.js.
Read more >
jsf 2 - Video (p:media) does not start - Stack Overflow
When using StreamedContent, I start to render after loading the video. My config: PrimeFaces 3.5; Apache MyFaces 2.1.12; Jetty 9.0.4. What can ......
Read more >
player is already initialised options will not be applied, videojs
The output video is working fine in IE 10 but it is not working perfectly in Chrome. scrubbing( isScrubbing ) Returns whether or...
Read more >
VideoJS setup guide to scale for responsive design on all ...
I have a html-website and I don't use any div. I put the code in a table and I don have no problems...
Read more >
Showcase examples not working on IE - PrimeFaces forum
I was testing some stuff on my site that was not working in IE10 but working fine in chrome/firefox & then I checked...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found