1// Copyright 2018 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5package osp
6
7// TODO(pthatcher):
8// - Read and check the response message
9// - Make a nice object API with methods that can do more than one thing per connection
10// - Make it possible to have a presentation controller that is a server
11
12import (
13	"context"
14)
15
16func StartPresentation(ctx context.Context, hostname string, port int, url string) error {
17	msg := PresentationStartRequest{
18		RequestID:      1,
19		PresentationID: "This is a Presentation ID.  It must be very long.",
20		URL:            url,
21	}
22
23	return SendMessageAsClient(ctx, hostname, port, msg)
24}
25