2 Replies
      Latest reply: Dec 19, 2017 4:05 PM by sageiptv RSS
      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 (55 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.