Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Не показывает видео на 2014 Smart tv Emulator 5_1 #81

Open
nechosa opened this issue May 31, 2015 · 5 comments
Open

Comments

@nechosa
Copy link

nechosa commented May 31, 2015

Доброго времени суток. Попытался запустить вашу демку на самсунге - звук идет, а видео нет. Другие проекты с самсунгдфорум работают. Что я делаю не так? заранее спасибо!

@delocker
Copy link

Столкнулся с той же проблемой. Вы её как-то решили? Напишите, пожалуйста, решение.

@delocker
Copy link

Использовал такую конструкцию

this.doPlugin("SetDisplayArea", 0, 0, 1280, 720);

Заработало

@hmelii
Copy link

hmelii commented Sep 26, 2016

Подскажите, пожалуйста, куда именно нужно вставить эту строку?

@delocker
Copy link

delocker commented Sep 26, 2016

OnStreamInfoReady  : function () {
            var duration, width, height, resolution;

            try {
                duration = this.doPlugin('GetDuration');
            } catch (e) {
                alert('######## ' + e.message);
            }

            duration = Math.ceil(duration / 1000);
            //this.jumpLength = Math.floor(this.duration / 30);

            if (this.usePlayerObject) {
                width  = this.doPlugin('GetVideoWidth');
                height = this.doPlugin('GetVideoHeight');
            } else {
                resolution = this.doPlugin('GetVideoResolution');
                if (resolution == -1) {
                    width  = 0;
                    height = 0;
                } else {
                    var arrResolution = resolution.split('|');
                    width             = arrResolution[0];
                    height            = arrResolution[1];
                }
            }

            this.videoInfo.duration = duration;
            this.videoInfo.width    = width * 1;
            this.videoInfo.height   = height * 1;
            $$log('videoSize: ' + this.videoInfo.width + 'x' + this.videoInfo.height);
            this.doPlugin("SetDisplayArea", 0, 0, 1280, 720);
            this.trigger('ready');
        },

@hmelii
Copy link

hmelii commented Sep 26, 2016

Спасибо за ответ. Но не помогает. Вот что на экране появляется https://goo.gl/photos/YM2XoSvHpggyULZ5A Идёт звук. А видео нет.

On 26 Sep 2016, at 17:11, Egor Pinkevich [email protected] wrote:

`OnStreamInfoReady : function () {
var duration, width, height, resolution;

    try {
        duration = this.doPlugin('GetDuration');
    } catch (e) {
        alert('######## ' + e.message);
    }

    duration = Math.ceil(duration / 1000);
    //this.jumpLength = Math.floor(this.duration / 30);

    if (this.usePlayerObject) {
        width  = this.doPlugin('GetVideoWidth');
        height = this.doPlugin('GetVideoHeight');
    } else {
        resolution = this.doPlugin('GetVideoResolution');
        if (resolution == -1) {
            width  = 0;
            height = 0;
        } else {
            var arrResolution = resolution.split('|');
            width             = arrResolution[0];
            height            = arrResolution[1];
        }
    }

    this.videoInfo.duration = duration;
    this.videoInfo.width    = width * 1;
    this.videoInfo.height   = height * 1;
    $$log('videoSize: ' + this.videoInfo.width + 'x' + this.videoInfo.height);
    this.doPlugin("SetDisplayArea", 0, 0, 1280, 720);
    this.trigger('ready');
},`


You are receiving this because you commented.
Reply to this email directly, view it on GitHub #81 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/ACs9qpmpq7lDn4a-bIdRGzeRGqAGIje4ks5qt9J8gaJpZM4Ex08e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants