@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2015 Canonical, Ltd.
2+ * Copyright (C) 2016 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -147,26 +147,6 @@ MediaServicesControls {
147147 }
148148 }
149149
150− function getPlaybackState(playbackState) {
151− if (playbackState === MediaPlayer.PlayingState) return "PlayingState";
152− else if (playbackState === MediaPlayer.PausedState) return "PausedState";
153− else if (playbackState === MediaPlayer.StoppedState) return "StoppedState";
154− return "";
155− }
156−
157− function getPlayerStatus(status) {
158− if (status === MediaPlayer.NoMedia) return "NoMedia";
159− else if (status === MediaPlayer.Loading) return "Loading";
160− else if (status === MediaPlayer.Loaded) return "Loaded";
161− else if (status === MediaPlayer.Buffering) return "Buffering";
162− else if (status === MediaPlayer.Stalled) return "Stalled";
163− else if (status === MediaPlayer.Buffered) return "Buffered";
164− else if (status === MediaPlayer.EndOfMedia) return "EndOfMedia";
165− else if (status === MediaPlayer.InvalidMedia) return "InvalidMedia";
166− else if (status === MediaPlayer.UnknownStatus) return "UnknownStatus";
167− return "";
168− }
169−
170150 MediaPlayer {
171151 id: _mediaPlayer
172152 objectName: "mediaPlayer"
@@ -176,7 +156,5 @@ MediaServicesControls {
176156 stop();
177157 }
178158 }
179−// onPlaybackStateChanged: console.log("PLAYBACK STATE CHANGED", getPlaybackState(playbackState));
180−// onStatusChanged: console.log("PLAYER STATUS CHANGED", getPlayerStatus(status));
181159 }
182160}