简体   繁体   English

审查员无法批准我的Tizen应用程序,因为它们无法在我的应用程序播放器中播放HLS

[英]Censors can't approve my Tizen app because they can't play HLS inside my app player

So the thing is that I have an app with some channels. 所以事情是我有一个带有某些频道的应用程序。 When a user click on a channel, he can see some HTTP Live Streaming. 用户单击频道时,可以看到一些HTTP Live Streaming。 Here, I can run this app on our Samsung TV and it works greak. 在这里,我可以在我们的三星电视上运行此应用,并且效果很好。 When I post it to Tizen store where people need to check it, they can't see the video. 当我将其发布到需要检查的Tizen商店时,他们看不到视频。 I gave them direct links to HLS and they can see it. 我给他们直接链接到HLS,他们可以看到它。 What is the problem? 问题是什么?

Here is some code how I set up a player: 以下是一些如何设置播放器的代码:

self.setUrlPlayer = function (url, startVideo) {
        plugin.open(url); // 1. Call webapis.avplay.open()
        self.setDisplayVideo(0, 0, 1920, 1080); // 4. Set media size by webapis.avplay.setDisplayRect()
        plugin.currentUrl = url;
        plugin.setListener(listener); // 2. Set listener event by webapis.avplay.setListener()
        plugin.prepare(); // 3. Call webapis.avplay.prepare()
        if (startVideo === false) {
            // do nothing...
        } else {
            self.event(self.TYPE.LOADEDMETADATA, { videoWidth: 1920, videoHeight: 1080 });
            self.play(); // 5. Call webapis.avplay.play()
        }
    };

    self.setUrl = function (url, startVideo) {
        url += '|COMPONENT=HLS';
        // webapis.avplay.setStreamingProperty("ADAPTIVE_INFO", "BITRATES=" + 50000 + '~' + $('#BITRATE_TO').val() + 'STARTBITRATE=' + $('#START_BITRATE').val() + 'SKIPBITRATE=' + $('#SKIP_BITRATE').val());
        try {
            //webapis.avplay.setStreamingProperty("WIDEVINE", drmParam);
            self.setUrlPlayer(url, startVideo);
        } catch (e) {
            console.log(e);
        }
    };

    // играть
    self.play = function (pos) {
        if (pos) {
            self.jumpTo(pos, true);
        } else {
            paused = false;
            plugin.play();
            self.event(self.TYPE.PLAY);
        }
    };

You can try comparing your code with the example in this guide: 您可以尝试将代码与本指南中的示例进行比较:

AVPlay Tutorial AVPlay教程

Samsung Developers > Smart TV > Develop > Guides > Multimedia > Media Playback > Using AVPlay 三星开发人员>智能电视>开发>指南>多媒体>媒体播放>使用AVPlay

Adaptive streaming (DASH/HLS/Smooth Streaming) 自适应流(DASH / HLS /平滑流)

Samsung Developers > Smart TV > Develop > Guides > Multimedia > Adaptive Streaming 三星开发人员>智能电视>开发>指南>多媒体>自适应流

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM