3 Replies
      Latest reply on Jan 22, 2018 10:34 AM by sw_mechanic
      sageiptv Level 1 Level 1 (0 points)

        Hello,

        in TVJS, we used the code to play .m3u8 urls (it works fine)

        var mediaItem = new MediaItem("video", videoURL);

        player.playlist = new Playlist();

        player.playlist.push(mediaItem);

        player.play();

         

        When we try the code with .ts url, the code fails to play the video.

        the .ts url is working fine on other players (eg. VLC media player installed on my Apple TV).

        any idea how to make this works in tvOS.

         

        Your help is greatly appreciated.

        • Re: Play .ts (MPEG-TS ) videos in TVML
          sw_mechanic Apple Staff Apple Staff (65 points)

          Playing with VLC is no indication. It may be doing extra work.

           

          I don't recall whether an unadorned .ts file will work with tvOS. It may have trouble deciding what it is.

          If this is the .ts that the .m3u8 points to, then I don't see what you hope to gain by referencing the .ts directly.

            • Re: Play .ts (MPEG-TS ) videos in TVML
              sageiptv Level 1 Level 1 (0 points)

              Thanks for your answer.

              I'm not sure I did understand what you mean with "Playing with VLC is no indication. It may be doing extra work"

              Could you please explain what "an unadorned .ts file" is?

              I have applications installed on my Apple TV that work great with .ts URLs.

              if I can't play those Urls, is it a TVML limitation? or playing .ts urls requires other librairies, if so, which?

               

              Thanks for taking time to look into this.

                • Re: Play .ts (MPEG-TS ) videos in TVML
                  sw_mechanic Apple Staff Apple Staff (65 points)

                  VLC may be doing completely it's own thing and simply feeding frames out. In which case VLC playing a file tells you nothing about what the Apple frameworks will do.

                   

                  By "unadorned" I meant a .ts file referenced directly (as opposed to via an m3u8).

                   

                  I don't understand why you want to access the .ts directly.

                  We recommend HLS becuase of the added advantages over a single bit rate file.