Ticket #1120 (closed feature: wontfix)

Opened 3 years ago

Last modified 7 months ago

Lightbox support

Reported by: zach Owned by: jeroen
Priority: Normal Milestone: Backlog
Component: general Keywords:
Cc: Forum thread:

Description (last modified by jeroen) (diff)

It'd be cool to add lightbox like support to the player, the way e.g. the "zoomable thumbnails" from Sublime do:

 http://sublimevideo.net/demo

A few ways to do this may be:

  1. Have the plugin create a very small player and dump a thumb on top of it. When clicking, the original dimensions are re-set and some JS magic is used to absolute-position the player and add the grey sheet.
  2. Having a way in the API to block the player rendering. Next, when the thumbnail is clicked, the plugin resumes the rendering.

Change History

comment:1 Changed 3 years ago by zach

I'm not sure this is the best way to handle this. I think writing a JS plugin / updating JW Box / providing code samples is better, as this isn't trivial.

Questions we'd have to answer:

  • Where does render() actually put the player HTML? Is it in the same location or a different div? (most light boxes have to create another div to black out the background)
  • How would this flow work between render and setup? Would you call render(config) then setup()? Would render() imply setup()?
  • I think for this example, just adding the render() isn't sufficient - I think that we'd also need an onClick handler, right? (someone's requested this for a different reason as well)

comment:2 Changed 2 years ago by jeroen

Another plugin that'd need more or less similar features is one that does lights off. The plugin needs to do the following:

  1. Wrap the player DIV in another relative positioned div.
  2. Make the player DIV absolute positioned.
  3. Drop a DIV in the <body> that will act as the semitransparent backdrop.

So, like the lightbox plugin, this one is actually doing stuff around the player instead of inside it.

I'm also not convinced a jwplayer().render() option is needed. We are looking at a new class of plugins that was not available within actionscript though; we should keep an eye on how to support them best.

comment:3 Changed 13 months ago by jeroen

  • Owner set to jeroen
  • Priority set to Normal
  • Description modified (diff)
  • Summary changed from jwplayer().render() to Lightbox support

comment:4 Changed 9 months ago by jeroen

  • Component changed from embedder to general

comment:5 Changed 7 months ago by pablo

  • Status changed from new to closed
  • Resolution set to wontfix

This should not be a player feature

Note: See TracTickets for help on using tickets.