Ejemplo n.º 1
0
        protected override Media ExportProtected(Presentation destPres)
        {
            ManagedVideoMedia exported = (ManagedVideoMedia)base.ExportProtected(destPres);

            exported.VideoMediaData = VideoMediaData.Export(destPres);
            return(exported);
        }
Ejemplo n.º 2
0
        protected override Media CopyProtected()
        {
            ManagedVideoMedia cp = (ManagedVideoMedia)base.CopyProtected();

            cp.VideoMediaData = VideoMediaData.Copy();
            return(cp);
        }
Ejemplo n.º 3
0
        protected override MediaData ExportProtected(Presentation destPres)
        {
            VideoMediaData expImgData = (VideoMediaData)destPres.MediaDataFactory.Create(GetType());

            expImgData.InitializeVideo(m_DataProvider.Export(destPres), OriginalRelativePath);
            return(expImgData);
        }
Ejemplo n.º 4
0
        public override bool ValueEquals(WithPresentation other)
        {
            if (!base.ValueEquals(other))
            {
                return(false);
            }

            VideoMediaData otherz = other as VideoMediaData;

            if (otherz == null)
            {
                return(false);
            }

            if (OriginalRelativePath != otherz.OriginalRelativePath)
            {
                //System.Diagnostics.Debug.Fail("! ValueEquals !");
                return(false);
            }

            if (!DataProvider.ValueEquals(otherz.DataProvider))
            {
                //System.Diagnostics.Debug.Fail("! ValueEquals !");
                return(false);
            }
            return(true);
        }
Ejemplo n.º 5
0
        protected void NotifyMediaDataChanged(ManagedVideoMedia source, VideoMediaData newData, VideoMediaData prevData)
        {
            EventHandler <MediaDataChangedEventArgs> d = MediaDataChanged;

            if (d != null)
            {
                d(this, new MediaDataChangedEventArgs(source, newData, prevData));
            }
        }
Ejemplo n.º 6
0
        protected override MediaData CopyProtected()
        {
            VideoMediaData copyVideoMediaData = (VideoMediaData)Presentation.MediaDataFactory.Create(GetType());

            // We do not Copy the FileDataProvider,
            // it is shared amongst VideoMediaData instances without concurrent access problems
            // because the file stream is read-only by design.
            copyVideoMediaData.InitializeVideo(m_DataProvider, OriginalRelativePath);
            return(copyVideoMediaData);
        }
Ejemplo n.º 7
0
        public override bool ValueEquals(WithPresentation other)
        {
            if (!base.ValueEquals(other))
            {
                return(false);
            }

            ManagedVideoMedia otherz = other as ManagedVideoMedia;

            if (otherz == null)
            {
                return(false);
            }

            if (!VideoMediaData.ValueEquals(otherz.VideoMediaData))
            {
                //System.Diagnostics.Debug.Fail("! ValueEquals !");
                return(false);
            }

            return(true);
        }
Ejemplo n.º 8
0
 private void Reset()
 {
     m_VideoMediaData = null;
 }