[vlc-commits] chromecast: remove unused requestPlayerSeek method
Thomas Guillem
git at videolan.org
Thu Feb 22 12:00:03 CET 2018
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Feb 20 17:36:42 2018 +0100| [d1028d3aa5046feacdd24701bb4c5d0f3d415ffe] | committer: Thomas Guillem
chromecast: remove unused requestPlayerSeek method
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d1028d3aa5046feacdd24701bb4c5d0f3d415ffe
---
modules/stream_out/chromecast/chromecast.h | 1 -
.../stream_out/chromecast/chromecast_communication.cpp | 15 ---------------
2 files changed, 16 deletions(-)
diff --git a/modules/stream_out/chromecast/chromecast.h b/modules/stream_out/chromecast/chromecast.h
index 2be942969b..35a74e8d44 100644
--- a/modules/stream_out/chromecast/chromecast.h
+++ b/modules/stream_out/chromecast/chromecast.h
@@ -171,7 +171,6 @@ struct intf_sys_t
void setRetryOnFail(bool);
void setHasInput(const std::string mime_type = "");
- bool requestPlayerSeek(mtime_t pos);
void setOnInputEventCb(on_input_event_itf on_input_event, void *on_input_event_data);
void setOnPausedChangedCb(on_paused_changed_itf on_paused_changed,
void *on_paused_changed_data);
diff --git a/modules/stream_out/chromecast/chromecast_communication.cpp b/modules/stream_out/chromecast/chromecast_communication.cpp
index cce61eb689..66d08d731c 100644
--- a/modules/stream_out/chromecast/chromecast_communication.cpp
+++ b/modules/stream_out/chromecast/chromecast_communication.cpp
@@ -401,21 +401,6 @@ unsigned ChromecastCommunication::msgPlayerSetVolume( const std::string& destina
return pushMediaPlayerMessage( destinationId, ss ) == VLC_SUCCESS ? id : kInvalidId;
}
-unsigned ChromecastCommunication::msgPlayerSeek( const std::string& destinationId, int64_t mediaSessionId, const std::string& currentTime )
-{
- assert(mediaSessionId != 0);
- unsigned id = getNextRequestId();
-
- std::stringstream ss;
- ss << "{\"type\":\"SEEK\","
- << "\"currentTime\":" << currentTime << ","
- << "\"mediaSessionId\":" << mediaSessionId << ","
- << "\"requestId\":" << id
- << "}";
-
- return pushMediaPlayerMessage( destinationId, ss ) == VLC_SUCCESS ? id : kInvalidId;
-}
-
/**
* @brief Send a message to the Chromecast
* @param msg the CastMessage to send
More information about the vlc-commits
mailing list