sajjadjaved01 / iptv

Android project for live streaming IPTV
185 stars 89 forks source link

Parse Issue #2

Closed raiarainne closed 6 years ago

raiarainne commented 7 years ago

How are you? I am getting an error as following when i use a .m3u file. 08-07 01:04:08.594 20566-20566/? D/error: length=14; regionStart=0; regionLength=-1

This is the m3u file what i use in app. http://links.nextip.biz:8585/get.php?username=n0SVnMJotH&password=jMhrpaSV7T&type=m3u_plus&output=ts

And this is a part of my code what the issue is occurred . try { //is = getAssets().open("tv_channels.m3u");

        File file = new File("/storage/emulated/0/Android/tv_test.m3u");
      // is= new FileInputStream(file);
        is=getContentResolver().openInputStream(Uri.fromFile(file));

        M3UPlaylist playlist = parser.parseFile(is);
        mPlaylistParams.setText(playlist.getPlaylistParams());
        mAdapter.update(playlist.getPlaylistItems());
    } catch (Exception e) {            
        Log.d("error", e.getMessage());
    }

Please give me solution. Thank you

sajjadjaved01 commented 7 years ago

i'm fine thanks-you. U have to place ur m3u in assets folder to check if parseing worked, let me know

raiarainne commented 7 years ago

I placed the m3u file in device storage. And i am calling that through uri. And this part is working correctly.

On Mon, Aug 7, 2017 at 12:54 AM, sajjad javed notifications@github.com wrote:

where r u placing m3u file

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sajjad0321/iptv/issues/2#issuecomment-320594920, or mute the thread https://github.com/notifications/unsubscribe-auth/AVHjq_MSordkT-ekLKpe4t8MFZfic-8Zks5sVsLJgaJpZM4OuyQb .

sajjadjaved01 commented 7 years ago

Okay then whats the issue ??

raiarainne commented 7 years ago

Thank you for your reply. I can read only channel name and categories in the m3u file. I need to read channel url and logo url. So this part is not working for me. Thank you

On Mon, Aug 7, 2017 at 2:35 AM, sajjad javed notifications@github.com wrote:

Okay then whats the issue ??

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sajjad0321/iptv/issues/2#issuecomment-320617467, or mute the thread https://github.com/notifications/unsubscribe-auth/AVHjq-7SYM0HdvPCVJznPTlBZWWqFjF4ks5sVtprgaJpZM4OuyQb .

sajjadjaved01 commented 7 years ago

Okay. I have removed that part showing channel url below channel name. & i'll fix logo url

sajjadjaved01 commented 7 years ago

& if u have time. Contribute to this proj to make it Awesome App. Thanks

raiarainne commented 7 years ago

Okay Let me try . I am trying to fix this issue in my end. If i have any solution. I will notify you soon. See you later

On Mon, Aug 7, 2017 at 2:42 AM, sajjad javed notifications@github.com wrote:

& if u have time. Contribute to this proj to make it Awesome App. Thanks

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sajjad0321/iptv/issues/2#issuecomment-320619054, or mute the thread https://github.com/notifications/unsubscribe-auth/AVHjqwrz_cu_1U4-9lh36_pBx6L1qHgHks5sVtwKgaJpZM4OuyQb .

sajjadjaved01 commented 7 years ago

Okay

sajjadjaved01 commented 7 years ago

Fixed ??? just wanna know.