Languages

Menu
Sites
Language
TV AVPlay freeze app

Hi,

I have problem with AVPlay, on playing HLS streams. In application, when I switch sources, app got freezning on webapis.avplay.prepare().

App freeze also using prepareAsync(), but on stop() function call.

function, using which im changing src:

setSrc: function(url) {
        try {
            webapis.avplay.open(url);
        } catch (e) {
            console.error(e);
        }
        var that = this;
        this.setupEventListeners();
        this.setDisplayArea();
        webapis.avplay.setStreamingProperty("SET_MODE_4K"); //for 4K contents
        webapis.avplay.setDisplayMethod("PLAYER_DISPLAY_MODE_FULL_SCREEN");
        console.log('SamsungPlayer start preparing');

        webapis.avplay.prepare();

        this.AVPlayer.state = this.AVPlayer.STATES.PREPARED;
        this.AVPlayer.complete = false;

    },

Stop function was called before each src changing

stop: function() {
        console.log("Player.stop()");
        
        this.AVPlayer.state = this.AVPlayer.STATES.STOPPED;     
        webapis.avplay.stop();
        
        try {
            webapis.avplay.close();
        } catch(e){
            console.log('Exception', e);
        }
    },

Have anybody have same problem? And maybe someone have solution to avoid freezing?

Edited by: Vadims Vadims on 07 Aug, 2017

Responses

1 Replies
Armaan-Ul- Islam

Hello ~,

I would suggest that, you may post your issue on Samsung TV Forum

http://developer.samsung.com/forum/?topCtgy=06

Developers on the specific domain may share their experiences with you there.