IPB

Welcome Guest ( Log In | Register )

foo_default_videoplayer, Plays your video in foobar2k with default external player
Santa Sam
post Jan 20 2007, 12:28
Post #1





Group: Members
Posts: 17
Joined: 23-August 06
Member No.: 34364



Allows you to play your video clips from foobar playlist with an external player. Foobar2000 v0.9.4.2.

Screenshot:


Download (version 0.1.3)

New version with config form.

This post has been edited by Santa Sam: Mar 10 2007, 19:29
Go to the top of the page
+Quote Post
 
Start new topic
Replies
TheBlackCat
post May 31 2007, 18:10
Post #2





Group: Members
Posts: 21
Joined: 20-February 07
Member No.: 40775



Monitoring would be difficult to do universally. However, controlling playback might not be. All you would have to do is make it so the extension projects keyboard shortcuts when in video mode. The users can then set the shortcuts to be whatever they want. So for instance if the extension has sent a video to the external player, pushing the pause button does not cause Foobar to pause but instead types out a user-defined set of keyboard commands that correspond to the "pause" keyboard shortcut for the external player, thus pausing the movie. The same could be done for fast-forward and rewind. This could be extended to Foobar's own custom keyboard shortcuts, so pressing the pause keyboard shortcut for Foobar causes Foobar to then "press" the pause keyboard shortcut for the video player.

Whether next, previous, shuffle, and repeat buttons should be based on keyboard shortcuts or control the playlist should probably be user-defined. For instance I use KMplayer, which does a good job of automatically grouping videos that might want to be played in a sequence into a playlist. For that reason it would be better for forward, back, shuffle, and repeat to control that player rather then my foobar playlist. But other people would probably feel differently or organize their videos differently, so for them it might be better for the buttons to control the Foobar playlist.

You could even include the default shortcut keys for a variety of popular video players from a dropdown menu. But you will still need to let users input their own.

One complication is telling Foobar when to use the shortcut and when to use the commands normally. The only way I can think of to do this is for the plugin to simply remember the last files that was played. If that file was a video file then the plugin uses the shortcuts. If the last file was an audio file then buttons operate normally. This obviously wouldn't work if you start a video and then play music while the video is still going, but I don't see any way around this short of monitoring the video player.

The second complication is the play/pause button. If you hit the play/pause button and a video is not playing you want it to be sent to the external player. But if a video is playing and you hit the play/pause you want it to pause or unpause. The only thing I can think of is for the plugin to remember the video that was last played and compare that to the currently selected video in the foobar playlist. If these are the same the play/pause button acts as a pause/unpause button. If they are different it sends the video to the external player. Once again this not the optimal solution but I see no other practical way to do it. This doesn't matter for the play button, which always causes the file to restart anyway.

I wouldn't think this would be that hard to do, and would allow you to control the external video player with foobar. I'm not sure how easy it is for the plugin to remember what the last file played was, but I can't imagine it being that difficult and could simply be based on the filename and full path of the video (not more than a few hundred bytes and readable off titleformat). Obviously this isn't a perfect solution since Foobar cannot actually tell what is happening in the other player. But it is simple, universal, and better than nothing.

This post has been edited by TheBlackCat: May 31 2007, 18:13
Go to the top of the page
+Quote Post

Posts in this topic
- Santa Sam   foo_default_videoplayer   Jan 20 2007, 12:28
- - foosion   QUOTE (Santa Sam @ Jan 20 2007, 12:28) Pl...   Jan 20 2007, 13:51
- - Bl@ck_warrior   QUOTE Supported extensions: avi, mpg, mpeg, wmv, f...   Jan 20 2007, 14:39
|- - Santa Sam   QUOTE (Bl@ck_warrior @ Jan 20 2007, 07:39...   Jan 20 2007, 19:15
- - Yotsuya   I'd like to request support for .ifo files.. s...   Jan 20 2007, 18:02
|- - Santa Sam   QUOTE (Yotsuya @ Jan 20 2007, 11:02) Also...   Jan 20 2007, 21:20
- - BlueScreenJunky   QUOTE (Bl@ck_warrior @ Jan 20 2007, 05:39...   Jan 20 2007, 22:36
- - mquander   I'm idly curious what situation the poster and...   Jan 21 2007, 02:39
|- - 2Pacalypse   QUOTE (mquander @ Jan 21 2007, 01:39) I...   Jan 21 2007, 15:36
- - pIv   This plugin not work on my PC (XP +SP2, check all ...   Jan 21 2007, 11:44
- - q-stankovic   The only reason i can see to use foobar to start ...   Jan 21 2007, 15:22
|- - Santa Sam   QUOTE (q-stankovic @ Jan 21 2007, 08...   Jan 21 2007, 16:06
- - M   Interesting. Rather than launching the default vid...   Jan 21 2007, 17:27
- - 2Pacalypse   is there any where to configure the plugin? i coul...   Jan 21 2007, 18:46
- - pIv   My foobar don't play avi with version 0.1.1 pl...   Jan 22 2007, 06:35
|- - Keikonium   QUOTE (pIv @ Jan 22 2007, 00:35) My fooba...   Jan 23 2007, 09:06
- - 2Pacalypse   well i installed it, added video files and none of...   Jan 23 2007, 18:30
|- - Spirit_of_the_ocean   @2Pacalypse: Add Videofiles to your playlist then ...   Jan 23 2007, 20:40
|- - Santa Sam   QUOTE (Spirit_of_the_ocean @ Jan 23 2007, 13...   Jan 24 2007, 15:55
|- - Spirit_of_the_ocean   I will try the new version If the same behaviour...   Jan 24 2007, 16:07
|- - Santa Sam   QUOTE (Spirit_of_the_ocean @ Jan 24 2007, 09...   Jan 24 2007, 16:14
- - Keikonium   I just updated to the version 0.1.2 and there is a...   Jan 25 2007, 06:51
- - Psyphre   I dont understand why people are against foobar ma...   Jan 29 2007, 07:49
- - vertigo1980   could you add mkv extension support?   Feb 4 2007, 06:09
- - safemode   If only it can play electric sheep's mpeg file...   Feb 4 2007, 14:08
|- - Spirit_of_the_ocean   Could you post a sheepmpeg? I couldn`t find so...   Feb 4 2007, 14:31
|- - safemode   QUOTE (Spirit_of_the_ocean @ Feb 4 2007, 21...   Feb 4 2007, 17:56
|- - Spirit_of_the_ocean   The "few clips" are working for me An...   Feb 4 2007, 20:07
|- - safemode   QUOTE (Spirit_of_the_ocean @ Feb 5 2007, 03...   Feb 5 2007, 00:29
|- - Spirit_of_the_ocean   The problem is that there seems to be no interest ...   Feb 5 2007, 10:07
- - hoaznod   just wanted to say that i've used foobar2000 f...   Feb 5 2007, 14:53
- - 2Pacalypse   i'm using version 1.2 it shows up in the pref ...   Feb 8 2007, 19:56
- - Santa Sam   Version 0.1.3 with config form released. Now you c...   Mar 10 2007, 19:33
|- - Spirit_of_the_ocean   QUOTE (Santa Sam @ Mar 10 2007, 19:33) Ve...   Mar 10 2007, 20:21
- - Santa Sam   QUOTE Maybe you shouldn't associate WMV with F...   Mar 10 2007, 20:29
|- - Spirit_of_the_ocean   These problems with my player are really annoying....   Mar 10 2007, 21:13
- - Santa Sam   2 Spirit_of_the_ocean I've just tried Gomplay...   Mar 10 2007, 21:30
|- - Spirit_of_the_ocean   I updated my columns ui the last days maybe thats ...   Mar 11 2007, 10:14
- - vertigo1980   works perfect here, thanks santa sam   Mar 11 2007, 13:08
- - Spirit_of_the_ocean   Another thing I recognized using panel ui works al...   Mar 11 2007, 13:53
- - Swoy   Hi guys! This is a plugin with insane possibil...   Mar 13 2007, 12:40
- - Jugdish   I'm unable to get foobar to import all of the ...   Mar 19 2007, 03:05
- - Santa Sam   Jugdish, I have tried foobar with components that ...   Mar 25 2007, 20:04
- - haste   in my case the plugin works well with both mplayer...   May 9 2007, 09:20
- - Santa Sam   2 haste It is exactly that i want to implement - t...   May 23 2007, 19:05
- - TheBlackCat   Monitoring would be difficult to do universally. ...   May 31 2007, 18:10
- - dev   Hi I can`t run this plugin, it says it`s i...   Dec 19 2007, 23:50
- - dev   I needed "vcredist_x86.exe" - now it...   Dec 20 2007, 13:38
|- - lctm   QUOTE (dev @ Dec 20 2007, 06:38) I needed...   Sep 28 2008, 17:59
- - Middy   Sorry for bringing up an old thread, just have a q...   Jan 12 2009, 11:47
- - ivareske   This plug-in works great, except that when the vid...   Jun 2 2009, 21:09
|- - randal1013   QUOTE (ivareske @ Jun 2 2009, 16:09) This...   Jun 2 2009, 22:07
|- - ivareske   QUOTE (randal1013 @ Jun 2 2009, 22:07) QU...   Jun 3 2009, 19:06
|- - Porcus   QUOTE (randal1013 @ Jun 2 2009, 22:07) QU...   Dec 13 2010, 20:12
- - ivareske   Replying myself...: Ok, maybe this is exactly what...   Jun 3 2009, 19:08
- - ThibWay   Hi, I would greatly appreciate using foobar to lis...   Nov 10 2009, 18:33
- - 2E7AH   CODEhttp://www.megaupload.com/?d=XLTGCCNO   Nov 10 2009, 20:18
- - ThibWay   Ty very much but it doesn't work ... It keep...   Nov 10 2009, 20:32
- - 2E7AH   QUOTE Allows you to play your video clips from foo...   Nov 10 2009, 20:37
- - juliaw87   Oh my gosh, this is the best plug-in idea ever. I ...   Jan 8 2010, 06:48
- - dzid_   Hey guys - simple workaround which will make this ...   Nov 11 2012, 17:52
- - xceller8ion   I am also very interested in trying this plugin ho...   Dec 4 2012, 03:41
- - Takaji   Considering that the OP has not been seen on the f...   Dec 4 2012, 07:38


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 26th November 2014 - 21:28