PLEASE READ BEFORE POSTING:

This is a special forum if you're willing to offer some sort of compensation to developer(s), otherwise use the Feature request forum. Start a new topic explaining the task and your offer. Interested developers reply to that post, so each thread represents a unique offer. Services like rentacoder.com can facilitate things like escrows. The initiator should edit his original post to prepend ***CLOSED*** to the subject when an offer is accepted. Please add any active tasks to the Roadmap Wiki. Thanks.
LinuxMCE Forums
May 19, 2013, 09:59:52 pm GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: 1 [2]
  Print  
Author Topic: $$$ NEED TO BE ABLE TO LOOP/REPEAT VIDEO AND/OR PLAYLISTS  (Read 9578 times)
colinjones
Alumni
LinuxMCE God
*
Posts: 3003


View Profile
« Reply #15 on: September 29, 2008, 10:45:33 am »

hari - don't suppose you can point me to the code that handles the playlist stuff? (both video and audio if possible) Is it the Mediaplugin, or Orbiter, something else?
Logged
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #16 on: September 29, 2008, 12:38:36 pm »

all playlist code is handled in the Media Plugin.

-Thom
Logged
Tommy
Newbie
*
Posts: 11


View Profile
« Reply #17 on: September 29, 2008, 05:47:42 pm »

Thanks for having a look Colinjones, and thanks for responding Thom.  Grin

Tommy
Logged
colinjones
Alumni
LinuxMCE God
*
Posts: 3003


View Profile
« Reply #18 on: September 29, 2008, 11:09:24 pm »

Don't hold your breath Tommy! I'm far from competant Smiley Will have a go tho..
Logged
Tommy
Newbie
*
Posts: 11


View Profile
« Reply #19 on: September 30, 2008, 07:57:25 am »

Just the response was good enough for me, I tried to have a look at the media plugin source myself, if I knew what I was looking for I could help too.
Logged
Dale_K
Veteran
***
Posts: 149


View Profile
« Reply #20 on: December 30, 2008, 12:09:38 am »

Any news on this?  I too would be willing to pay for this ability.  (Video playlists auto looping)
Logged
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #21 on: December 30, 2008, 12:21:41 am »

No work on this yet, anyone wanna take it?

-Thom
Logged
Dale_K
Veteran
***
Posts: 149


View Profile
« Reply #22 on: February 07, 2009, 08:36:24 pm »

GOT IT!!!

As usual a big thanks to all the help from the devs, TSChak, TKMedia, Zaerc, Hari, to name a few.  Thanks a ton guys.

Here is what I did.  And I'll be making a wiki page for it as well.

So, I got my dev environment and I start sifting through the Media_Plugin files for anything related to StoredVideo, Playlist, Repeat, Loop, etc.  With no luck at all.

So I start thinking, maybe it's in the player itself, I do the above for Xine as well, no love.  Then I find Xine_Plugin.

In Xine_Plugin there is a file called XineMediaStream.cpp and at the bottom of that file I see this:

      // do not remove the playlist when we are playing stored audio. (it will just confuse the user)
      if ( m_iPK_MediaType == MEDIATYPE_pluto_StoredAudio_CONST && m_iRepeat != -1)
         return true;

      return MediaStream::CanPlayMore();

So I think to myself "Maybe if I do the same for StoreVideo, my shit will replay.  And I cut/paste the first if statement changing StoredAudio to StoredVideo and DVD so it ends up like this.

      // do not remove the playlist when we are playing stored audio. (it will just confuse the user)
      if ( m_iPK_MediaType == MEDIATYPE_pluto_StoredAudio_CONST && m_iRepeat != -1)
         return true;

      if ( m_iPK_MediaType == MEDIATYPE_pluto_StoredVideo_CONST && m_iRepeat != -1)
         return true;
 
      if ( m_iPK_MediaType == MEDIATYPE_pluto_DVD_CONST && m_iRepeat != -1)
         return true;


      return MediaStream::CanPlayMore();

Save file
Run 'make so'
Copy said Xine_Plugin.so to /usr/pluto/bin
Reload Router
And Video Playlists now loop!!

As I said I'll post detailed instructions on the wiki.  Thanks again to the folks that helped me with the mechanics of working with a development environment, couldn't have done it without you.

Edit:

Here is the wiki page: http://wiki.linuxmce.org/index.php/Video_Playlist_-_Enable_Looping
« Last Edit: February 11, 2009, 12:34:27 am by Dale_K » Logged
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!