ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 [IEvolution] Cannot play video after record

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
artem.vysotsky Posted - Mar 06 2015 : 00:48:14
I want to use the IEViewer control first for video record and after this for video play. But after i called this "Viewer.DirectShow.SetVideoInput(1, 0);" i'm not able to play video on this IEViewer (it behaives like in record mode from camera). Could you help me please? This is my code.

        public void StartVideoRecord()
        {
            if(Viewer.DirectShow.Connected)
                Viewer.DirectShow.Disconnect();

            Viewer.VideoCaptureShowVideo = false;
            Viewer.DirectShow.FileInput = String.Empty;
            Viewer.DirectShow.FileOutput = videoFileName;
            Viewer.DirectShow.SetVideoInput(1, 0);
            
            if (!Viewer.DirectShow.Connected)
            {
                Viewer.DirectShow.Connect();
            }

            Viewer.DirectShow.Run();
        }

        public void StopVideoRecord()
        {
            if (Viewer.DirectShow.Connected)
            {
                Viewer.DirectShow.Stop();
                Viewer.DirectShow.Disconnect();
            }

            OpenVideo();
        }

        public void OpenVideo()
        {
            if (Viewer.DirectShow.Connected)
            {
                Viewer.DirectShow.Stop();
                Viewer.DirectShow.Disconnect();
            }

            Viewer.DirectShow.FileOutput = String.Empty;
            Viewer.DirectShow.FileInput = videoFileName;
            Viewer.VideoCaptureShowVideo = true;

            if (!Viewer.DirectShow.Connected)
            {
                Viewer.DirectShow.Connect();
            }
        }
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Mar 06 2015 : 23:43:35
Hi

Are you outputting the DirectShow frame in the NewFrame event?

        private void ieViewer1_DShowNewFrame(object sender, EventArgs e)
        {
            ieViewer1.DirectShow.GetSample();
            ieViewer1.UpdateImage();
        }


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com