你添加一个com组件就是了,好像叫做readplayer什么的,可以在自定义工具箱里找到

解决方案 »

  1.   

    楼上的大哥:
    我网上找了3天了,也没个结果,55555555realplay G2 control 这个控件我用过只有声音,却没有图像,那位高人教教我呀!!
    !!!!!!
      

  2.   

    <object classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height=180 
          id=RPOCX width=240 bgcolor="#000000">
          <param name="src" value="rtsp://real.cctv.com.cn/encoder/live.rm">
            <param name="CONTROLS" value="Imagewindow">
            <param name="AUTOSTART" value="1">
            <param name="NOLABELS" value="0">
            <param name="CONSOLE" value="All">
            <param name="_ExtentX" value="9525">
            <param name="_ExtentY" value="6350">
            <param name="SHUFFLE" value="0">
            <param name="PREFETCH" value="0">
            <param name="LOOP" value="1">
            <param name="NUMLOOP" value="0">
            <param name="CENTER" value="0">
            <param name="MAINTAINASPECT" value="0">
            <param name="BACKGROUNDCOLOR" value="#000000">
          </object>http://www.cctv.com/player/main_real.html?rtsp://real.cctv.com.cn/geography/column/56K/47887101.rm
      

  3.   

    u must setCtlControls by ImageWindow,单击real 控件,在属性里的CtlControls 输入 ImageWindow
      

  4.   

    ArLi2003(阿利,[email protected]) 大哥,现在有视频窗口了但为什么视频控制条没有了?
      

  5.   

    呵呵,楼上的绅士?我以前写的是一个网络点播系统,解决方法很简单,你现在有了视频窗口了,至于那播放,暂停,以及关闭,,在REAL控件里面的方法,你可以调用的啊.你尽可以自己的界面的哎.
      

  6.   

    楼主那是你没找对组件,你看我这个就可以using System;
    using System.Drawing;
    using System.Collections;
    using System.ComponentModel;
    using System.Windows.Forms;
    using System.Data;namespace WindowsApplication12
    {
    /// <summary>
    /// Form1 的摘要说明。
    /// </summary>
    public class Form1 : System.Windows.Forms.Form
    {
    private AxRealAudioObjects.AxRealAudio axRealAudio1;
    /// <summary>
    /// 必需的设计器变量。
    /// </summary>
    private System.ComponentModel.Container components = null; public Form1()
    {
    //
    // Windows 窗体设计器支持所必需的
    //
    InitializeComponent(); //
    // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
    //
    } /// <summary>
    /// 清理所有正在使用的资源。
    /// </summary>
    protected override void Dispose( bool disposing )
    {
    if( disposing )
    {
    if (components != null) 
    {
    components.Dispose();
    }
    }
    base.Dispose( disposing );
    } #region Windows Form Designer generated code
    /// <summary>
    /// 设计器支持所需的方法 - 不要使用代码编辑器修改
    /// 此方法的内容。
    /// </summary>
    private void InitializeComponent()
    {
    System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
    this.axRealAudio1 = new AxRealAudioObjects.AxRealAudio();
    ((System.ComponentModel.ISupportInitialize)(this.axRealAudio1)).BeginInit();
    this.SuspendLayout();
    // 
    // axRealAudio1
    // 
    this.axRealAudio1.Anchor = (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
    | System.Windows.Forms.AnchorStyles.Left) 
    | System.Windows.Forms.AnchorStyles.Right);
    this.axRealAudio1.Enabled = true;
    this.axRealAudio1.Name = "axRealAudio1";
    this.axRealAudio1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axRealAudio1.OcxState")));
    this.axRealAudio1.Size = new System.Drawing.Size(288, 264);
    this.axRealAudio1.TabIndex = 0;
    // 
    // Form1
    // 
    this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
    this.ClientSize = new System.Drawing.Size(292, 266);
    this.Controls.AddRange(new System.Windows.Forms.Control[] {
      this.axRealAudio1});
    this.Name = "Form1";
    this.Text = "孤独客个人播放器:)";
    ((System.ComponentModel.ISupportInitialize)(this.axRealAudio1)).EndInit();
    this.ResumeLayout(false); }
    #endregion /// <summary>
    /// 应用程序的主入口点。
    /// </summary>
    [STAThread]
    static void Main() 
    {
    Application.Run(new Form1());
    }
    }
    }
      

  7.   

    再加上 private void Form1_Load(object sender, System.EventArgs e)
    {
    this.axRealAudio1.Source=@"f:\虫虫特工队.avi";
    this.axRealAudio1.DoPlay();
    }
    这样就可以了,
    我说过了,开始时你还是没找到正确的组件。呵呵,刚才没看到别人已经发给你代码了。