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

Main Menu

$$$ NEED TO BE ABLE TO LOOP/REPEAT VIDEO AND/OR PLAYLISTS

Started by Tommy, September 18, 2008, 05:04:01 PM

Previous topic - Next topic

colinjones

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


Tommy

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

Tommy

colinjones

Don't hold your breath Tommy! I'm far from competant :) Will have a go tho..

Tommy

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

Any news on this?  I too would be willing to pay for this ability.  (Video playlists auto looping)

tschak909


Dale_K

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