Do not play list in xmtv player

About XMTV Player Forums Development Do not play list in xmtv player

This topic contains 7 replies, has 2 voices, and was last updated by  nevazno 1 year, 3 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1704

    nevazno
    Participant

    Hello. I’m a beginner developer and try to play the playlists in your player. I’m good at playing single reference but with playing list problem.
    I do so:

    public class MainActivity extends Activity {
    
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_main);
            
            String uri = "uri";
        	String uri1 = "http://91.234.211.133:8015/1_1";
        	String uri2 = "http://89.105.158.158:80/udp/239.255.1.35:1234";
        	String title = "title";
        	String title1 = "channel1";
        	String title2 = "channel2";
        	String str = "[{"+title+":"+title1+","+uri+":"+uri1+"},{"+title+":"+title2+","+uri+":"+uri2+"}]";
        	
        	XMTVPlayerPlayList("Playlist1", str);
        	
        }
        
        public void XMTVPlayerPlayList(String Title,String StringJSArray){
    		Bundle bnd = new Bundle();
    		bnd.putString("data", StringJSArray);
    		bnd.putString("name", Title);
    		Intent intent = new Intent();
    		intent.setClassName("com.xmtvplayer.watch.live.streams","org.zeipel.videoplayer.XMTVPlayer");
    		intent.putExtras(bnd);
    		startActivityForResult(intent, 100);
    	}
        
    }
    

    Tell me what am I doing wrong?

    #1706

    support
    Keymaster

    Simple example:

    JSONArray jsonPlayList = new JSONArray();
    
    	JSONObject jsonPlayObject = new JSONObject();
    	jsonPlayObject.put("title", TitleString);  	// mandatory
    	jsonPlayObject.put("uri", VideoUrlString);  	// mandatory
    	jsonPlayObject.put("thumb", ImageUrlString);	// optional
    	jsonPlayObject.put("group", GroupString);	// optional
    	jsonPlayObject.put("channelid", EPGIdString);	// optional
    	jsonPlayObject.put("epgsource", EPGUrlString);	// optional
    	jsonPlayObject.put("epgshift", EPGShiftFloat);  // optional
        jsonPlayList.put(jsonPlayObject);	// Add Item 1
    	
    	jsonPlayObject = new JSONObject();
    	jsonPlayObject.put("title", TitleString);  	// mandatory
    	jsonPlayObject.put("uri", VideoUrlString);  	// mandatory
    	jsonPlayObject.put("thumb", ImageUrlString);	// optional
    	jsonPlayObject.put("group", GroupString);	// optional
    	jsonPlayObject.put("channelid", EPGIdString);	// optional
    	jsonPlayObject.put("epgsource", EPGUrlString);	// optional
    	jsonPlayObject.put("epgshift", EPGShiftFloat);  // optional
        jsonPlayList.put(jsonPlayObject);	// Add Item 2
    	// ............
    	// ............ Add more Items
    
    // jsonPlayList.toString() - return Playlist as a JSON string
    XMTVPlayerPlayList("Playlist1", jsonPlayList.toString() );
    • This reply was modified 1 year, 4 months ago by  support.
    #1708

    nevazno
    Participant

    Thank you very much , it works fine

    #1709

    support
    Keymaster

    If you have any additional questions, do not hesitate to contact us :)
    Cheers

    #1713

    nevazno
    Participant

    when viewing the playlist I’d like to send the item number for the automatic start of the channel, how do I do it?

    #1714

    nevazno
    Participant

    things when viewing a set-top box with android remote buttons do not work volume and brightness, you can pass it as a keycode buttons in order to make them work?

    #1717

    support
    Keymaster

    Hi, thanks for note, Ill try to find more easy way to control audio and brightness.

    Cheers

    #1725

    nevazno
    Participant

    Hi, I’m trying to open this stream http://8j0r6ttnyapcpxn0yjge.mine.nu:8000/Arenasport3?auth=52523tra+38745461 from XMTV player, but the video broadcast begins to slow and jerky picture , although other players all right , we can fix it as that ?

    • This reply was modified 1 year, 3 months ago by  nevazno.
Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

IPTV | Smart TV | Mobile Theatre Software | Media Player for Android(tm)