Showing results for 
Search instead for 
Do you mean 
If you don't find an answer, please click here to post your question.
Reply
Highlighted
Occasional Advisor
Posts: 8
Registered: ‎10-16-2012
Accepted Solution

IE8 Error on Playback for Video

We currently have the Ooyala Player inside Fancybox.  For IE8, when opening the video for the first time, it plays great.  Click out of fancybox, the player is destroyed fine as well.  When opening the player again through fancybox, we get the error:

 

Unable to get value of the property 'SetReturnValue': object is null or undefined.  I've googled this error and it seems to relate to the object id.

 

I notice on the debugger that the object id changes from the first video to the 2nd.

 

<script src='http://player.ooyala.com/v3/a0a303b4e446417497c5e524b556eced'></script>
<script type="text/javascript">
jQuery.noConflict();
    jQuery(document).ready(function(){

       jQuery("a.videolink").fancybox({

          'beforeShow': function() {          
              var videoPlayer = OO.Player.create('playerwrapper', 'R0ZjB2NTqDw3YRWba9RIpRnF6D9lRYKP', {});
             console.log(videoPlayer);
             videoPlayer.play();
          },

          'beforeClose': function () {
             var videoPlayer = OO.Player.create('playerwrapper', 'R0ZjB2NTqDw3YRWba9RIpRnF6D9lRYKP', {}); //OO.Player.create('playerwrapper');
             console.log(videoPlayer);
             videoPlayer.destroy();
          }
       });

    });
    </script>

<p style="font-weight: bold; color: red; font-size: 18px; line-height: 21px; margin-bottom: 10px; margin-left: 10px;">Welcome to TeachHUB.com</p>

    <!-- The Video Thumbnail -->
    <a class="videolink" href="#videocontainer" title="">
    <img src="/sites/default/files/homepage-video-player.jpg" style="float: left; padding: 0px 15px 15px 10px;"/>
    </a>
     
    <!-- The Video Object -->
    <div id="videocontainer">
            <div id='playerwrapper' style='width:480px;height:360px;'></div>


    </div>


Accepted Solutions
Ooyalan
Posts: 31
Registered: ‎06-26-2012

Re: IE8 Error on Playback for Video

Hi dsevcik,

Try not destroying the player and use other manipulation jQuery API functions to hide/show the player.

http://api.jquery.com/category/Manipulation/

Thanks
Ooyala Technical Support Team

View solution in original post


All Replies
Ooyalan
Posts: 31
Registered: ‎06-26-2012

Re: IE8 Error on Playback for Video

Hi dsevcik,

Try not destroying the player and use other manipulation jQuery API functions to hide/show the player.

http://api.jquery.com/category/Manipulation/

Thanks
Ooyala Technical Support Team