Jump to content


These Forums Are Now Read-Only


For TubePress support, please post a question here or open a support ticket and we will be glad to assist.


Photo

Custom Player Javascript?


  • Please log in to reply
2 replies to this topic

#1 Michael Bloom

Michael Bloom

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 22 May 2013 - 07:08 PM

We're using the TubePress Pro plugin within a WP environment.

 

I know that I can create custom player templates and place those under the tubepress-content/themes directory.  Is it possible to use custom javascript for a player in much the same way?

 

Specifically, I need to modify the web/players/normal/normal.js file to adjust the scrolling to the video title upon selection.  I'd rather not modify the plugin code directly to avoid upgrade overwrites.

 

Is this possible, and if so, what needs to be done?

 

Thanks!



#2 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 23 May 2013 - 11:02 PM

Michael,

 

I have forwarded your question to one of our developers.  We will have an answer for you soon.

 

Thanks for your patience!


Want a faster, more personalized support experience? Open a ticket with us! We will be gradually phasing out forum-based support in favor of a proper ticketing system. Please help us help you!


#3 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 25 May 2013 - 05:48 PM

Michael,

 

There is no "upgrade proof" way to modify the JS files that TubePress supplies at the moment, however it is in the works for 3.1.0

 

If you are comfortable doing so, you can comment out this line: https://github.com/e...l/normal.js#L55

 from your copy of src/main/web/players/normal/normal-dev.js.  You then need to swap the contents of your new src/main/web/players/normal/normal-dev.js

 with src/main/web/players/normal/normal.js and that will prevent the scrolling feature that you are referring to.

 

Let us know

Thanks!


Want a faster, more personalized support experience? Open a ticket with us! We will be gradually phasing out forum-based support in favor of a proper ticketing system. Please help us help you!