'use strict'; import React from 'react'; import Button from 'react-bootstrap/lib/Button'; import Glyphicon from 'react-bootstrap/lib/Glyphicon'; import MediaPlayer from './../ascribe_media/media_player'; import CollapsibleButton from './../ascribe_collapsible/collapsible_button'; import AclProxy from '../acl_proxy'; let MediaContainer = React.createClass({ propTypes: { content: React.PropTypes.object }, render() { let thumbnail = this.props.content.thumbnail.thumbnail_sizes && this.props.content.thumbnail.thumbnail_sizes['600x600'] ? this.props.content.thumbnail.thumbnail_sizes['600x600'] : this.props.content.thumbnail.url_safe; let mimetype = this.props.content.digital_work.mime; let embed = null; let extraData = null; let isEmbedDisabled = mimetype === 'video' && this.props.content.digital_work.isEncoding !== undefined && this.props.content.digital_work.isEncoding !== 100; if (this.props.content.digital_work.encoding_urls) { extraData = this.props.content.digital_work.encoding_urls.map(e => { return { url: e.url, type: e.label }; }); } if (['video', 'audio'].indexOf(mimetype) > -1){ embed = ( Embed } panel={
                            {''}
                        
}/> ); } return (

{embed}

); } }); export default MediaContainer;