bwmvvnetwritta
所属分类:流媒体/Mpeg4/MP4
开发工具:Visual C++
文件大小:107KB
下载次数:7
上传日期:2012-08-06 13:33:43
上 传 者:
no_user
说明: 一种基于Media Player SDK开发的简单易懂流媒体服务器,能把本地流文件在在网上发布,用Media Player连接即可观看。是学习开发流媒体服务器的绝佳源码实例
(Based Media Player SDK has developed a simple and easy to understand streaming media server, the files of the local flow can be posted online, connect with Media Player to watch. Excellent source instance to study the development of streaming media server)
文件列表:
bwmvvnetwritta\Main.cpp (6897, 2002-12-11)
bwmvvnetwritta\NetWrite.cpp (31666, 2002-12-11)
bwmvvnetwritta\NetWrite.h (5058, 2002-12-11)
bwmvvnetwritta\WMVNetWrite.dsp (4506, 2002-12-11)
bwmvvnetwritta\WMVNetWrite.ncb (437248, 2006-04-20)
bwmvvnetwritta\WMVNetWrite.sln (911, 2006-04-18)
bwmvvnetwritta\WMVNetWrite.suo (10752, 2006-04-20)
bwmvvnetwritta\WMVNetWrite.vcproj (5638, 2006-04-18)
bwmvvnetwritta (0, 2012-03-18)
========================================================================
WIN32 Console Application : WMVNetWrite
========================================================================
Shows how a Windows Media file is streamed across the Internet. The sample requires a port to be specified, and then the file can be played using a player.
USAGE:
wmvnetwrite -i
[-p ] [-c ] [-s ]
infile = Input WMV file name
portnum = Port number (for incoming connections)
maxclient = Maximum clients allowed to connect
server URL = URL of Server for push distribution
For example, in order to stream the file from the host machine and to play this stream on a client machine,
the following should be run on the host machine:
WMVNetWrite -i c:\filename.asf -p 8080
And then the following URL should be opened with the Windows Media Player on the client machine:
http://hostmachinename:8080 (where hostmachinename is the name of the computer running WMVNetWrite.exe).
HOW TO BUILD:
In order to build the sample executable, open the project file WMVNetWrite.dsp in Visual C++ and build
the project.
REMARKS:
-This sample is not able to stream protected Windows Media files.
-Push distribution to servers requiring authentication is not supported in this sample.
IMPORTANT INTERFACES AND METHODS DEMONSTRATED IN THIS SAMPLE:
IWMReaderCallback, IWMReaderCallbackAdvanced and IWMRegisterCallback interfaces
IWMWriter::BeginWriting
IWMWriterAdvanced::WriteStreamSample
IWMWriterAdvanced::RemoveSink
IWMWriterAdvanced::RemoveSink
IWMWriterNetworkSink::SetNetworkProtocol
IWMWriterNetworkSink::Open
IWMWriterNetworkSink::GetHostURL
IWMWriterNetworkSink::SetMaximumClients
IWMWriterNetworkSink::Connect
近期下载者:
相关文件:
收藏者: