Simple MP3 playback-Reply to "heyongan"

Source: Internet
Author: User
Problem Source:


Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls, mplayer; Type tform1 = Class (tform) button1: tbutton; mediaplayer1: tmediaplayer; Procedure button1click (Sender: tobject); Procedure formcreate (Sender: tobject); end; var form1: tform1; implementation {$ R *. DFM} procedure upload (Sender: tobject); begin mediaplayer1.visible: = false; end; Procedure upload (Sender: tobject); begin mediaplayer1.filename: = 'C: \ temp \ testobject ';;; end.


Form file:

 Object form1: tform1 left = 0 Top = 0 caption = 'form1 'clientheight = 149 clientwidth = 270 color = clbtnface font. charset = default_charset font. color = clwindowtext font. height =-11 font. name = 'tahoma 'font. style = [] oldcreateorder = false oncreate = formcreate pixelsperinch = 96 textheight = 13 object button1: tbutton left = 96 Top = 72 width = 75 Height = 25 caption = 'button1' taborder = 0 onclick = button1click end object mediaplayer1: tmediaplayer left = 8 Top = 24 width = 253 Height = 30 taborder = 1 endend


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.