Пример #1
0
void SpectatorCommands::setBrowserPosition(int position)
{
    MessageBuilder builder;
    builder.messageType    = FRAGTV::BrowserMessage;
    builder.writeAttributes(FRAGTV::Browser::VideoPosition, position);

    QByteArray message     = builder.generate();    
    currentBrowserPosition = message;

    emit this->relayBrowserPosition(message);
}
Пример #2
0
void SpectatorCommands::setMotd(QString html)
{
    MessageBuilder builder;
    builder.messageType   = FRAGTV::MotdMessage;
    builder.writeAttributes(FRAGTV::Motd::Html, html);

    QByteArray message    = builder.generate();
    currentMotdMessage = message;

    qDebug() << "set MOTD: " << html;

    emit this->relayMotdMessage(message);
}
Пример #3
0
void SpectatorCommands::setBrowserChatUrl(QString url)
{
    MessageBuilder builder;
    builder.messageType   = FRAGTV::BrowserMessage;
    builder.writeAttributes(FRAGTV::Browser::ChatUrl, url);

    QByteArray message    = builder.generate();
    currentBrowserChatUrl = message;


    qDebug() << "Chat URL: " << url;

    emit this->relayBrowserChatUrl(message);
}