Function InitCategoryFeedConnection() As Object
conn = CreateObject("roAssociativeArray")
conn.UrlPrefix = "http://scclib.com/demo/roku/xml"
conn.UrlCategoryFeed = conn.UrlPrefix + "/categories.xml?ts=" + dt.AsSeconds().ToStr()
conn.Timer = CreateObject("roTimespan")
conn.LoadCategoryFeed = load_category_feed
conn.GetCategoryNames = get_category_names
print "created feed connection for " + conn.UrlCategoryFeed
return conn
End Function
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<categories>
<category title="Awesomeness" description="Here it iskhj"
sd_img="http://scclib.com/demo/roku/images/test_sd_poster.jpg"
hd_img="http://scclib.com/demo/roku/images/test_hd_poster.jpg">
<categoryLeaf title="Awesomeness" description="" feed="http://scclib.com/demo/roku/xml/xmlfeed.php"/>
</category>
</categories>
<?php
echo file_get_contents('awesomeness.xml?ts=23423423');
?>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<feed>
<resultLength>2</resultLength>
<endIndex>2</endIndex>
<item sdImg="" hdImg="">
<title>Awesomeness</title>
<contentId>10001</contentId>
<contentType>Talk</contentType>
<contentQuality>SD</contentQuality>
<media>
<streamFormat>mp4</streamFormat>
<streamQuality>SD</streamQuality>
<streamBitrate>1500</streamBitrate>
<streamUrl>http://vidego-http.multicastmedia.com/mm/flvmedia/2878/M/a/k/MakingTheMostofIt_wk1-865721.f4v?cid=2878&aid=865721&afid=1099746</streamUrl>
</media>
<synopsis>This is what's happening</synopsis>
<genres>Crap</genres>
<runtime>120</runtime>
</item>
</feed>
<?php
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
?>
<categoryLeaf title="Awesomeness" description="" feed="http://scclib.com/demo/roku/xml/xmlfeed.php"/>
<categoryLeaf title="Awesomeness" description="" feed="http://scclib.com/demo/roku/xml/xmlfeed.php?ts=20120223104501"/>
<?php
echo file_get_contents('awesomeness.xml');
?>
<?phpSo instead of pointing at category.xml in categoryFeed.brs, you point at categories.php (keeping the timestamp!!😞
// Send the headers
header('Content-type: text/xml');
header('Pragma: public');
header('Cache-control: private');
header('Expires: -1');
//Store the current time in seconds into variable $now:
$now = time();
echo '<?xml version="1.0" encoding="utf-8" standalone="yes"?>';
echo '<xml>';
echo ' <categories>';
echo ' <category title="Awesomeness" description="Here it iskhj"';
echo ' sd_img="http://scclib.com/demo/roku/images/test_sd_poster.jpg"';
echo ' hd_img="http://scclib.com/demo/roku/images/test_hd_poster.jpg">';
//Append a timestamp to the category feed:
echo ' <categoryLeaf title="Awesomeness" description="" feed="http://scclib.com/demo/roku/xml/xmlfeed.php?ts=' . $now . '"/>';
echo ' </category>';
echo ' </categories>';
echo '</xml>';
?>
conn.UrlCategoryFeed = conn.UrlPrefix + "/categories.php?ts=" + dt.AsSeconds().ToStr()
Function InitCategoryFeedConnection() As Object
conn = CreateObject("roAssociativeArray")
conn.UrlPrefix = "http://scclib.com/demo/roku"
conn.UrlCategoryFeed = conn.UrlPrefix + "/categories.php?ts=" + dt.AsSeconds().ToStr()
conn.Timer = CreateObject("roTimespan")
conn.LoadCategoryFeed = load_category_feed
conn.GetCategoryNames = get_category_names
print "created feed connection for " + conn.UrlCategoryFeed
return conn
End Function
<?php
// Send the headers
header('Content-type: text/xml');
header('Pragma: public');
header('Cache-control: private');
header('Expires: -1');
//Store the current time in seconds into variable $now:
$now = time();
echo '<?xml version="1.0" encoding="utf-8" standalone="yes"?>';
echo '<xml>';
echo ' <categories>';
echo ' <category title="Awesomeness" description="Here it iskhj"';
echo ' sd_img="http://scclib.com/demo/roku/images/test_sd_poster.jpg"';
echo ' hd_img="http://scclib.com/demo/roku/images/test_hd_poster.jpg">';
//Append a timestamp to the category feed:
echo ' <categoryLeaf title="Awesomeness" description="" feed="http://scclib.com/demo/roku/xml/xmlfeed.php?ts=' . $now . '" />';
echo ' </category>';
echo ' </categories>';
echo '</xml>';
?>
<?php
echo file_get_contents('awesomeness.xml');
?>
We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.
Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality.
In the meantime, for additional assistance, visit our Support Site.
Thanks for your patience — we’re excited to share what’s next!