Video Plugin Dev Question

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

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



Played = everything that's not black

<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

<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



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

<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?

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

FYI Here is an image of the player in question:





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)

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



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

Hi!



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.


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).

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

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