Jump to:

794 Posts in 409 Topics by 304 members

Widgets

SilverStripe Forums » Widgets » Video for all devices

Discuss SilverStripe Widgets.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 733 Views
  • debtfreeslave
    Avatar
    Community Member
    13 Posts

    Video for all devices Link to this post

    Hi

    Hope someone can help. I need to include video for all devices on my website. That means it should work on all devices mac pc phone etc. I am using JWPlayer 5.7 with SilverStripe 2.3.7. I think I need to get the Videos in MP4 format to work on all devices does anyone know if I'm correct.

    Any help greatly appreciated

    Thanks in advance
    Gem

  • lerni
    Avatar
    Community Member
    80 Posts

    Re: Video for all devices Link to this post

    hi gem

    AFAIK h.264 works but in chrome for example it'll use flash with mp4 (http://blog.chromium.org/2011/01/html-video-codec-support-in-chrome.html). to support html5-video on all major browser you have to make 3 video files: H.264 / MP4 (.mp4), VP8 / WebM (.webm), Ogg Theora (.ogv). a mayor pain about html5-video but as soon you made all 3 viedo-formats JW-Player does a nice job with html5 video and falls back to flash if nothing else works.

    lukas

  • debtfreeslave
    Avatar
    Community Member
    13 Posts

    Re: Video for all devices Link to this post

    Hi Lerni,

    Thanks for your reply. What's confusing me is do i actually need to be using HTML 5 (SS 2.3.7 doesn't support it) or will JWPlayer take care of that for me so long as i supply the correct formats. if yes how do i embed the videos:

    <script type='text/javascript' src='/jwplayer/jwplayer.js'></script>

    <div id='mediaplayer'></div>

    <script type="text/javascript">
    jwplayer('mediaplayer').setup({
    'id': 'playerID',
    'width': '480',
    'height': '270',
    'file': '/videos/bunny.mp4',
    'image': '/thumbs/bunny.jpg',
    'modes': [
    {type: 'html5'},
    {type: 'flash', src: 'player.swf'},
    {type: 'download'}
    ]
    });
    </script>

    This is just deleted by tiny MCE when i save it even though I have made the extended entities in the config file accept java
    Help I'm stuck

    Thanks in advance
    Gemma

    733 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.