mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-06 10:32:44 +00:00
core: send start index when playing on remote session
This commit is contained in:
parent
7a7ddc7717
commit
3783de9ce7
5 changed files with 177 additions and 2 deletions
|
@ -245,6 +245,18 @@ QUrlQuery PlayLoader::query(const PlayParams ¶ms) const {
|
|||
if (!params.startPositionTicksNull()) {
|
||||
result.addQueryItem("startPositionTicks", Support::toString<std::optional<qint64>>(params.startPositionTicks()));
|
||||
}
|
||||
if (!params.mediaSourceIdNull()) {
|
||||
result.addQueryItem("mediaSourceId", Support::toString<QString>(params.mediaSourceId()));
|
||||
}
|
||||
if (!params.audioStreamIndexNull()) {
|
||||
result.addQueryItem("audioStreamIndex", Support::toString<std::optional<qint32>>(params.audioStreamIndex()));
|
||||
}
|
||||
if (!params.subtitleStreamIndexNull()) {
|
||||
result.addQueryItem("subtitleStreamIndex", Support::toString<std::optional<qint32>>(params.subtitleStreamIndex()));
|
||||
}
|
||||
if (!params.startIndexNull()) {
|
||||
result.addQueryItem("startIndex", Support::toString<std::optional<qint32>>(params.startIndex()));
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -47966,6 +47966,69 @@ void PlayParams::setPlayCommand(PlayCommand newPlayCommand) {
|
|||
}
|
||||
|
||||
|
||||
const qint32 &PlayParams::audioStreamIndex() const {
|
||||
return m_audioStreamIndex.value();
|
||||
}
|
||||
|
||||
void PlayParams::setAudioStreamIndex(qint32 newAudioStreamIndex) {
|
||||
m_audioStreamIndex = newAudioStreamIndex;
|
||||
}
|
||||
|
||||
bool PlayParams::audioStreamIndexNull() const {
|
||||
// Nullable: true
|
||||
// Type Nullable: false
|
||||
|
||||
|
||||
return !m_audioStreamIndex.has_value();
|
||||
}
|
||||
|
||||
void PlayParams::setAudioStreamIndexNull() {
|
||||
m_audioStreamIndex = std::nullopt;
|
||||
}
|
||||
|
||||
|
||||
const QString &PlayParams::mediaSourceId() const {
|
||||
return m_mediaSourceId;
|
||||
}
|
||||
|
||||
void PlayParams::setMediaSourceId(QString newMediaSourceId) {
|
||||
m_mediaSourceId = newMediaSourceId;
|
||||
}
|
||||
|
||||
bool PlayParams::mediaSourceIdNull() const {
|
||||
// Nullable: true
|
||||
// Type Nullable: true
|
||||
|
||||
|
||||
return m_mediaSourceId.isNull();
|
||||
}
|
||||
|
||||
void PlayParams::setMediaSourceIdNull() {
|
||||
m_mediaSourceId.clear();
|
||||
}
|
||||
|
||||
|
||||
const qint32 &PlayParams::startIndex() const {
|
||||
return m_startIndex.value();
|
||||
}
|
||||
|
||||
void PlayParams::setStartIndex(qint32 newStartIndex) {
|
||||
m_startIndex = newStartIndex;
|
||||
}
|
||||
|
||||
bool PlayParams::startIndexNull() const {
|
||||
// Nullable: true
|
||||
// Type Nullable: false
|
||||
|
||||
|
||||
return !m_startIndex.has_value();
|
||||
}
|
||||
|
||||
void PlayParams::setStartIndexNull() {
|
||||
m_startIndex = std::nullopt;
|
||||
}
|
||||
|
||||
|
||||
const qint64 &PlayParams::startPositionTicks() const {
|
||||
return m_startPositionTicks.value();
|
||||
}
|
||||
|
@ -47987,6 +48050,27 @@ void PlayParams::setStartPositionTicksNull() {
|
|||
}
|
||||
|
||||
|
||||
const qint32 &PlayParams::subtitleStreamIndex() const {
|
||||
return m_subtitleStreamIndex.value();
|
||||
}
|
||||
|
||||
void PlayParams::setSubtitleStreamIndex(qint32 newSubtitleStreamIndex) {
|
||||
m_subtitleStreamIndex = newSubtitleStreamIndex;
|
||||
}
|
||||
|
||||
bool PlayParams::subtitleStreamIndexNull() const {
|
||||
// Nullable: true
|
||||
// Type Nullable: false
|
||||
|
||||
|
||||
return !m_subtitleStreamIndex.has_value();
|
||||
}
|
||||
|
||||
void PlayParams::setSubtitleStreamIndexNull() {
|
||||
m_subtitleStreamIndex = std::nullopt;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// PostParams
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue