GRAB Interactive Video Player 11-11-2010 - WNEM TV 5

GRAB Interactive Video Player 11-11-2010

#gnBroadcastAddThisNode { height:6px; margin:10px 0 !important; width:305px;} #share-link-wrapper { position:absolute; cursor:pointer; top:0px; } #share-link-wrapper.minimized { width:55px; height:16px; overflow:hidden; } #share-link-wrapper.maximized { overflow:visible; } #share-link-wrapper input { position:absolute; top:0; left:60px; width:190px; color: #183A52; } #share-link-wrapper a { position:absolute; width:55px; height:16px; background:transparent url(/sh/Grab_video_player/community-link-button.png) 0 0 no-repeat; } #share-link-wrapper div.clickable-zone { position:absolute; width:297px; height:56px; } #share-link-wrapper.maximized div.clickable-zone { background:#fff url(/sh/Grab_video_player/cancel-button.png) 260px 1px no-repeat; } #addthis-widget { position:absolute; left:80px; } #addthis-widget a { margin-left: 3px !important; }

if (YAHOO.env.ua.ie == 0) { document.getElementById("outterWrapperId").setAttribute("class","outterWrapper"); } else { document.getElementById("outterWrapperId").setAttribute("class","outterWrapperIE"); };




Top Stories


var is_listLoaded = false; var is_playerLoaded = false; var registeredPlayer = undefined; var registeredList = undefined; var initialVideoLoaded = false; var initialListLoaded = false; var companionZoneElement = document.getElementById( 'grab-vcl-companion_300x250' );<p /> var loadAsset = function( _asset ) { GRAB.mediaos.core.ui.component.player.video.load.call( registeredPlayer, _asset ); }; var getFirstListItem = function() { return registeredList.children[0].children[0]._metadata; }; var handlePlayerLoadComplete = function() { is_playerLoaded = true;<p /> registeredPlayer = GRAB.mediaos.core.registry.utils.findInRegistry( {"_type":"player", "name":"grabsingleasset"} ); if ( is_listLoaded ) { var firstListItem = getFirstListItem(); loadAsset( firstListItem ); } };<p /> GRAB.mediaos.core.ui.component.player.reactor.register( 'grab-vcl-player', 'onPlayerLoadComplete', handlePlayerLoadComplete );<p /> var handleVideoLoadComplete = function() { if ( initialVideoLoaded ) { if ( registeredPlayer["_states"].loaded ) { GRAB.mediaos.core.ui.component.player.play.call( registeredPlayer ); }; } else { initialVideoLoaded = true; } };<p /> var handleListLoadComplete = function() { if ( GRAB.mediaos.core.registry.components.lists.length > 1 ) { GRAB.mediaos.core.registry.components.lists.shift(); }; try { var loadingAnimationElement = document.getElementById( "grab-playlist-loading-animation" ); loadingAnimationElement.className = "hidden"; } catch (e) {};<p /> registeredList = GRAB.mediaos.core.registry.utils.findInRegistry( {"_type":"list", "name":"my-vcl-list"} ); registeredPlayer = GRAB.mediaos.core.registry.utils.findInRegistry( {"_type":"player", "name":"grabsingleasset"} );<p /> is_listLoaded = true;<p /> var firstListItem = getFirstListItem();<p /> if ( !initialListLoaded && registeredPlayer["_states"].loadFirstListItem ) { if ( is_playerLoaded ) { loadAsset( firstListItem ); } initialListLoaded = true; } };<p /> var handlePrerollBegin = function() { companionZoneElement.style.display = 'block'; };<p /> var handlePrerollComplete = function() { companionZoneElement.style.display = 'none'; }<p /> GRAB.mediaos.core.ui.component.list.reactor.register( 'grab-vcl-list-1', 'onListLoadComplete', handleListLoadComplete, 'my-vcl-list' ); GRAB.mediaos.core.ui.component.player.reactor.register( 'grab-vcl-player', 'onVideoLoadComplete', handleVideoLoadComplete ); GRAB.mediaos.core.ui.component.player.reactor.register( 'grab-vcl-player', 'onPrerollAdBegin', handlePrerollBegin ); GRAB.mediaos.core.ui.component.player.reactor.register( 'grab-vcl-player', 'onPrerollAdComplete', handlePrerollComplete );<p />

GRAB.mediaos.core.ui.component.player.reactor.register('grab-vcl-meta-videoTitle', 'onVideoLoadComplete', 'printHeadline' ); GRAB.mediaos.core.ui.component.player.reactor.register( 'grab-vcl-meta-videoSummary', 'onVideoLoadComplete', 'printSummary' ); var addThis_widget=document.getElementById("addthis-widget"); var share_url_button=document.getElementById("share-link-wrapper"); var share_url_area=document.getElementById("clickable-zone"); var share_url_field=document.getElementById("share-url-field"); share_url_button.onclick=function(e) { updateAddThisURL("sharing-link"); share_url_field.value=unescape(window.addthis_share.url); this["className"]="maximized"; return false; }; share_url_area.onclick=function(e) { if(!e) var e=window.event;e.cancelBubble=true; if(e.stopPropagation) e.stopPropagation(); share_url_button["className"]="minimized"; }; var updateAddThisURL=function(_service) { var page_url=window.location.protocol+"//"+window.location.host+'/local-video/index.html'; var vcl_player=GRAB.mediaos.core.registry.utils.findInRegistry({"_type":"player","name":"grabsingleasset"}); var current_asset_id=vcl_player._states.asset.metadata.id; var current_asset_title=vcl_player._states.asset.metadata.title; var grabnetworks_params="grabnetworks_video_id="+current_asset_id;window.addthis_share.url=page_url+"?"+grabnetworks_params; window.addthis_share.title=current_asset_title; window.addthis.ost=0; window.addthis.ready();<p /> };<p /> var len=addThis_widget.children.length; for(var n=0;n<len;n++) { var child_element=addThis_widget.children[n]; child_element.onmousedown=function(e) { var service_name=this["className"].match("_([a-zA-Z0-9]*) ")[1]; updateAddThisURL(service_name); } };

Powered by Frankly
WNEM
Powered by WorldNow CNN
All content © 2017, WNEM; Saginaw, MI. (A Meredith Corporation Station) . All Rights Reserved.
For more information on this site, please read our Privacy Policy, and Terms of Service, and Ad Choices.