[longomatch] Add the MediaFile related opens
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Add the MediaFile related opens
- Date: Tue, 31 Mar 2015 17:29:42 +0000 (UTC)
commit 541caa3f883ab78c80199c35234f4f7d22dd8a34
Author: Jorge Zapata <jorgeluis zapata gmail com>
Date: Fri Mar 20 13:57:34 2015 +0100
Add the MediaFile related opens
LongoMatch.Core/Interfaces/Multimedia/IPlayer.cs | 4 +
LongoMatch.Multimedia/Player/GstPlayer.cs | 10 ++
LongoMatch.Multimedia/PlayerController.cs | 170 ----------------------
3 files changed, 14 insertions(+), 170 deletions(-)
---
diff --git a/LongoMatch.Core/Interfaces/Multimedia/IPlayer.cs
b/LongoMatch.Core/Interfaces/Multimedia/IPlayer.cs
index a7cb7be..9cac549 100644
--- a/LongoMatch.Core/Interfaces/Multimedia/IPlayer.cs
+++ b/LongoMatch.Core/Interfaces/Multimedia/IPlayer.cs
@@ -30,6 +30,8 @@ using Image = LongoMatch.Core.Common.Image;
// Functions/Properties added/modified:
// List<IntPtr> WindowHandles { set; }
// bool Open (List<string> mrls);
+// bool Open (MediaFileSet mfs);
+// bool Open (MediaFile mf);
// Their simple cases are still there, we need to get rid of them later
using System.Collections.Generic;
@@ -54,6 +56,8 @@ namespace LongoMatch.Core.Interfaces.Multimedia
bool Open (List<string> mrls);
bool Open (string mrl);
+ bool Open (MediaFileSet mfs);
+ bool Open (MediaFile mf);
void Play();
void Pause();
diff --git a/LongoMatch.Multimedia/Player/GstPlayer.cs b/LongoMatch.Multimedia/Player/GstPlayer.cs
index 7550592..b12a43b 100644
--- a/LongoMatch.Multimedia/Player/GstPlayer.cs
+++ b/LongoMatch.Multimedia/Player/GstPlayer.cs
@@ -474,6 +474,16 @@ namespace LongoMatch.Video.Player
lgm_video_player_close (Handle);
}
+ public bool Open (MediaFileSet mfs)
+ {
+ return Open (mfs[0]);
+ }
+
+ public bool Open (MediaFile mf)
+ {
+ return Open (mf.FilePath);
+ }
+
public bool Open (List<string> mrls)
{
return Open (mrls[0]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]