Closed eunikolsky closed 9 years ago
Comment for playMedia specifies iconUrl as a parameter to display an image for a media (https://github.com/ConnectSDK/Connect-SDK-Cordova-Plugin/blob/master/www/ConnectSDK.js#L1523). However, it doesn't work. Sample code, based on the Connect-SDK-Cordova-API-Sampler project:
playMedia
iconUrl
Connect-SDK-Cordova-API-Sampler
url = "http://streaming.streamonomy.com/BeGoodRockMix"; mimeType = "audio/x-mpegurl"; options = { title: "Internet", description: "Radio", shouldLoop: false, iconURL: "http://ec2-54-201-108-205.us-west-2.compute.amazonaws.com/samples/media/earth-our-home2.jpg", }; req = this.device.getMediaPlayer().playMedia(url, mimeType, options);
I've found two bugs:
displayMediaCommon:type:
url
iconURL
TODO: check on Android
Comment for
playMedia
specifiesiconUrl
as a parameter to display an image for a media (https://github.com/ConnectSDK/Connect-SDK-Cordova-Plugin/blob/master/www/ConnectSDK.js#L1523). However, it doesn't work. Sample code, based on theConnect-SDK-Cordova-API-Sampler
project:I've found two bugs:
displayMediaCommon:type:
method checks theurl
key instead oficonURL
: https://github.com/ConnectSDK/Connect-SDK-Cordova-Plugin/blob/master/src/ios/ConnectSDKCordovaDispatcher.m#L972iconUrl
is inverted: https://github.com/ConnectSDK/Connect-SDK-Cordova-Plugin/blob/master/src/ios/ConnectSDKCordovaDispatcher.m#L973 It also seems to be completely useless.TODO: check on Android