Documente Academic
Documente Profesional
Documente Cultură
Raport
Lucrare de laborator Nr 3
Disciplina: Sisteme Multmedia
Tema: Manipularea Video
A efectuat:
A verificat:
Chiinu 2016
Concluzie:
Efectuind aceasta lucrare de laborator, am realizat o aplicatie care ne permite sa ncarcam un fiier
video din calculator i sa efectuam citeva operatii asupra fi ierului dup dorin a noastr:
deschierea fisierului, redarea fisierului, sa schimbam opacitatea,volumul, sa punem pauza sau
stop.
Anexa:
using
using
using
using
using
using
using
using
using System;
System.Collections.Generic;
System.ComponentModel;
System.Data;
System.Drawing;
System.Text;
System.Windows.Forms;
global::YoutubeExtractor;
Newtonsoft.Json;
namespace Video_Player
{
public partial class Form2 : Form
{
bool process = false;
TrackBar trackBar1;
Point loca;
Form1 f1;
WMPLib.IWMPPlaylist pl;
WMPLib.IWMPPlaylistArray plItems;
List<WMPLib.IWMPMedia> itemm;
public Form2()
{
InitializeComponent();
f1 = new Form1();
trackBar1 = new TrackBar();
Controls.Add(trackBar1);
groupBox3.Controls.Add(trackBar1);
loca = new Point(comboBox1.Location.X, comboBox1.Location.Y);
trackBar1.Location = loca;
trackBar1.Size = new Size(trackBar1.Size.Width + 50, trackBar1.Size.Height - 50);
trackBar1.TickFrequency = 10;
trackBar1.LargeChange = 3;
trackBar1.SmallChange = 2;
trackBar1.Maximum = 100;
trackBar1.Minimum = 0;
trackBar1.TickStyle = TickStyle.BottomRight;
this.trackBar1.Scroll += new System.EventHandler(this.trackBar1_Scroll);
string tr = comboBox1.Text.Trim('%');
f1.Opacity = double.Parse(tr) / 100.0;
pl =
f1.axWindowsMediaPlayer1.playlistCollection.newPlaylist("list1");//axwindowsMediaPlayer.playlistCollection.ne
wPlaylist(myPlaylist);
f1.axWindowsMediaPlayer1.currentPlaylist = pl;
itemm = new List<WMPLib.IWMPMedia>();
f1.Show();
}
private void button2_Click(object sender, EventArgs e)
{
DialogResult dr = openFileDialog1.ShowDialog();
if (dr.ToString() == "OK")
{
process = true;
richTextBox1.Text = openFileDialog1.FileName;
WMPLib.IWMPMedia temp = f1.axWindowsMediaPlayer1.newMedia(openFileDialog1.FileName);
itemm.Add(temp);
pl.appendItem(temp);
pl.insertItem(0, temp);
listBox1.Items.Add(temp.sourceURL);
//f1.axWindowsMediaPlayer1.URL = openFileDialog1.FileName;
trackBar2.Minimum = 0;
//trackBar2.Maximum = Convert.ToInt32(f1.axWindowsMediaPlayer1.currentMedia.duration);
label5.Text = f1.axWindowsMediaPlayer1.currentMedia.duration.ToString();
}
f1.axWindowsMediaPlayer1.Ctlcontrols.play();
}
if (f1.axWindowsMediaPlayer1.playState == WMPLib.WMPPlayState.wmppsPlaying)
{
label5.Text = f1.axWindowsMediaPlayer1.currentMedia.durationString;
trackBar2.Maximum = Convert.ToInt32(f1.axWindowsMediaPlayer1.currentMedia.duration);
timer1.Start();
}