Skip to content

Instantly share code, notes, and snippets.

@ekashida
Created March 5, 2014 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ekashida/9363956 to your computer and use it in GitHub Desktop.
Save ekashida/9363956 to your computer and use it in GitHub Desktop.
datatype-xml-parse path weirdness
<html>
<head>
<script type="text/javascript" src="http://yui.yahooapis.com/combo?2.8.2r1/build/yahoo-dom-event/yahoo-dom-event.js&2.8.2r1/build/utilities/utilities.js&2.8.2r1/build/container/container-min.js&2.8.2r1/build/menu/menu-min.js&2.8.2r1/build/element/element-min.js&2.8.2r1/build/button/button-min.js&2.8.2r1/build/tabview/tabview-min.js&3.3.0/build/yui/yui-min.js&3.3.0/build/datatype/datatype-xml-parse-min.js"></script>
<script type="text/javascript" src="http://yep.video.yahoo.com/js/3/videoplayer-min.js"></script>
<script type="text/javascript">
YUI().use('videoplayer', 'console', 'node', function(Y){
var obj = new Object();
obj.id='player';
var vp = new Y.VideoPlatform.VideoPlayer({
/* REQUIRED CONFIG ITEMS */
pageSpaceId : "2145561353", // http://us.careers.yahoo.com/
comscoreC4 : '3005083',//"C4&amp space", //required comscore beacon c4 param
comscoreC5 : "3005083", //optional comscore beacon c5 param
playlist : {
mediaItems: [
{
title:'Yahoo! Global Careers -- shafeequ@',
// streamUrl:obj.streamUrl,
id: '07b35621-02dd-3265-ae94-b2d386c02fc4'
}
]
},
YVAP : {
accountId: '612',
playContext: '15749658'
},
lang: 'en-US',
autoplay: false
});
vp.render(Y.one('#'+obj.id));
});
</script>
<style type="text/css">
body{ margin: 0px; padding:0; height:100%; font-family: sans-serif; }
#player{ width: 400px; height: 300px; background:#3333FF; }
</style>
</head>
<body class="yui3-skin-sam">
<div id='player' ></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment