This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var headersDictionaryType = environment[key].GetType().BaseType.GetInterfaces().FirstOrDefault(i => i == typeof(IDictionary<string, string[]>)); | |
if (headersDictionaryType != null) | |
{ | |
var headersDictionary = environment[key] as IDictionary<string, string[]>; | |
foreach (var pair in headersDictionary) | |
{ | |
ThreadContext.Properties[pair.Key] = String.Join(",", pair.Value); | |
} | |
} | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foreach (var key in _options.RequestKeys) | |
{ | |
var headersDictionary = environment[key] as IDictionary<string, string[]>; | |
if (headersDictionary != null) | |
{ | |
foreach (var pair in headersDictionary) | |
{ | |
ThreadContext.Properties[pair.Key] = String.Join(",", pair.Value); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"SCP-1": { | |
"data": { | |
"experienceStreamReferences": [ | |
{ | |
"experienceId": "E-1", | |
"experienceStreamId": "ES-1", | |
"begin": 44.2, | |
"duration": 8.1 | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"map-1": { | |
"providerId": "CompanyX.MapProvider", | |
"data": { | |
//(experiencemetadata) | |
}, | |
"experienceStreams": { | |
"ES-1": { | |
"keyframes": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Map Provider | |
<script src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0"/> | |
//Deep Zoom Provider | |
<script src="lib/seadragon-0.8.9-rin.js"></script> | |
// Panorama Provider | |
<script type="text/javascript" src="lib/pano-viewer.js"></script> | |
<script src="lib/jquery.pxtouch.js" type="text/javascript"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Resolve the url to player understandable version | |
var deepstateUrl = myrin.resolveDeepstateUrlFromAbsoluteUrl(window.location.href); | |
// myrin refers to the PlayerControl object | |
// Load the player control with the new data | |
myrin.load(deepstateUrl); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
//Note the $ here refers to jquery object which needs to be loaded explicitly in the page | |
$(document).ready(function () { | |
rin.processAll().then(function(){ | |
var myrin = rin.getPlayerControl(document.getElementById('myrin')); | |
setTimeout(function () { myrin.play(); }, 1000); // play after 1 seconds | |
setTimeout(function () { myrin.pause(); }, 5000); // pause after 5 seconds | |
}); | |
}); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var p = rin.createPlayerControl( | |
playerElement, | |
{autoplay: true, controls: true, loop: true }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="rinPlayer" | |
class="rinPlayer" | |
style="width: 100%;height: 100%;margin: 0;padding: 0;overflow: hidden;" | |
data-src="narratives/sample/narrative.js" | |
data-options="autoplay=false&loop=true"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body onload="rin.processAll()"> | |
<div class="rinPlayer" | |
style="width:100%;height:100%;margin:0;padding:0;overflow: hidden;" | |
data-src="narratives/sample/narrative.js"></div> | |
</body> |
NewerOlder