Communication between Silverlight and WCF (6) SILVERLIGHT+WCF+TCP video communication [1] single-work mode

Source: Internet
Author: User
Tags silverlight

In fact, this implementation is not a true sense of video communication, neither Peer-to-peer nor very high performance, because basically two clients at the same time to the server to deliver video information, and then by the server to relay to each other.

The point is two.

IIS root decentralization clientaccesspolicy.xml files

Note the amount of data defined in the service is 2147483646, or it may not pass

This is a one-way client. Periodically passing data streams with chat identities to the server

[DataContract]
    public class Uservideo
    {
        [DataMember] public
        string UserName {get; set;}
        [DataMember]
        public string Partnername {set;
        [DataMember]
        Public byte[] Videobyte {set; get;}
    }

There are only two service contracts, one for storing video streams and one for streaming video.

[ServiceContract]
    Public interface Ichatservice
    {
        [operationcontract]
        void Sendvideo (Uservideo uservideo);
        [OperationContract]
        List<uservideo> Getvideos (String username,string partnername);
    

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.