Author Topic: $$$ NEED TO BE ABLE TO LOOP/REPEAT VIDEO AND/OR PLAYLISTS  (Read 11542 times)

colinjones

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: $$$ NEED TO BE ABLE TO LOOP/REPEAT VIDEO AND/OR PLAYLISTS
« Reply #15 on: September 29, 2008, 11: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?

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5498
  • DOES work for LinuxMCE.
    • View Profile
Re: $$$ NEED TO BE ABLE TO LOOP/REPEAT VIDEO AND/OR PLAYLISTS
« Reply #16 on: September 29, 2008, 01:38:36 pm »
all playlist code is handled in the Media Plugin.

-Thom

Tommy

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: $$$ NEED TO BE ABLE TO LOOP/REPEAT VIDEO AND/OR PLAYLISTS
« Reply #17 on: September 29, 2008, 06:47:42 pm »
Thanks for having a look Colinjones, and thanks for responding Thom.  ;D

Tommy

colinjones

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: $$$ NEED TO BE ABLE TO LOOP/REPEAT VIDEO AND/OR PLAYLISTS
« Reply #18 on: September 30, 2008, 12:09:24 am »
Don't hold your breath Tommy! I'm far from competant :) Will have a go tho..

Tommy

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: $$$ NEED TO BE ABLE TO LOOP/REPEAT VIDEO AND/OR PLAYLISTS
« Reply #19 on: September 30, 2008, 08: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.

Dale_K

  • Veteran
  • ***
  • Posts: 149
    • View Profile
Re: $$$ NEED TO BE ABLE TO LOOP/REPEAT VIDEO AND/OR PLAYLISTS
« 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)

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5498
  • DOES work for LinuxMCE.
    • View Profile
Re: $$$ NEED TO BE ABLE TO LOOP/REPEAT VIDEO AND/OR PLAYLISTS
« Reply #21 on: December 30, 2008, 12:21:41 am »
No work on this yet, anyone wanna take it?

-Thom

Dale_K

  • Veteran
  • ***
  • Posts: 149
    • View Profile
Re: $$$ NEED TO BE ABLE TO LOOP/REPEAT VIDEO AND/OR PLAYLISTS
« 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 »