Apple QuickTime Streaming Server Darwin Streaming Server Controlling Access to Streamed Media

Page 40

Controlling Access to Streamed Media

You can set up authentication to control client access to streamed media files. Two schemes of authentication are supported: basic and digest. By default, the server uses the more secure digest authentication.

You can also control playlist access and administrator access to your streaming server. Authentication does not control access to media streamed from a relay server. The administrator of the relay server must set up authentication for relayed media.

The ability to manage user access is built into the streaming server, so it is always enabled.

For access control to work, an access file must be present in the directory you selected as your Media Directory. If an access file is not present in the streaming server media directory, all clients are allowed access to the media in the directory.

To set up access control:

1Use the qtpasswd command-line utility to create new user accounts with passwords.

2Create an access file and place it in the media directory that you want to protect.

3If you want to disable authentication for a media directory, remove the access file (called qtaccess) or rename it (for example, qtaccess.disabled).

Creating an Access File

An access file is a text file called qtaccess that contains information about users and groups who are authorized to view media in the directory in which the access file is stored. The directory you use to store streamed media can contain other directories, and each directory can have its own access file. When a user tries to view a media file, the server checks for an access file to see whether the user is authorized to view the media. The server looks first in the directory where the media file is located. If an access file is not found, it looks in the enclosing directory. The first access file that’s found is used to determine whether the user is authorized to view the media file.

The access file for the streaming server works like the Apache web server access file.

You can create an access file with any text editor. The filename must be qtaccess and the file can contain some or all of the following information:

AuthName <message> AuthUserFile <user filename> AuthGroupFile <group filename> require user <username1> <username2> require group <groupname1> <groupname2> require valid-user

require any-user

40 Chapter 2

Image 40
Contents Administrator’s Guide Apple Computer, Inc Apple Computer, Inc. All rights reservedContents Media Working With Connected UsersPreparing Audio RelaysInstalling SSL Setup ExampleAdding or Deleting Groups Streaming Server Computer Crashes or Is RestartedSetting It Up Creating a Web Page for Easy Access Glossary IndexWhat Is Streaming? About Streaming ServersSimple Setup for Live Video Live Versus On-Demand DeliveryHow Does Streaming Work? Multicast Versus Unicast Total Streaming Solution Relaying Streamed MediaQuickTime Suite More About Qtss and DSSQtss and DSS 4.1 added these features For More InformationPreface Setup Overview Getting StartedHardware and Software Client Computer RequirementsServer Requirements Live Broadcasting RequirementsSetting Up Your Streaming Server Follow these steps to set up your streaming serverTesting Your Setup Streaming server is now active and ready to stream mediaPage Working With Streaming Server Admin User InterfaceViewing Streaming Status Starting or Stopping Streaming ServiceWorking With Connected Users Changing Server Settings Controlling QuickTime Broadcaster RemotelyWorking With General Settings Working With Port Settings Working With Log SettingsDefault file names are as follows Viewing Error Logs and Access HistoryMedia Copy all media files to your streaming serverAbout Instant-On Streaming Preparing Prerecorded MediaStreaming Media Files With Multiple Sources Preparing AudioStreaming File Formats Like .avi, .text, and .wav Exporting a QuickTime Movie as a Hinted Movie Rtsp//qtss.hostname/myfile.movImproving the Performance of Hinted Movies Session Description Protocol SDP FilesStreaming Live Media Open QuickTime Player Choose Open URL from the File menuViewing Streamed Media From a Client Computer Setting Up a Web Page With Streamed Media Pls files using the user’s MP3 player automatically M3U file contains a single line of text in this formatPLS file uses this format Creating Links to MP3 PlaylistsWorking With Playlist Settings Using Playlists to Broadcast Prerecorded MediaPlaylists Starting and Stopping Playlists To stop broadcasting a playlist, click the Stop buttonCreating a Playlist Changing a Playlist Deleting a PlaylistTo see the Relay Settings pane, click Relay Settings Working With Relay SettingsRelays To acquireClick Save Changes to add the source to your relay settings Setting Up RelaysResetting the Streaming Server Admin User Name and Password SecurityStreaming on Port Turning a Relay On or OffControlling Access to Streamed Media Creating an Access FileManaging Your Streaming Server What Clients Need to Access Protected Media Adding User Accounts and PasswordsAdding or Deleting Groups Making Changes to the User or Group FileInstalling SSL Executing a Command With sudo Streaming on Port ProblemsFirewalls and Networks With Address Translation Streaming Server Admin Is Not Responding Server Doesn’t Start Up or Quits UnexpectedlyStreaming Server Computer Crashes or Is Restarted Media Files Do Not Stream ProperlyUsers See Error Messages While Streaming Media Make sure users have the correct URLStreaming Performance Seems Slow Users Can’t Connect to Your BroadcastYou’re Having Problems With Playlists Users Can’t See Live Streamed MediaLog in to the server as an administrator AdvancedTells the server to bind to the local IP address DSS 4 WindowsMeans that all IP addresses are enabled for the server 950. To kill them, enter the following Text similar to the following should appearFinally, restart the server by entering the following Streamingadminserver.pl This will produce the following Page Distance learning classes Streaming Presentations-Live and On DemandBroadcaster Setting It Up Prepare the LocationPrepare the Network Set Up Your Streaming Server Can the server computer be dedicated solely to streaming?Example for a one-hour 300-Kbps stream 554, 7070 TCP or 80 TCP 10000-65635 UDPRtsp 7070 TCP or 80 TCP 1220 TCPSet Up for a Live Webcast Keep the Microphone Close Set Up Broadcaster Creating a Web Page for Easy Access Test Your SetupArchiving the Live Presentation Shooting the Live PresentationClick Play below the iMovie monitor Setup Example Page Glossary Page Glossary Glossary Glossary Glossary X, Y, Z Glossary Access to streamed media 40-43, 62 basic 25 Overriding global setting AuthScheme keywordAnnounce Automatic Unicast 24, 43-44, 64-65 any-usertag Avi formatRunning on non-Mac OS X platforms 16 setting up Application BinariesDarwinStreamingServer file 46 data rates Users from user/group file 42 delivery, liveError Log setting 26 errors Streaming Server Admin 22files Http connections 12, 45, 47 Http downloads 48 Http trafficQuickTime movie 26 resetting Media directories Disabling authentication for 40 multipleKilling Qtss processes Looping playlistsName setting NATs Network Address Translators 43 NetSSLeay Passwords Broadcaster user account 25, 62 broadcastsStreaming Server Admin 18, 22, 25, 39 user accounts Network Address Translators NATs 43 network cards NetworksAccess to Broadcasting prerecorded media with 34 creating MPEG-4Port 80, streaming over 18, 25, 45, 61 ports Exporting as hinted movies 29-30sampleRequest incoming stream setting 37 resolution Command execution with sudoMultiple media directories 52-53obtaining Real-time streaming 7Source Hostname or IP Address setting 37 SRC attribute Passwords. See passwords proxiesChanging settings for 23 starting Stopping Streaming serversT1 lines Broadcasts over 24 relay viaWait for announced streams setting Administering server from 21 Internet Explorer 21 MozillaRtsp standard Weighted Random mode 35, 48, 49 WinAmp XLR plugs Xserve server 16, 17

QuickTime Streaming Server Darwin Streaming Server specifications

Apple QuickTime Streaming Server, also known as Darwin Streaming Server, is a pivotal technology in the realm of multimedia streaming. Developed by Apple Inc., this open-source server software is designed specifically for the efficient delivery of video and audio content over the internet. One of the standout features of Darwin Streaming Server is its capability to stream content using the QuickTime file format, which is widely adopted for rich media applications.

A core characteristic of Darwin Streaming Server is its support for the Real-Time Streaming Protocol (RTSP). This protocol enables the server to communicate effectively with user clients, ensuring smooth playback of multimedia content. RTSP also allows for advanced streaming capabilities, such as pause, rewind, and fast forward, providing users with a versatile viewing experience.

Darwin Streaming Server is built on a highly modular architecture that enhances its scalability and flexibility. It can easily handle multiple simultaneous streams, making it suitable for both small-scale projects and large-scale broadcast environments. The server can efficiently manage bandwidth, optimizing the delivery of content even during peak usage times.

Another notable feature of Darwin Streaming Server is its robust integration with Appleā€™s QuickTime technology. This compatibility enables the seamless distribution of interactive media, which is crucial for applications in education, entertainment, and corporate training. The server can stream both live and on-demand audio and video content, catering to a diverse audience.

Additionally, Darwin Streaming Server supports various streaming formats, including MP3 and AAC for audio and H.264 for video. This flexibility allows content creators to deliver high-quality media while maintaining compatibility with various devices and platforms, from desktop computers to mobile devices.

Security is another important aspect of Darwin Streaming Server. It supports encryption protocols, ensuring that sensitive content is protected during transmission. This is particularly valuable for organizations that need to secure proprietary content or deliver private media to specific audiences.

In conclusion, Apple QuickTime Streaming Server, or Darwin Streaming Server, stands out as a powerful tool for multimedia streaming. Its integration of RTSP, compatibility with QuickTime, modular architecture, and robust security features make it an ideal choice for businesses and content creators looking to deliver high-quality streaming experiences. Whether used for live broadcasts or on-demand content, Darwin Streaming Server remains a significant contributor to the evolution of online media delivery.