Before the. NET Framework 1.1 version does not support multimedia at all, the. NET Framework 2.0 is just the simplest and most limited support for multimedia if it is in our. NET program to play multimedia files, usually only through interoperability to introduce ActiveX controls to play audio/video. On the internet to find a long time about C # play RM Video article, finally have a little results. For the convenience of the successor, here is a simple step for playing RM in C #:
(1) The installation of RealOne or RealPlayer, or the acquisition of Interop.RealAudioObjects.dll and AxInterop.RealAudioObjects.dll.
(2) in the Project's Toolbox Control Panel, right-click menu = "Add/Remove Item" = COM component, select RealPlayer G2 controls and add
(3) Dragging the newly added RealPlayer G2 control controls into the form adds a member variable to the form's CS file: Private Axrealaudioobjects.axrealaudio AxRealAudio1 (4) play an RM file, just like the following:
Set up a media file to play
This.axRealAudio1.Source = "Videotest.rm";
Display image, display control Panel (Fast Forward, stop, etc.)
This.axRealAudio1.SetControls ("Imagewindow,controlpanel");
Start playing
This.axRealAudio1.DoPlay ();
(5) If more complex playback control is required, the name and meaning of each method/attribute of Axrealaudio can be viewed through vs IntelliSense.
(6) More detailed instructions for using the Axrealaudio control see here:
Http://service.real.com/help/library/guides/production/htmfiles/control.htm Original: http://www.cnblogs.com/ Zhuweisky/archive/2006/02/15/330918.html
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:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.