Media Instance Resource

Resource URI

https://mediahub.unl.edu/media/{id}

Note

All xml extra xml elements for media will be outputed to JSON with a '(namespace)_(key)':'(value)' pattern. These elements include, but are not limited to: geo infomration, itunes details, media details, and boxee information. These values will only display if they are set.

Resource Properties

Property Description JSON XML
id int: A numerical id for the media. 1
url URL: A url to the actual media file. 1
link URL: The url to the media file on Media Hub. 1 1
title Text: The title of the media. 1 1
description Text: The descripton of the media. 1 1
length Int: The size of the media file in bytes. 1
image URL: A url to the image of the midea. 1
type TEXT: The type of media. 1
author Text: The author of the media. 1
pubDate Date: The date the media was published. YYYY-MM-DD HH:MM:SS. 1 1
dateupdated Date: The date the media was last updated. YYYY-MM-DD HH:MM:SS. 1
lastBuildDate Date: The date and time that the feed was last built. 1
docs URL: Link to RSS specification 1
generator Text: Name and version of the generator used to generate the channel. 1
managingEditor Text: Details about the managing Editor. 1
webMaster Text: Details about the webmaster. 1
ttl Int: The maximum number of minutes the chanel has to live before referesing from the source. 1

Examples

Request

GET https://mediahub.unl.edu/media/1?format=json

Response

                            {
    "id": "1",
    "url": "https:\/\/mediahub.unl.edu\/uploads\/ucomm\/av\/video\/podcasts\/20100607_JazzInJune.mp4",
    "title": "Jazz In June Time Lapse",
    "description": "<p>Time lapse of the crowd at Jazz In June.<\/p>",
    "length": "7145215",
    "image": "https:\/\/mediahub.unl.edu\/media\/1\/image",
    "type": "video\/mp4",
    "author": "University Communications",
    "link": "https:\/\/mediahub.unl.edu\/media\/1",
    "pubDate": "2011-03-25 08:59:40",
    "dateupdated": null,
    "embed": "<div class=\"wdn-responsive-embed wdn-aspect16x9\">\n    <iframe src=\"https:\/\/mediahub.unl.edu\/media\/1?format=iframe&autoplay=0\" title=\"Jazz In June Time Lapse\" allowfullscreen><\/iframe>\n<\/div>",
    "media_content url=\"http:\/\/www.unl.edu\/ucomm\/ucomm\/av\/video\/podcasts\/20100607_JazzInJune.mp4\" fileSize=\"7145215\" type=\"video\/mp4\" lang=\"en\" width=\"640\" height=\"480\"": "",
    "media_copyright": "2010 University of Nebraska Lincoln",
    "media_thumbnail url=\"http:\/\/itunes.unl.edu\/thumbnails.php?url=http%3A%2F%2Fwww.unl.edu%2Fucomm%2Fucomm%2Fav%2Fvideo%2Fpodcasts%2F20100607_JazzInJune.mp4\"": ""
}
                        

Request

GET https://mediahub.unl.edu/media/1?format=xml

Response

                            <?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:itunesu='http://www.itunesu.com/feed' xmlns:itunes='http://www.itunes.com/dtds/podcast-1.0.dtd' xmlns:media='http://search.yahoo.com/mrss/' xmlns:boxee='http://boxee.tv/spec/rss/' xmlns:geo='http://www.w3.org/2003/01/geo/wgs84_pos#' xmlns:mediahub='https://mediahub.unl.edu/schema/mediahub.xsd' >
  <channel>
    <title>UNL MediaHub</title>
    <link>https://mediahub.unl.edu/</link>
    <description>Media from the University of Nebraska-Lincoln</description>
    <language>en-us</language>
    <pubDate>Mon, 20 Feb 2017 20:54:17 -0600</pubDate>
    <lastBuildDate>Mon, 20 Feb 2017 20:54:17 -0600</lastBuildDate>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>UNL_MediaHub 0.1.0</generator>
    <managingEditor>wdn@unl.edu</managingEditor>
    <webMaster>wdn@unl.edu</webMaster>
    <ttl>5</ttl>
    <item>
  <title>Jazz In June Time Lapse</title>
  <link>https://mediahub.unl.edu/media/1</link>
  <description><![CDATA[
  <p>Time lapse of the crowd at Jazz In June.</p>  ]]></description>
  <guid>https://mediahub.unl.edu/uploads/ucomm/av/video/podcasts/20100607_JazzInJune.mp4</guid>
  <pubDate>Fri, 25 Mar 2011 08:59:40 -0500</pubDate>
  <media:content url="http://www.unl.edu/ucomm/ucomm/av/video/podcasts/20100607_JazzInJune.mp4" fileSize="7145215" type="video/mp4" lang="en" width="640" height="480"></media:content>
<media:copyright>2010 University of Nebraska Lincoln</media:copyright>
<media:thumbnail url="http://itunes.unl.edu/thumbnails.php?url=http%3A%2F%2Fwww.unl.edu%2Fucomm%2Fucomm%2Fav%2Fvideo%2Fpodcasts%2F20100607_JazzInJune.mp4"></media:thumbnail>
  <enclosure url="https://mediahub.unl.edu/uploads/ucomm/av/video/podcasts/20100607_JazzInJune.mp4" length="7145215" type="video/mp4" />
</item>    </channel>
</rss>

                        

Request

GET https://mediahub.unl.edu/media/1?format=partial

Response

                            
<div class="wdn-band mh-video-band">
    <div class="wdn-inner-wrapper">
        <div class="mh-iframe-wrapper">
            <iframe height="667" src="https://mediahub.unl.edu/media/1?format=iframe" allowfullscreen title="watch media"></iframe>
        </div>
    </div>
</div>


<div class="wdn-band">
    <div class="wdn-inner-wrapper mh-media-page"> 
        <div class="wdn-grid-set">
            <div class="bp2-wdn-col-one-fourth mh-sidebar wdn-pull-right">
                
            
            </div>
            <div class="bp2-wdn-col-three-fourths">
                <h1 class="wdn-brand clear-top">Jazz In June Time Lapse</h1>
                                
                <div class="mh-authoring">
                                            <div class="wdn-sans-serif">Author: University Communications</div>
                    
                    <div class="wdn-sans-serif">Added: 03/25/2011</div>
                </div>

                <div class="wdn-grid-set wdn-center">

                    <div class="wdn-col-one-fifth mh-stat">
                        <span class="mh-count wdn-brand">54</span>
                        <span class="mh-context wdn-sans-serif">Plays</span>
                    </div> 

                    <div class="wdn-col-one-fifth mh-stat">
                        <span class="mh-count wdn-brand">0</span>
                        <span class="mh-context wdn-sans-serif">Comments</span>
                    </div> 

                    <div class="wdn-col-one-third mh-stat">
                                                    <span class="mh-ratio wdn-brand">640x480</span>
                            <span class="mh-size wdn-brand">
                                6.81 MB                            </span>
                                                
                    </div>  
                </div>          
                <hr>
                
                               
                <h2 class="wdn-sans-serif">Description</h2>
                <div class="mh-summary"><p>Time lapse of the crowd at Jazz In June.</p></div>


                                <hr>
                <div id="comments">
                    <script type="text/javascript">
                        WDN.loadCSS('../templates/html/css/comments.css?v=b759914');
                    </script>
                    <h2 class="wdn-sans-serif">Comments <span class="wdn-icon wdn-icon-comment" aria-hidden="true"></span></h2>
                    <span class="subhead">
                        0 Comments
                                            </span>
                                    </div>

                                    <a href="https://login.unl.edu/cas/login?service=https%3A%2F%2Fmediahub.unl.edu%2Fmedia%2F1">Log in to post comments</a>
                
            </div>
            <div class="bp2-wdn-col-one-fourth mh-sidebar">
                <div>

                    <a class="wdn-button embed mh-hide-bp2"><span class="wdn-icon-plus wdn-icon" aria-hidden="true"></span>Embed</a>
                    <br>
                    <a href="https://mediahub.unl.edu/uploads/ucomm/av/video/podcasts/20100607_JazzInJune.mp4" target="_blank" class="wdn-button mh-hide-bp2"><span class="wdn-icon-up-small mh-flip-180 wdn-icon" aria-hidden="true"></span>Download</a>

                </div>

                <h5>Related Channels</h5>
<div class="channels">
        			<a href="https://mediahub.unl.edu/channels/185" title="Videos about the University of Nebraska-Lincoln">
		    <div class="mh-channel-thumb mh-featured-channel wdn-center">
                <div>
                                            <object type="image/svg+xml" data="https://mediahub.unl.edu//templates/html/css/images/channel-icon.svg">
                            <img src="https://mediahub.unl.edu//templates/html/css/images/channel-icon-white.png" alt="More at UNL Image">
                        </object>
                                    </div>
            </div>
		    <div class="mh-video-label wdn-center wdn-sans-serif">
		                <span class="title">More at UNL</span>	       
		    </div>
		</a>
    </div>

            </div>
        </div>
    </div>
</div>



<div id="sharing">
    <h3>Embed</h3>
        <label for="embed_code">
        <strong>iframe embed code</strong> Copy the following code into your page
        <textarea cols="25" rows="6" id="embed_code" onclick="this.select(); return false;">&lt;div class=&quot;wdn-responsive-embed wdn-aspect16x9&quot;&gt;
    &lt;iframe src=&quot;https://mediahub.unl.edu/media/1?format=iframe&amp;autoplay=0&quot; title=&quot;Jazz In June Time Lapse&quot; allowfullscreen&gt;&lt;/iframe&gt;
&lt;/div&gt;</textarea>
    </label>
            <!--
        Old embed code for testing purposes
        <div id="mediahub_embed_1" class="mediahub-embed" data-mediahub-embed-version="2">
    <a href="https://mediahub.unl.edu/media/1">Jazz In June Time Lapse</a>
</div>
<script type="text/javascript" src="https://mediahub.unl.edu/media/1/embed/2?autoplay=0"></script>
        -->
    </div> 

                        

Format Information

The following is a list of formats used in MediaHub.