Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Trying to implement feature #782 (cuepoints functionality)

5 replies [Last post]
Reply

Hi there,

Recently I've run into this feature request http://developer.longtailvideo.com/trac/ticket/782 which looks exactly like what I'm trying to achieve with jwplayer. The cuepoints will come from a separated xml file, however. And the functionality will have to work for both HTML5 and Flash.

I've decided to take on the task, but being new to jwplayer, I don't really know where to start. I've looked at the source code and felt a bit overwhelmed. (I've never done ActionScript before)

Can someone please point me to the right direction? Where to start, which files to modify...? Is it easier to disable the control bar and write my own control bar? I assume this wont work in fullscreen Flash.

Thanks.

Reply

@hellocrowley -

If you're completely new to the player and to ActionScript, I would recommend building a player plugin first. This will give you some familiarity with developing in ActionScript, and will give you some experience with how the player works without delving too deeply into the guts of the player. Once you're more familiar, you can get a little more involved with player customization.

Here's a guide to get you started:

http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/17679/building-flash-plugins

Reply

Thanks. I've actually built a JS plugin that adds markers along with tooltips to the progress bar but it's very hacky.

I'm hoping to be able to implement the feature in JS/HTML5 first, because Flash is not absolutely required for my project. Fullscreen support is not mandatory now but I'm trying to plan for the future in case my boss changes his mind.

Reply

@hellocrowley -

JS/HTML5 should be a bit easier, since you'll just be working in JavaScript and HTML. We have an "official" HTML5 plugin API which allows plugin logic to be contained in an external file and loaded via the player's configuration, but you'll probably still need to do some hacky DOM manipulations to get a tooltip plugin to work properly.

http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/18504/building-javascript-plug...

We actually already have a plugin in our AddOns library which does more or less the same thing:

http://www.longtailvideo.com/addons/plugins/259/TimeSlider-Tooltip-Plugin

Reply

Thanks PabloS,

This is actually the route I'm taking because modifying the source code could be a daunting task. I disabled the player's native controls and wrote my own external controls in JS. Was able to have a prototype in a few hours, the only problem is annotations & controlbar won't show up in Flash fullscreen, but that question will go to another thread.

Reply

hellocrowley
I am looking something similar to this for some time. I am trying to develop an editing page where I need the control bar to show the highlights of the clip parts. If it is ok can you please share the code you are trying to develop. That would be of great help. Thanks in advance.

Post new comment

  • Allowed HTML tags: <code> <blockquote> <em> <strong> <strike> <ul> <li> <ol>
  • You may post code using <code>...</code> .
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options