Example #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            m_objPlaylistPub = new MPlaylistClass();
            m_objPlaylistPub.PreviewWindowSet("", panelPub.Handle.ToInt32());
            m_objPlaylistPub.PreviewEnable("", 0, 1);

            m_objPlaylistRec = new MPlaylistClass();
            m_objPlaylistRec.PreviewWindowSet("", panelRec.Handle.ToInt32());
            m_objPlaylistRec.PreviewEnable("", 0, 1);

            int index = -1;

            m_objPlaylistPub.PlaylistAdd(null, @"\\MLDiskStation\MLFiles\MediaTest\MP4\!1080p 60fpsOri and the Will of the Wisps.mp4", "", ref index, out MItem item);
            m_objPlaylistPub.FilePlayStart();


            Thread.Sleep(100);

            MSendersClass senderMP = new MSendersClass();
            int           count;

            senderMP.SendersGetCount(out count);

            for (int i = 0; i < count; i++)
            {
                senderMP.SendersGetByIndex(i, out string name, out M_VID_PROPS propsV, out M_AUD_PROPS propsA);
                senders_lsb.Items.Add(name);
            }
        }
Example #2
0
        void UpdateList()
        {
            ListOffAllMPlinks_cmb.Items.Clear();

            MSendersClass pSenders = new MSendersClass();

            int nCount = 0;

            pSenders.SendersGetCount(out nCount);

            for (int i = 0; i < nCount; i++)
            {
                string      strName;
                M_VID_PROPS vidProps;
                M_AUD_PROPS audProps;
                pSenders.SendersGetByIndex(i, out strName, out vidProps, out audProps);
                ListOffAllMPlinks_cmb.Items.Add(@"mp://" + strName);
            }
            ListOffAllMPlinks_cmb.SelectedIndex = 0;
        }