0

I need to play videos from Assert library with description below. Can any one give the solution. I used Mediaplayer.JS from default 15 hive folder its not working. This is my code

<script src="/sites/dev/_Layouts/15/SP.js">
</script><script type="text/javascript" src="/sites/dev/MediaPlayer/MediaPlayer.js">
</script>
<div id="MediaPlayerHost">
   <script>
        var MediaURL = URL;
        mediaPlayer.createMediaPlayer(
    document.getElementById('MediaPlayerHost'),
    'MediaPlayerHost',
    '500px', '333px',
    {
        displayMode: 'Fullscreen',
        mediaTitle: 'Sample',
        mediaSource: MediaURL,
        autoPlay: true,
        loop: false,
        mediaFileExtensions: 'wmv;wma;avi;mpg;mp3;3gp;mp4;',
        silverlightMediaExtensions: 'wmv;wma;mp3;'
    });
             </script>
<div id='MediaPlayerHost'>
</div>
  • What does your code look like, what have you done to debug? What is happening? We need information to help you identify your issue, not write the application for you. – Eric Alexander Oct 15 '15 at 14:38
  • I have added my code – Venkatesh Kumar Balasubramani Oct 15 '15 at 14:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.