<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic HLS stream/Ajax/InAppBrowser in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/HLS-stream-Ajax-InAppBrowser/m-p/1089849#M64905</link>
    <description>&lt;P&gt;&lt;SPAN style="color: rgb(33, 33, 33); font-family: inherit; font-size: 16px; line-height: 24px; white-space: pre-wrap;"&gt;I need some help,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;when using internal browser, hls stream play very well, but can't exec ajax calls, and don't close browser, and with InAppBrowser i can exec ajax calls, can close the browser, can exec executeScript, but hls stream don't play.&lt;/P&gt;

&lt;P dir="ltr"&gt;&lt;SPAN style="color: rgb(83, 87, 94); font-size: 1em; line-height: 1.5;"&gt;any Idea?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;=========&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;            function Kiosk() {
                $("#situacao").html("&amp;lt;center&amp;gt;Acessando o Servidor...&amp;lt;/center&amp;gt;");
                var murl = dev.isDeviceReady.url+ 'kiosk';
                var dados = { uuid: dev.isDeviceReady.DeviceUUid, 
                              connection:   dev.isDeviceReady.DeviceConnection, 
                              platform:dev.isDeviceReady.NavPlatform,
                              model:dev.isDeviceReady.DeviceModel, 
                              nr: ++dev.isDeviceReady.nr,
                              idexterno:dev.isDeviceReady.idexterno
                            };
                $.ajax({
                    type: "GET",
                    url: murl,
                    data: dados,
                    crossDomain: true,
                    timeout: 3000,
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    complete: function (jqXHR, textStatus) {
                        data = JSON.parse( jqXHR.response );
                        var definido = (typeof data.resp !== "undefined");
                        console.log("responseCode:"+jqXHR.status + ' ' + definido  );
                        if ((jqXHR.status == 200) || (definido)) {
                           $("#situacao").html("&amp;lt;center&amp;gt;" +  jqXHR.statusText+ "&amp;lt;/center&amp;gt;");
                           if (data.resp.modo) {
                               $("#situacao").html("&amp;lt;center&amp;gt;" + data.resp.texto + "&amp;lt;/center&amp;gt;");
                               if (!dev.isDeviceReady.isShowMessage){
                                  dev.isDeviceReady.isShowMessage = true;
                                  var urlapp = dev.isDeviceReady.url + 'index.html' ;
                                  // with internal browser hls stream play                                  
                                  delete window.open;
                                  // but ajax,close and executeScript fail
                                  dev.isDeviceReady.ref = window.open(urlapp, '_blank', 'location=no');                                   
                                  dev.isDeviceReady.ref.addEventListener( "loaderror", function() {
                                       console.log('loaderror:');
                                  });
                               } else {
                                 dev.isDeviceReady.ref.executeScript({
                                    code: "sessionStorage.getItem( 'dados' )"
                                 },
                                 function( values ) {
                                    var name = values[ 0 ];
                                    console.log('180:&amp;lt;&amp;lt;&amp;lt;')
                                    if ( name ) {
                                        name = JSON.parse( name );
                                        console.dir(name);
                                    }
                                 });
                               }
                           } else {
                                dev.isDeviceReady.isShowMessage = false;
                                if (dev.isDeviceReady.ref)
                                    dev.isDeviceReady.ref.close();
                                $("#situacao").html("&amp;lt;center&amp;gt;" + data.resp.texto + "&amp;lt;/center&amp;gt;");
                           }
                        } else {
                           dev.isDeviceReady.isShowMessage = false;
                           if (dev.isDeviceReady.ref)
                               dev.isDeviceReady.ref.close();
                           $("#situacao").html("&amp;lt;center&amp;gt;  O servidor não conseguiu processar o pedido; Tente novamente mais tarde...&amp;lt;/center&amp;gt;");
                        }
                    }
                });
            }
            Kiosk();
            setInterval(function () {
                Kiosk();
            }, 1000 * 10 );&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jun 2016 18:40:34 GMT</pubDate>
    <dc:creator>antonio_carlos_o_</dc:creator>
    <dc:date>2016-06-08T18:40:34Z</dc:date>
    <item>
      <title>HLS stream/Ajax/InAppBrowser</title>
      <link>https://community.intel.com/t5/Software-Archive/HLS-stream-Ajax-InAppBrowser/m-p/1089849#M64905</link>
      <description>&lt;P&gt;&lt;SPAN style="color: rgb(33, 33, 33); font-family: inherit; font-size: 16px; line-height: 24px; white-space: pre-wrap;"&gt;I need some help,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;when using internal browser, hls stream play very well, but can't exec ajax calls, and don't close browser, and with InAppBrowser i can exec ajax calls, can close the browser, can exec executeScript, but hls stream don't play.&lt;/P&gt;

&lt;P dir="ltr"&gt;&lt;SPAN style="color: rgb(83, 87, 94); font-size: 1em; line-height: 1.5;"&gt;any Idea?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;=========&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;            function Kiosk() {
                $("#situacao").html("&amp;lt;center&amp;gt;Acessando o Servidor...&amp;lt;/center&amp;gt;");
                var murl = dev.isDeviceReady.url+ 'kiosk';
                var dados = { uuid: dev.isDeviceReady.DeviceUUid, 
                              connection:   dev.isDeviceReady.DeviceConnection, 
                              platform:dev.isDeviceReady.NavPlatform,
                              model:dev.isDeviceReady.DeviceModel, 
                              nr: ++dev.isDeviceReady.nr,
                              idexterno:dev.isDeviceReady.idexterno
                            };
                $.ajax({
                    type: "GET",
                    url: murl,
                    data: dados,
                    crossDomain: true,
                    timeout: 3000,
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    complete: function (jqXHR, textStatus) {
                        data = JSON.parse( jqXHR.response );
                        var definido = (typeof data.resp !== "undefined");
                        console.log("responseCode:"+jqXHR.status + ' ' + definido  );
                        if ((jqXHR.status == 200) || (definido)) {
                           $("#situacao").html("&amp;lt;center&amp;gt;" +  jqXHR.statusText+ "&amp;lt;/center&amp;gt;");
                           if (data.resp.modo) {
                               $("#situacao").html("&amp;lt;center&amp;gt;" + data.resp.texto + "&amp;lt;/center&amp;gt;");
                               if (!dev.isDeviceReady.isShowMessage){
                                  dev.isDeviceReady.isShowMessage = true;
                                  var urlapp = dev.isDeviceReady.url + 'index.html' ;
                                  // with internal browser hls stream play                                  
                                  delete window.open;
                                  // but ajax,close and executeScript fail
                                  dev.isDeviceReady.ref = window.open(urlapp, '_blank', 'location=no');                                   
                                  dev.isDeviceReady.ref.addEventListener( "loaderror", function() {
                                       console.log('loaderror:');
                                  });
                               } else {
                                 dev.isDeviceReady.ref.executeScript({
                                    code: "sessionStorage.getItem( 'dados' )"
                                 },
                                 function( values ) {
                                    var name = values[ 0 ];
                                    console.log('180:&amp;lt;&amp;lt;&amp;lt;')
                                    if ( name ) {
                                        name = JSON.parse( name );
                                        console.dir(name);
                                    }
                                 });
                               }
                           } else {
                                dev.isDeviceReady.isShowMessage = false;
                                if (dev.isDeviceReady.ref)
                                    dev.isDeviceReady.ref.close();
                                $("#situacao").html("&amp;lt;center&amp;gt;" + data.resp.texto + "&amp;lt;/center&amp;gt;");
                           }
                        } else {
                           dev.isDeviceReady.isShowMessage = false;
                           if (dev.isDeviceReady.ref)
                               dev.isDeviceReady.ref.close();
                           $("#situacao").html("&amp;lt;center&amp;gt;  O servidor não conseguiu processar o pedido; Tente novamente mais tarde...&amp;lt;/center&amp;gt;");
                        }
                    }
                });
            }
            Kiosk();
            setInterval(function () {
                Kiosk();
            }, 1000 * 10 );&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 18:40:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/HLS-stream-Ajax-InAppBrowser/m-p/1089849#M64905</guid>
      <dc:creator>antonio_carlos_o_</dc:creator>
      <dc:date>2016-06-08T18:40:34Z</dc:date>
    </item>
    <item>
      <title>aditional data</title>
      <link>https://community.intel.com/t5/Software-Archive/HLS-stream-Ajax-InAppBrowser/m-p/1089850#M64906</link>
      <description>&lt;P style="font-size: 13.008px; line-height: 19.512px;"&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;aditional data&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 13.008px; line-height: 19.512px;"&gt;using emulation tab, i can't see hls stream, receiveing this message bellow. in debug tab&lt;/P&gt;

&lt;P style="font-size: 13.008px; line-height: 19.512px;"&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;"Your browser does not support MSE, which is necessary for HTML5 playback.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 13.008px; line-height: 19.512px;"&gt;Flash Fallback is provided only when Viblast is used in combination with video.js. For more info refer to http://viblast.com/player/docs/videojs-integration"&lt;/P&gt;

&lt;P style="font-size: 13.008px; line-height: 19.512px;"&gt;vrs.: 3357/emulation&lt;BR /&gt;
	(Object) { "ACreq": "Mozilla/5.0 (Linux; Android 4.1.1; Nexus 7 Build/JRO03D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Safari/535.19", "filename": "./vs/index.html" }&lt;/P&gt;

&lt;P style="font-size: 13.008px; line-height: 19.512px;"&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;vrs.: 3400/emulation&lt;/SPAN&gt;&lt;BR style="font-size: 13.008px; line-height: 19.512px;" /&gt;
	&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;(Object) { "ACreq": "Mozilla/5.0 (Linux; Android 4.1.1; Nexus 7 Build/JRO03D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Safari/535.19", "filename": "./vs/index.html" }&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 13.008px; line-height: 19.512px;"&gt;windows 10/chrome&lt;BR /&gt;
	(Object) { "ACreq": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36", "filename": "./vs/index.html" }&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 18:54:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/HLS-stream-Ajax-InAppBrowser/m-p/1089850#M64906</guid>
      <dc:creator>antonio_carlos_o_</dc:creator>
      <dc:date>2016-06-08T18:54:02Z</dc:date>
    </item>
    <item>
      <title>Most AJAX problems have been</title>
      <link>https://community.intel.com/t5/Software-Archive/HLS-stream-Ajax-InAppBrowser/m-p/1089851#M64907</link>
      <description>&lt;P&gt;Most AJAX problems have been due to using the jQuery 1 library. Try switching to the jQuery 2 library, see &amp;gt; &lt;A href="https://software.intel.com/en-us/xdk/faqs/app-designer#ajax-jquery-one-fail" target="_blank"&gt;https://software.intel.com/en-us/xdk/faqs/app-designer#ajax-jquery-one-fail&lt;/A&gt; &amp;lt;&lt;/P&gt;

&lt;P&gt;I'm curious, why are adding to the dev.isDeviceReady object? That object is created by the xdk/init-dev.js file and it's only purpose is for combining a few ready events to make it easier to start your app at an appropriate moment. I recommend that you not augment it with additional elements.&lt;/P&gt;

&lt;P&gt;Regarding the error messages, it looks like you are trying to play a specially formatted video file? Not sure, But searching for that error message brings up a list of items, including &amp;gt; &lt;A href="https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats" target="_blank"&gt;https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats&lt;/A&gt; &amp;lt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 22:30:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/HLS-stream-Ajax-InAppBrowser/m-p/1089851#M64907</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2016-06-08T22:30:58Z</dc:date>
    </item>
  </channel>
</rss>

