I am very confused as to how one would go about this. I want to use Batch to start an .mp3 file and while typing start file.mp3 plays the file, it opens the Media Player to do so. How would I play a music file in the background, but also have the ability to stop it whenever I please?
Windows Media Player with all its bells and whistles is not suitable for noninteractive listening. Use older version instead, which opens just a small window with a few necessary controls, plays the file and exits:
Mplay32.exe /Play /Close "file.mp3"
You may find more inspiration at
http://vitsoft.info/skimid3.htm#TalkingPlayer
Related
I made an app recently that I'm proud of. It's an alarm that plays music at a designated time. I use the Windows Command Prompt to play the .mp3 file. I'm using C, so I've been trying to use the system() method. However, I've realized that this won't work on computers that have Windows 11, as they got rid of Windows Media Player being installed with Win11. I also have Win11, but it worked on my computer because I installed it.
Win11's media player is called "Media Player," and I can't find a way to play mp3 files through the command line with it. I've tried "fmedia," "wmplayer," "start," and others but none of them work.
So how can I play an mp3 file on Windows 11 using the Command Prompt without installing extra software?
Ok, so I have 0 experience with this, yet I managed to put this together by reading from different forums:
:loop
"sndrec32 /play /close
"C:\Users\...\sound.mp3"
timeout /t x
goto loop
It plays a sound every x seconds. Is there a way to make it play the sound without the media player popping-out on the screen, and when it's done playing the sound - to close itself (the player)? What about the command promt not popping-out on the screen? I basically want to have as few pop-ups on the screen as possible when launching the file.
Thanks!
EDIT: Solved, see my reply
With MediaPlayer ActiveX object . This could be problem for a people without installed MediaPlayer (e.g. Windows XP required genuine authentication in order to install it) and it can acts differently on different windows versions (e.g. on some windows version auto closing does not work as expected). Here's my implementation (does not create temporary files).Example:
call mediaRunner.bat "C:\Windows\Media\Ring05.wav"
On every windows machine there are installed SP ActiveX objects which are capable to run .wav files (no mp3 and so on). Here's one script.Expample:
call spPlayer.bat "C:\Windows\Media\Ring05.wav"
and we have also HTA/InternetExplorer applications and their bgsound tag.Which also allows you to control the volume of the played song:
call htaplayer.bat "C:\Windows\Media\Ring05.wav" -1000
It is an ancient binary file extension, actually a video file created by Inter-Tel Web Conference software. It contains a screen recording video and voice audio, and also can capture the keyboard chat log, attendees and the document manager window during a conference. It can be played with Inter-Tel Collaboration Player, a standalone application included with the Web Conference software package.
What I am trying to do now is finding a way to play these files on mobile, although Inter-Tel Collaboration Player offers exporting the files in AVI format, I want to know how to make a command line script for that because the application have lots of problems with Windows 7,8,10 and don't have a Mac OS version.
What is the way to create a new player for that kind of extensions?
"Linktivity stopped support on this app, http://linktivity.com even disappeared from the web..."
It seems they were bought out by Mitel Software so now everything is under the Mitel brand name.
"I just want to find a way to manipulate this file extension, a new good player for mobile and computer"
To open/edit those .lrec files with modern software you'll have to look at their :
Collaboration products.
Unified Communication products.
I tried :
To contact them just to double-check facts but they expect a realtime phone conversation with a salesperson so it wasn't an option. I'd be a fake potential customer, but you can provide a real-world issue (with background details) to see if they can solve it.
Also downloaded for Android the MiCollab app but it needs login details before even starting anything (so no progress to just check if an .lrec file from PC would open within Android).
Export videos for mobile playback :
I've tried the desktop software. Unfortunately it does not accept external commands so there is no way to make a script that takes multiple lrecs and gives back multiple AVI.
The only option is to extract frames from .lrec bytes and use a tool like FFmpeg to combine the images (since appears to do image grabs as frames) into one .MP4 video. MP4 is then playable on mobile devices.
Also any of your existing AVI files should be converted with FFmpeg to MP4.
You can download FFmpeg for Windows here (just the big blue button, ignore other options).
Copy the ffmpeg.exe file to some folder like c:\ffmpeg and put your avi's there.
Now open Command prompt and do cd C:\ffmpeg to reach folder, then type : ffmpeg -i filename.avi filename.mp4 (replace filename with preferred for input and output)
If you know how, just include ffmpeg.exe path to Control Panel PATH settings so that FFmpeg can be accessed from any folder (no need to move files to its own folder).
PS:
I am still researching how to get the frames it's an akward format without the specs (bytes order is Big Endian but then entry values are filled as Little Endian, then also not sure whether to reverse every two or four bytes cos it's mixed up like that etc and the pixel bytes themselves seem to have compression but it's not JPEG more like ZIP or whatever). Only confirmed bytes so far are for video width and video height. It seems doable though if the .lrec only contains screen recordings.
After some research, I found that Media Player Classic can play .lrec files. I don't know, if this helps you a bit.
For a own video player for your company, you would need the encoding infos or a decoder directly from Inter-Tel since they own the licences, without it you can't create one.
Edit: Deprecated info see comments.
I need to save a file in Flash without a prompt; what my program does is it gets all the frames from the stage and then it saves them as png files, along with a text file that has the name of the object, and some other properties about it. The code that I have does save it without any problems, but I need it to not prompt me, because I have lots of frames to do this with.
Is there a way to do this with Flash the program or actionscript?
No, unless you're using Adobe AIR. The reason for this is Flash Player and its programs are generally run through a browser over the Internet, and if people could use Flash Player to just start saving files on other people's computers, there would be some very serious security issues. AIR, on the other hand, is generally run on a desktop, laptop, or mobile device, and its programs are run directly off the same, having been pre-installed. So whereas a website can suddenly just start running a script with Flash Player without asking you first, AIR requires you to have already installed the script/program on your computer, meaning that it should be there intentionally. So security restrictions are lighter, enabling the use of the File class in your programs.
The only way to save a local file with the Flash Player (in the browser) is with FileReference and it will always prompt the user.
However, using AIR (desktop or mobile app) you can save to the local file system without user input, using File and FileStream. You can create an AIR app using Flash Pro, usually without any code changes other than the AIR APIs you need (flash.filesystem in this case).
Another idea, if you must use Flash Player and not AIR, is to first zip all the PNGs and only save to file after they are all packaged. This way there's only one file and prompt to save.
I have .mp3 converted as .exe to
make it as self playing its done.
But a window is appearing while
music is playing.
I want to hide
that window while music is
playing [only using .bat file code]
So please help me for the .bat
file code
There is no way to hide a window in pure batch, your best alternative is to relaunch yourself (the .bat) with the START command and the /MIN switch, this would run it minimized and not hidden (You would use a special parameter and check %1 to see if you need to relaunch or not)