Log the Open source DLNA protocol stack (CyberLink for Java) Media renderer implemented on the Android platform why can't I find

Source: Internet
Author: User
Tags cyberlink

Starting point: A lot of DLNA/UPNP protocol stacks, CyberLink for Java (sourceforge download) Advantages: Simple and practical, the disadvantage is inefficient, there are several fatal bugs

Objective: To solve the problem that the DLNA player/server can not be found by other control points, why the media files in the media server can not play CyberLink.

Practice: The SSDP protocol implemented by Media renderer requires periodic packet-sending, telling other devices within the LAN that he is online and needs to include the following code for multicast rights:

Add a call to the following code in the OnCreate () method [Java] view plain copy multicastlock multicastlock;                private void allowmulticast () {             wifimanager wifimanager= (WifiManager) Getsystemservice (context.wifi_service);            Multicastlock=wifimanager.createmulticastlock ("Multicast.test");             multicastlock.acquire ();        }    The
OnDestroy () method invokes the following code [Java] view plain copy private void releasemultcast () {        multicastlock.release ();   } 

Related Article

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.