Java中Media Player的问题 [英] Question with Media Player in Java

查看:89
本文介绍了Java中Media Player的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Java netbeans创建的媒体播放器上做一个项目.基本上,我能够创建一个简单的媒体播放器,该播放器能够播放我选择的mpeg或mp3中的文件.我现在正在尝试创建一个按钮,该按钮可以直接链接到mpeg文件,而无需通过选择文件进行选择.

Hi, I''m doing a project on a media player created with java netbeans. Basically I''m able to create a simple media player that is able to play files in mpeg or mp3 that I have selected. I am trying to now create maybe a button that will link to a mpeg file straightaway without selection going through the file select.

 例如,我单击一个按钮"MPEG文件".它在播放器中播放"MPEG文件".

 For example I click a button  "MPEG File". It plays the "MPEG File" in the player.

推荐答案

这不是问题.回答只是为了使它脱离未回答的问题列表.
This is not a question. Answering just to get it out of the unanswered questions list.


您需要在应用程序中构建目录(类似于Windows Media Player).应用程序首次启动时,您将扫描磁盘或选定的目录,并建立文件及其友好名称的目录.您可以将此信息存储在平面文件,数据库或注册表项中,以备将来使用.然后在某种列表视图中显示所有友好名称,然后您可以从播放器中自动选择文件.
You need to build a catalog in your application (similar to Windows Media Player). When your app first starts, you scan the disk, or selected directories, and build a catalog of files and their friendly names. You can store this information in a flat file, database, or registry entry for future use. Then display all the friendly names in some sort of list view and then you can select the file automatically from within your player.


我是一名软件工程师,我想为您提供帮助.因此,您必须提供Media Player源代码.然后我将为您开发它.
I am a Software Engineer, i want to help u. So you have to give your Media Player source code. Then i will develop it for u.


这篇关于Java中Media Player的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆