Upgrade to V5-refresh broke my HTML app

Topics: Windows 8 JavaScript
Aug 20, 2012 at 11:32 AM

I just upgraded a working Win8 RTM app using PF v4.0 to to v5 and now it no longer work since it can't find associated winControl.

HTML:

<div id="mediaplayerLive"
                                    data-win-control="PlayerFramework.MediaPlayer"
                                    data-win-options="{                                   
                                    isSkipNextVisible: false,         
         autoplay:true, 
                                    width:770,
                                    height:443,   
                                    isPlayPauseVisible:false,                              
                                    isFullScreenVisible:false,  
                                    isVolumeVisible:false,
                                    isTimelineEnabled:false,   
                                    isTimelineVisible:false,                                                                                                    
                                    isSkipPreviousVisible: false                                                                     
                                    }">
                                    <video id="video" x-ms-playtodisabled >
                                    </video>                                </div>


CODE:

function ready(element, options) {
        _advControl = advertising.winControl;  //OK
        var ctrl = mediaplayerLive.winControl; //Undefined ???
    }

_advControl is another custom control that works fine (winControl properly exposed)

What's changed from v4 to v5?