Changed to use mediaServer.onserverfound which is defined
on the MediaServer API spec. addEventListener interface is
not supported by SDK Web Simulator which uses Google Chrome
as backend.
link: http://01org.github.io/cloud-dleyna/mediaserver.html
Bug-Tizen: TC-2255
Change-Id: I74d12581462158566b0699f3456dbd97bbe18fe1
Signed-off-by: Xianlu Chen <xianlu.chen@intel.com>
Signed-off-by: Alice Liu <alice.liu@intel.com>
if (!!self.mediaServer) {
self.clearDisappearedMediaSources();
- self.mediaServer.addEventListener('serverfound', function(source) {
+ self.mediaServer.onserverfound = function(source) {
self.addMediaSource(source.server);
- });
+ };
self.mediaServer.scanNetwork();
}
};