WordPress database error: [INSERT, UPDATE command denied to user '51213-2'@'10.10.20.69' for table 'wp_options']
INSERT INTO `wp_options` (`option_name`, `option_value`, `autoload`) VALUES ('_transient_doing_cron', '1714963383.9731740951538085937500', 'yes') ON DUPLICATE KEY UPDATE `option_name` = VALUES(`option_name`), `option_value` = VALUES(`option_value`), `autoload` = VALUES(`autoload`)


Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372

Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372

Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372

Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372

Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372

Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372

Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372

Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372
{"id":1241,"date":"2012-12-04T09:52:27","date_gmt":"2012-12-04T08:52:27","guid":{"rendered":"http:\/\/www.jonathanantoine.com\/?p=1241"},"modified":"2012-12-04T10:51:24","modified_gmt":"2012-12-04T09:51:24","slug":"win8-app-stream-videos-from-a-windows-azure-blob-storage","status":"publish","type":"post","link":"http:\/\/www.jonathanantoine.com\/2012\/12\/04\/win8-app-stream-videos-from-a-windows-azure-blob-storage\/","title":{"rendered":"Win8 App : stream videos from a Windows Azure Blob storage"},"content":{"rendered":"

\"\"Videos are everywhere and specially in Windows 8 app. Using a Windows Azure’s blob to store them is a good solution and this what we choose in on of the app we build in my company (Infinite Square<\/a>). <\/p>\n

We uploaded the files in the blobs, used a MediaElement to play them but it seems like the video needed to be fully downloaded to be played<\/strong>. It was very frustating since the videos weighted dozen of Mbytes. <\/p>\n

The solution is in the Cloud! <\/strong>
\n<\/p>\n

When you use Blob storage, you can actually set a default version for the API<\/a>. It can be obvious for the Azure expert but not for me. <\/p>\n

If you set this default version to “2011-08-18” then you will be able to do partial and pause\/resume downloads on blob objects.<\/strong> This is exactly what we were looking for !<\/p>\n

To do this, th only way I found was to create a little .NET program, reference the Azure SDK (thank you Nuget) and call the SetServiceProperties with the correct arguments.<\/p>\n

[csharp]
\nstring accountName = "your account Name";
\nstring accountKey = "your account key";
\nvar cloudStorageAccount = CloudStorageAccount
\n .Parse(string.Format(
\n "DefaultEndpointsProtocol=http;AccountName={0};AccountKey={1}"
\n , accountName, accountKey));<\/p>\n

CloudBlobClient client = cloudStorageAccount.CreateCloudBlobClient();<\/p>\n

var prp = client.GetServiceProperties();
\nclient.SetServiceProperties(new ServiceProperties()
\n {
\n DefaultServiceVersion = "2011-08-18",
\n Logging = prp.Logging,
\n Metrics = prp.Metrics<\/p>\n

});<\/p>\n

[\/csharp]<\/p>\n

Now you just have to use the uri of the video in your XAML UI ( or with a video tag) :
\n[xml]
\n<playerFramework:MediaPlayer Source="{Binding VideoUri}"
\n PosterSource="\/Assets\/Images\/videoPoster.png"
\n AutoPlay="False"
\n AutoLoad="False" \/>
\n[\/xml]<\/p>\n","protected":false},"excerpt":{"rendered":"

Videos are everywhere and specially in Windows 8 app. Using a Windows Azure’s blob to store them is a good solution and this what we choose in on of the app we build in my…<\/p>\n","protected":false},"author":3,"featured_media":1246,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[28,35,5],"tags":[36,37,38,39,41,40],"_links":{"self":[{"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/posts\/1241"}],"collection":[{"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/comments?post=1241"}],"version-history":[{"count":10,"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/posts\/1241\/revisions"}],"predecessor-version":[{"id":1252,"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/posts\/1241\/revisions\/1252"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/media\/1246"}],"wp:attachment":[{"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/media?parent=1241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/categories?post=1241"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jonathanantoine.com\/wp-json\/wp\/v2\/tags?post=1241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}