Quantcast
Channel: Kaltura - Latest posts
Viewing all articles
Browse latest Browse all 7410

Custom url for video

$
0
0

OK - so here is a simple demo code that does that. Note that this of course loads a video from my personal site so please change it to your local files. This demonstrates overriding the poster image, video file and video title.

<html>
<head>
</head>
<script src="http://cdnapisec.kaltura.com/p/2027961/sp/202796100/embedIframeJs/uiconf_id/32020091/partner_id/2027961"></script>
<div id="kaltura_player_1447766358" style="width: 560px; height: 395px;" itemprop="video" itemscope itemtype="http://schema.org/VideoObject">
</div>
<script>
    kWidget.embed({
        "targetId": "kaltura_player_1447766358",
        "wid": "_2027961",
        "uiconf_id": 32020091,
        "flashvars": {
            'titleLabel':{
                'plugin': true
            },
            'mediaProxy': {
                'entry':{
                    'id': "1",
                    'name': "External video: Wildlife",
                    "description": "Description here",
                    "thumbnailUrl": 'http://amirush.com/vidmo/vid/poster.jpg'
                },
                'sources':[
                    {
                        "src":"http://amirush.com/vidmo/vid/wildlife-small.mp4",
                        "width":"640",
                        "height":"360",
                        "bandwidth":"9688824",
                        "type":"video/mp4; codecs=\"avc1.42E01E, mp4a.40.2"
                    }
                ]
            }
        }
    });
</script>
</body>
</html>

Viewing all articles
Browse latest Browse all 7410

Trending Articles