Re: nStreamPlayer ****
0.46 не идет на c650, зависает наглухо и минуты через 2-3 перегружается.
0.46 не идет на c650, зависает наглухо и минуты через 2-3 перегружается.
<?xml version="1.0" encoding="UTF-8" ?> <items> <category> <category_id>1</category_id> <category_title></category_title> </category> <category> <category_id>2</category_id> <category_title></category_title> </category> <channel> <title>''1''</title> <stream_url>udp://@239.195.0.1:1234</stream_url> </channel> <channel> <title>"2"</title> <stream_url>udp://@239.195.0.2:1234</stream_url> <description>2</description> <category_id>1</category_id> </channel> <channel> <title>"3"</title> <stream_url><![CDATA[udp://@239.195.0.7:1234]]></stream_url> <logo_30x30>5.png</logo_30x30><buffer>5242880</buffer> <description>238</description> <category_id>2</category_id> </channel> </items>
alert('items.length ' + items.length); for (var index = 0; index < items.length; index++) { chan_counter = chan_counter + 1; var title = ""; try { title = items[index].getElementsByTagName("title")[0].childNodes[0].nodeValue; } catch(e){ alert('title not found'); } var url = ""; try { url = items[index].getElementsByTagName("stream_url")[0].childNodes[0].nodeValue; } catch(e){ alert('url not found'); } var video_type = ""; try { video_type = items[index].getElementsByTagName("video_type")[0].childNodes[0].nodeValue; } catch(e){ alert('video_type not found'); } var logo_30x30 = ""; try { logo_30x30 = items[index].getElementsByTagName("logo_30x30")[0].childNodes[0].nodeValue; } catch(e){ alert('logo_30x30 not found'); } try { var buffer_byte = ""; buffer_byte = items[index].getElementsByTagName("buffer_byte")[0].childNodes[0].nodeValue; } catch(e){ alert('buffer_byte not found'); } var description = ""; try { description = items[index].getElementsByTagName("description")[0].childNodes[0].nodeValue; } catch(e){ alert('description not found'); } var Channel = Array(chan_counter, title, url, video_type, logo_30x30, buffer_byte, description); alert('Channel ' + Channel); this.channels.push(Channel); }
Комментарий