Adobe 65029121 Developer's Guide - Page 15

Streaming services

Page 15 highlights

12 Chapter 2: Streaming services All editions of Flash Media Server 3 provide two streaming services, live (live video) and vod (video on demand). These services are implemented as server-side components of Flash Media Server applications. Sample clients for both services are installed with the server. You can modify the sample clients for production use or create your own. The live and vod services are signed (approved) by Adobe. Flash Media Streaming Server only supports signed services-it cannot run other applications. Flash Media Interactive Server and Flash Media Development Server support signed services as well as any other applications you create. Both services can be duplicated and renamed as needed to create multiple publishing points and to provision customers. There is no limit to the number of service instances a server can support. Using the live service About the live service The live service is a publishing point on Flash Media Server. You can use Flash Media Encoder to capture, encode, and stream live video to the live service and play the video with the sample client or with the FLVPlayback component. You can also build your own application to capture video and your own client application to play the video. The following live video sources can publish to the live service: • Flash Media Encoder 2.0 Note: Only Flash Media Interactive Server and Flash Media Development Server support Flash Media Encoder Authentication Add-in. • Flash Media Interactive Server and Flash Media Development Server (see Publish from server to server) • A custom-built Flash Player application that records audio and video Test the live service 1 Connect a camera to the computer. 2 Open Flash Media Encoder and click Start. By default, Flash Media Encoder publishes a stream to the default live publishing point on the same computer, rtmp://localhost/live, and publishes a stream named livestream. 3 Double-click the RootInstall/samples/applications/live/livetest.html file to open the client application in a browser and see the live stream. To use the FLVPlayback component as the client, set the contentPath parameter to the URL of the publishing point and the stream name (rtmp//localhost/live/livestream, by default) and set the isLive parameter to true.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66

12
Chapter 2: Streaming services
All editions of Flash Media Server 3 provide two streaming services, live (live video) and vod (video on demand).
These services are implemented as server-side components of Flash Media Server applications. Sample clients for
both services are installed with the server. You can modify the sample clients for production use or create your own.
The live and vod services are signed (approved) by Adobe. Flash Media Streaming Server only supports signed
services—it cannot run other applications. Flash Media Interactive Server and Flash Media Development Server
support signed services as well as any other applications you create.
Both services can be duplicated and renamed as needed to create multiple publishing points and to provision
customers. There is no limit to the number of service instances a server can support.
Using the live service
About the live service
The live service is a publishing point on Flash Media Server. You can use Flash Media Encoder to capture, encode,
and stream live video to the live service and play the video with the sample client or with the FLVPlayback
component. You can also build your own application to capture video and your own client application to play the
video.
The following live video sources can publish to the live service:
Flash Media Encoder 2.0
Note:
Only Flash Media Interactive Server and Flash Media Development Server support Flash Media Encoder
Authentication Add-in.
Flash Media Interactive Server and Flash Media Development Server (see
Publish from server to server
)
A custom-built Flash Player application that records audio and video
Test the live service
1
Connect a camera to the computer.
2
Open Flash Media Encoder and click Start.
By default, Flash Media Encoder publishes a stream to the default live publishing point on the same computer,
rtmp://localhost/live
,
and publishes a stream named
livestream
.
3
Double-click the
RootInstall
/samples/applications/live/livetest.html file to open the client application in a
browser and see the live stream.
To use the FLVPlayback component as the client, set the
contentPath
parameter to the URL of the publishing
point and the stream name (
rtmp//localhost/live/livestream
, by default) and set the
isLive
parameter
to
true
.