473,406 Members | 2,549 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

play mp3 or other files - pointing with mm:ss where to start andstop

Hi Colleagues,

When I click a link or button I would like to play some part of the
MP3. e.g.

I've got a MP3 file which is 60 minutes long.

when I click control1 (doesn't matter what control) it should start
play from minutes 3 sec. 15 and it should play 47 seconds....

Can someon advice me whehter I can do this in C# and is it doable?

at least where to look what are the keywords? which namespaces maybe
some sample code or sample websites?

It doesn't matter which player, it can be Mediaplayer or WINAMP... it
doens't matter. I just want to steer which file to play, start pointer
and stop pointer.
great thanks for any advice,

mesut
Oct 30 '08 #1
2 2177
On Oct 30, 7:26*am, mesut <mesut.de...@noveonbe.comwrote:
Hi Colleagues,

When I click a link or button I would like to play some part of the
MP3. e.g.

I've got a MP3 file which is 60 minutes long.

when I click control1 (doesn't matter what control) it should start
play from minutes 3 sec. 15 and it should play 47 seconds....

Can someon advice me whehter I can do this in C# and is it doable?

at least where to look what are the keywords? which namespaces maybe
some sample code or sample websites?

It doesn't matter which player, it can be Mediaplayer or WINAMP... it
doens't matter. I just want to steer which file to play, start pointer
and stop pointer.

great thanks for any advice,

mesut

What platform is your app based on?

maybe this is a good starting point:
http://msdn.microsoft.com/en-us/libr...72(VS.85).aspx

Or maybe you want to look into the WPF media capabilities...
Oct 30 '08 #2
IT's XP, C#, ASPX..

I would like to load my dropdownlistbox with all the song names.
All the song names will refer/point to 1 MP3/WMA file, because this
single file contains 100 songs...5 hours long.. copied from casette/
LP, empty gaps etc.

so I would like to say song 1 is start at 5 min.33 sec and stop at
7min.64 etc.
song 2 start 9min 32 secs and stop after 213 secs
the min. secs can be something else. I don't care, if I can say start
and stop. this makes me happy enough.

thanks for your help,

mesut
I'VE SOME INFO ABOUT INTERNET, BUT I STILL TRY TO PROCESS, NEED SOME
HELP..!!
<object ID="Player"
classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" >
<embed type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/
download/'
id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='0'
bgcolor='darkblue' showcontrols="true" showtracker='-1'
showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="320"
height="285"
src="http://servername/path/to/media.file" autostart="false"
designtimesp='5311' loop="true">
</embed>
</object>

<select id="cancion"
onchange="document.all.music.filename=document.all .cancion.value;
size=1" name="Music">
<option selected>::::::::::::: Choose Your Song Here :::::::::::::</
option>
<option value=s292.wma>Jon Courson - Song Title</option>
<option value=tc4014-v.wmv>Jon Couson Vid - Song Title</option>
<option value="C:\temp\M-Player\test1.wma">Song 1</option>
<option value="C:\temp\M-Player\test2.wma">Song 2</option>
<option value="C:\temp\M-Player\test3.wma">Song 3</option>
</select></br>
Oct 30 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: KathyB | last post by:
Hi, not too swift with anything other than simple SQL statements, so I'm looking for some help. Using SQL Server 2000 with this stored proc: (@varCust varchar(50)) AS SET NOCOUNT ON
3
by: Harry J. | last post by:
Hello All; We are trying to build a table for tracking times on the Physical Fitness test. Part of the test is the time it takes to swim so many laps or to run a mile distance. Access has...
2
by: D. Shane Fowlkes | last post by:
Here's a good one. I've been using an Excel spreadsheet for the past couple of years to calculate a file's Estimated Download Time based off of a solid 50kbs connection (dial up). This is for a...
6
by: Able | last post by:
Dear friends I need to format seconds as hh:mm:ss. I see a lot of coding transforming seconds to hh:mm:ss. Somebody know a short way? Regards Able
4
by: Rich | last post by:
Now.ToShortTimeString returns 9:13 PM. I would like to get this in miliatry time with seconds included 21:13:45 (or something like that - just military time with seconds). How can this be...
14
by: Michael Barrido | last post by:
I have this for example: Dim iSeconds as int32 = 3600 '3600 seconds is one hour How do i convert it to "01:00:00" ? Please help. Thanks in advance!
1
by: Jason Chan | last post by:
DateTime mydate = new DateTime(2006,1,1,0,0,0); string testStr = mydate.ToString("hh:mm:ss"); //return 12:00:00 mydate = new DateTime(2006,1,1,1,0,0) testStr = mydate.ToString("hh:mm:ss");...
5
by: kpp9c | last post by:
Hi, I was looking at python & datetime and hoping that it would already have a method/func to translate time formats. I need to translate seconds to hh:mm:ss.ms and vice versa and would like...
4
sunbin
by: sunbin | last post by:
hi, How can i get the FLV file or any type of video file's duration in HH:MM:SS or HH:MM:SS:FF format from milliosecond ? I already got duration in millisecond. PHP script needed ... Plz help...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.