ConnectSDK/Connect-SDK-iOS-API-Sampler

Timer/interval in MediaViewController not being purged properly

Opened this issue · 0 comments

The sampler app implements an interval in MediaViewController.m -- and this timer looks like it isn't getting purged properly when a new instance of media is loaded.

So, what seems to be happening, is that this timer keep firing off events unexpectedly.

If I launch a(nother) audio file while one is currently playing, a 1-second interval seems to interrupt the load of the audio and prevent the webapp from moving forward. However, if I click "close" in the Sampler app to truncate the websocket session, then tap the "audio" button to launch new audio, it seems to be fine (the old timer gets purged).

This is reproducible in a locally running instance of webOS second-screen-service, though the latency is hidden in TV mode.