islem19/TV-Live-Stream

Video Player doesn't work

Closed this issue · 4 comments

Hello @islem19 ,

Thanks for developing and sharing your work. I have forked your app and modified data.json file with live tv m3u, mp4 and m3u8 links but none of those links work in app. It turns to black screen nothing plays. I tested those link in vlc and mx player, it works fine. Is there any way to fix it? Thanks.

Hey @ram2141
i have tested the video player and it works fine on both MP4 and M3U8 links, make sure you correctly parse the data.json file and get the link from json correctly, try to put the link directly in the player and see if it works there first.

Hey @islem19 ,

Thanks for replying me back. I have put m3u8 link and mp4 in jason file. I am new to android and don't know how to parse from data.json file or put the link directly in player. I tested those link in vlc and mx player, it works fine. Can you please send me some steps? I greatly appreciate your help. Thanks.

@ram2141
you can change the line in MainFragment.java reference here
bundle.putString("link","your_video_link");
you can insert link directly here and it should work fine. i haven't implemented the part where it parses the json file, you can look that by yourself if you want to do it that way.

Thank you @islem19 for your help. It worked.