Reply To: Do not play list in xmtv player

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

#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 10 months, 1 week ago by  support.

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