I use the latest Smartview SDK v 2.9, on XCode 12.2.
I can find the Samsung TV and connect to DMP, but when I play it nothing happens, no error message either. confirmed the video url is working. the same issue when casting photos. the official demo has the same issue: GitHub - SamsungDForum/SmartViewSDKDefaultMediaPlayer2.0: This application demonstrates how to send a video,audio,photo content URL to a default media player app on TV and how to control the playback and make a list of the content from mobile.
TV info: Samsung 7 Series (55), version: 2.0.25, Tizen 5.0
code:
videoplayer = service.createVideoPlayer(appName)
videoplayer?.connectionDelegate = self
let url = URL(string: “https://developer.samsung.com/onlinedocs/tv/SmartView/sample/video/BigBuckBunny.mp4”)!
videoplayer?.playContent(url)
Here is the XCode console message:
MSFD → serviceFound Optional(“uuid:67e95024-1b3e-4843-aa57-100f6320cea8”) Optional(“http://192.168.1.170:8001/api/v2/”)
MDNS → serviceFound uuid:67e95024-1b3e-4843-aa57-100f6320cea8 http://192.168.1.170:8001/api/v2/
search → onServiceResolved ignoring http://192.168.1.170:8001/api/v2/
search → onServiceResolved http://192.168.1.170:8001/api/v2/ http://192.168.1.170:8001/api/v2/
getStandbyMode is success
This TV is not there in the list
search → onServiceFound http://192.168.1.170:8001/api/v2/
Service: { id: uuid:67e95024-1b3e-4843-aa57-100f6320cea8, name: [TV] Samsung 7 Series (55), version: 2.0.25 }
service.isDMPSupported true
start connecting
secure URL is http://192.168.1.170:8001/api/v2/channels/samsung.default.media.player
Servie type is : samsung smarttv
onConnect ---- Error is nil
connected
Content URL is : Optional(“https://developer.samsung.com/onlinedocs/tv/SmartView/sample/video/BigBuckBunny.mp4”)
previousConnectedTVList saved successfully for TV [TV] Samsung 7 Series (55)