# Video Plugin Dev Question

**URL:** <https://forums.plex.tv/t/video-plugin-dev-question/5327>\
**Category:** Dev/API Corner\
**Tags:** plugin-dev\
**Created:** [September 15, 2010, 9:05am UTC](https://forums.plex.tv/t/video-plugin-dev-question/5327 "2010-09-15T09:05:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![gouldja](https://avatars.discourse-cdn.com/v4/letter/g/c67d28/32.png) [@gouldja](https://forums.plex.tv/u/gouldja)\
**Post date:** [September 15, 2010, 9:05am UTC](https://forums.plex.tv/t/video-plugin-dev-question/5327/1 "2010-09-15T09:05:40Z")

</div>

Writing Site.xml Query
Hi,  
  
I am trying to complete the video controller for a plugin I am currently working on. One of the issue I am having is with creating the seek bar. As the seek bar of the flash movie in question consists of multiple colours, making it very hard to generate the list of colours for the tag.  
  
Please could someone advise if they know of any way of providing a given x,y coors to a flash file and get back the hex colours at a particular time, or even better, for a given y row the list of all the pixel hex colours?  
  
Kind Regards,  
  
James

---

<div class="post-metadata">

**Author:** ![sander1](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@sander1](https://forums.plex.tv/u/sander1)\
**Post date:** [September 15, 2010, 1:51pm UTC](https://forums.plex.tv/t/video-plugin-dev-question/5327/2 "2010-09-15T13:51:42Z")

</div>

It depends on the player, but with multiple colours you do not always need to make a list with all those colours, you can also do the opposite and check if something is _not_ a specific colour. Here are two examples to illustrate:  
  
  
  
Type “simple”:

[http://img695.imageshack.us/img695/2134/examplesl.png](http://img695.imageshack.us/img695/2134/examplesl.png)

  
  
Played = everything that's not black  

```auto

<br />
  <seekbar type="simple"><br />
    <start x="0" y="100" /><br />
    <end x="300" y="100" /><br />
    <played><br />
      <not><br />
        <color rgb="000000" /><br />
      <not><br />
    </played><br />
  </seekbar><br />

```

  
  
Played = everything that's brighter than black  

```auto

<br />
  <seekbar type="simple"><br />
    <start x="0" y="100" /><br />
    <end x="300" y="100" /><br />
    <played><br />
      <color op="brighter-than" rgb="000000" /><br />
    </played><br />
  </seekbar><br />

```

  
  
Type "thumb":  

[http://img831.imageshack.us/img831/9783/examplecj.png](http://img831.imageshack.us/img831/9783/examplecj.png)

  
  
Use the white colour of the thumb to determine the position:  

```auto

<br />
  <seekbar type="thumb"><br />
    <start x="0" y="100" /><br />
    <end x="300" y="100" /><br />
    <played><br />
      <color rgb="ffffff" /><br />
    </played><br />
  </seekbar><br />

```

  
  
If you need more help, can you post a screenshot of the player you're creating a Site Config for?

---

<div class="post-metadata">

**Author:** ![gouldja](https://avatars.discourse-cdn.com/v4/letter/g/c67d28/32.png) [@gouldja](https://forums.plex.tv/u/gouldja)\
**Post date:** [September 15, 2010, 2:12pm UTC](https://forums.plex.tv/t/video-plugin-dev-question/5327/3 "2010-09-15T14:12:23Z")

</div>

great thanks for this mate, had not seen this in any docs,   
  
should this help me out I will try and add a Wiki page about this,  
  
Will update you and let you know if this does the trick

---

<div class="post-metadata">

**Author:** ![gouldja](https://avatars.discourse-cdn.com/v4/letter/g/c67d28/32.png) [@gouldja](https://forums.plex.tv/u/gouldja)\
**Post date:** [September 15, 2010, 3:08pm UTC](https://forums.plex.tv/t/video-plugin-dev-question/5327/4 "2010-09-15T15:08:57Z")

</div>

FYI Here is an image of the player in question:

[![](http://i51.tinypic.com/xdsb35.jpg) ](http://i51.tinypic.com/xdsb35.jpg)

  
  
  
The earlier resolution should hopefully work. The only other issue I can see in having is that the seek bar only appears for 5 seconds after an interaction with the flash player  
  
![untitled.bmp|690x362](upload://3885efFnrlWEw0J9Zi4wIOClCgb.bmp)

---

<div class="post-metadata">

**Author:** ![gouldja](https://avatars.discourse-cdn.com/v4/letter/g/c67d28/32.png) [@gouldja](https://forums.plex.tv/u/gouldja)\
**Post date:** [September 15, 2010, 5:25pm UTC](https://forums.plex.tv/t/video-plugin-dev-question/5327/5 "2010-09-15T17:25:41Z")

</div>

Hmm,  
  
  
  
not sure there is something different about the way this flash play is acting.  
  
  
  
I am working on the ITV Player plugin [http://wiki.plexapp.com/index.php/ITV\_Player](http://wiki.plexapp.com/index.php/ITV_Player)  
  
  
  
I have managed to update the site config xml to do the play/pause by using the flash players javascript methods, unfortunately they do not expose any seek method,  
  
  
  
when testing the seekbar settings i did not seem to be able to get the app to do anything, it always reported 0 played, even when trying dimmer than a value, then trying again with brighter than another value,  
  
  
  
any help for any one who has seen this sort of issue greatly appreciated,  
  
  
  
thanks

---

<div class="post-metadata">

**Author:** ![sander1](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@sander1](https://forums.plex.tv/u/sander1)\
**Post date:** [September 15, 2010, 7:15pm UTC](https://forums.plex.tv/t/video-plugin-dev-question/5327/6 "2010-09-15T19:15:52Z")

</div>

Hi!

> [@](#):
>
> great thanks for this mate, had not seen this in any docs

  
For anybody looking for info on this, there's a [dev page](http://dev.plexapp.com/docs/Configs.html) and a [Wiki page](http://wiki.plexapp.com/index.php/Creating\_Plugins\_Site\_Config) available.  
  

> [@](#):
>
> The only other issue I can see in having is that the seek bar only appears for 5 seconds after an interaction with the flash player

  
If the player hides its controls/seekbar you'd better stop trying to get this to work :( (unless you can use javascript to operate the controls or can write an extra flashvar into the page that prevents the player from hiding things).

---

<div class="post-metadata">

**Author:** ![gouldja](https://avatars.discourse-cdn.com/v4/letter/g/c67d28/32.png) [@gouldja](https://forums.plex.tv/u/gouldja)\
**Post date:** [September 16, 2010, 8:44am UTC](https://forums.plex.tv/t/video-plugin-dev-question/5327/7 "2010-09-16T08:44:49Z")

</div>

Thanks for the info, saved me a lot more messing around.  
  
  
  
Hopefully the player will expose a timer/seek functionality via javascript in due course.   
  
  
  
Kind Regards

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 20, 2019, 8:46pm UTC](https://forums.plex.tv/t/video-plugin-dev-question/5327/8 "2019-12-20T20:46:03Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
