JW Player: cross-browser “display:none” player behavior

后端 未结 3 1458
孤街浪徒
孤街浪徒 2021-01-06 17:21

Is there a simple, upfront method to have FF and IE treat hidden JW Players the same?

I am placing different instances of the player dynamically in jQuery generated

3条回答
  •  温柔的废话
    2021-01-06 17:48

    Sorry my friend. I've a big trouble that doesn't make me sleep... I've a site with: - a div with a video (jwplayer) - a div with a gallery (lightbox, on click popover of image)

    If video play and a user (only with IE) click on a image, the popover appears over video, the video continues to play (ok!) but video goes blank! When I close image popover, video timeline play normally but video is still blank (all black).

    I've been try to use what you wrote here but without success. This is the script I must use to insert jwplayer.

    player should load here

    I tried also to stop via js video before open popover (player1.sendEvent('STOP');): video stops, but if I click on play button, remains black.

    I tried also to remove video element via jquery, saving it in a variable. Then I insert a button "restore video": in Chrome works, in IE reappear video object, it play but all black. Thanks

提交回复
热议问题