Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

QuickMediaPlayer v0.3 - Drag & Drop Media Player


  • Please log in to reply
4 replies to this topic
jballi
  • Members
  • 1029 posts
  • Last active:
  • Joined: 01 Oct 2005
Introduction
QuickMediaPlayer is a script that I originally wrote several years back for fun and as an example for the MCI Library. It has become one of my alternative/secondary media players. I use to to play short audio clips and the occasional CD. I keep a copy on my flash drive so I have access to a media player wherever I go.

QuickMediaPlayer
Key features:
[*:20stq5ox]Quick & Lightweight.

[*:20stq5ox]Play Anything. Well, almost. By default, the program will play any audio or video file that the computer is configured to play.

[*:20stq5ox]Drag & Drop. Drop any file(s) or folder(s) on the program window to play.Key limitations:
Tags. The program does not extract tag (ID3v1, ID3v2, APEv2, etc.) information from the media files to determine the title, artist, etc. The OS file name is used to identify the media file.

[*:20stq5ox]Volume. Changing the volume from the player will change the volume for the entire computer.Screenshots
Posted Image
Posted Image
Posted Image

The Code
The pertinent files are as follows:Project: QuickMediaPlayer.zip (Includes source, icons, and EXE)
Documentation: Future
Issues/Considerations/Limitations
[*:20stq5ox]Media Supported. The player uses the Windows Media Control Interface (MCI) to play media files. Only files with extensions that are registered MCI file extensions (Ex: *.mp3, *.wav, etc.) can be played. See the documentation in the MCI Library for additional information.

[*:20stq5ox]Audio CDs. The player is able play standard audio CDs but is unable to play most Enhanced CDs.

[*:20stq5ox]Playlists. The routines to load playlists (*.m3u, *.pls, and *.wpl files) is limited and may not work correctly for some playlist files.

[*:20stq5ox]VBR Length. This is a known issue. When playing an MP3 encoded with a variable bit rate (VBR), the MCI API will return a length value that is (usually) larger than the actual media length. This "bug" only affects the length displayed in the title and the status bar. It does not affect playback.

[*:20stq5ox]External functions. This script uses external functions which have been included in a "_Function" folders. Some of the functions are mine and should be clearly marked and documented. Functions written by others should be clearly marked but may contain custom modifications. Thanks to the original authors for sharing their work.

[*:20stq5ox]Documentation. With the exception of this post, there is no user documentation. Most (all?) of the keyboard shortcuts are identified on the menus (Menu button or context menu (right mouse click)) and the Tooltips.

[*:20stq5ox]Future. Although I will be happy to fix obvious bugs, I have no plans to make significant enhancements to this script.References
MCI Library
http://www.autohotke...pic.php?t=35266
---------------------------------------------------------------------------
Release Notes

v0.3

First release.


HighRiseWriter
  • Members
  • 36 posts
  • Last active: Jun 29 2015 06:40 AM
  • Joined: 15 Jan 2011
I wrote an app in AHK that keeps tracks of my audio stories (mp3 format). I use QuickMediaPlayer when I need to listen to parts of a story if I need information from it.

I use the following code snippet to call it...

LV_GetText(SelectedFullPath, ControlItem, 4) ;Gets the path and name of the file from my ListView
FileDelete, C:\Program Files\QuickMediaPlayer\QuickMediaPlayer.PL$
FileAppend, %SelectedFullPath%, C:\Program Files\QuickMediaPlayer\QuickMediaPlayer.PL$
Run, C:\Program Files\QuickMediaPlayer\QuickMediaPlayer.exe
Sleep, 1000
Click 50, 50 ;Too butt lazy to hit the Play button so it does it automatically.
MouseMove, 110,50 ;Even lazier to move over to the Stop button so...
return

Most of the time after listening to files three or four times one after another, QuickMeidaPlayer will freeze up when I try to close it.

It will close just fine the other times but then it just won't. I get a Not Responding message on the title bar and I have to force it closed. Then even after killing the process in Task Manager, I can't bring it back up again without restarting the PC.

Any ideas?

jballi
  • Members
  • 1029 posts
  • Last active:
  • Joined: 01 Oct 2005

Most of the time after listening to files three or four times one after another, QuickMeidaPlayer will freeze up when I try to close it.

It will close just fine the other times but then it just won't. I get a Not Responding message on the title bar and I have to force it closed. Then even after killing the process in Task Manager, I can't bring it back up again without restarting the PC.

Any ideas?

I hate it when that happens! :x :)

I'm not sure why the script is locking up but if you have time, I'd like you to try a few things. I'll PM you with more information.

ScripterZ
  • Members
  • 49 posts
  • Last active: Feb 20 2012 10:23 AM
  • Joined: 28 Sep 2011
I'm also having issues with the player.
After the 4th song finishes, or I play a song #5 or greater on the list it freezes and I'm forced to close the program.
Other than that, great work. :)
To-do list:
1) Add signature.
2) Stop procrastinating.

jballi
  • Members
  • 1029 posts
  • Last active:
  • Joined: 01 Oct 2005

I'm also having issues with the player.
After the 4th song finishes, or I play a song #5 or greater on the list it freezes and I'm forced to close the program.

I'm sorry you're experiencing a problem. I'll PM you with a follow up.