" ><img src="<?php echo $program->thumb_url($flv_w, 0); ?> " width="<?php echo $flv_w; ?> "></a> <?php } ?> </td> </div> <div class="x-links"> <a href="<?php echo video_url($program, 'asx'); ?> " title="<?php echo t('ASX Stream'); ?> " ><img src="<?php echo skin_url; ?> /img/play_sm.png"> <?php echo t('ASX Stream'); ?> </a> <a href="<?php echo $program->url;
public function __construct($data) { global $db; // This is a mythbackend-formatted program - info about this data structure is stored in libs/libmyth/programinfo.cpp if (!isset($data['chanid']) && isset($data[0])) { // Load the remaining info we got from mythbackend $this->title = trim($data[0]); # program name/title $this->subtitle = $data[1]; # episode name $this->description = $data[2]; # episode description $this->season = $data[3]; $this->episode = $data[4]; $this->total_episodes = $data[5]; $this->syndicatedepisodenumber = $data[6]; $this->category = $data[7]; $this->chanid = $data[8]; # mysql chanid $this->channum = $data[9]; $this->callsign = $data[10]; $this->channame = $data[11]; $this->filename = $data[12]; $this->filesize = $data[13]; $this->starttime = $data[14]; # show start-time $this->endtime = $data[15]; # show end-time $this->findid = $data[16]; $this->hostname = $data[17]; $this->sourceid = $data[18]; $this->cardid = $data[19]; $this->inputid = $data[20]; $this->recpriority = $data[21]; $this->recstatus = $data[22]; $this->recordid = $data[23]; $this->rectype = $data[24]; $this->dupin = $data[25]; $this->dupmethod = $data[26]; $this->recstartts = $data[27]; # ACTUAL start time (also maps to recorded.starttime) $this->recendts = $data[28]; # ACTUAL end time $this->progflags = $data[29]; $this->recgroup = $data[30]; $this->outputfilters = $data[31]; $this->seriesid = $data[32]; $this->programid = $data[33]; $this->inetref = $data[34]; $this->lastmodified = $data[35]; $this->stars = $data[36]; $this->airdate = $data[37]; $this->playgroup = $data[38]; $this->recpriority2 = $data[39]; $this->parentid = $data[40]; $this->storagegroup = $data[41]; $this->audioproperties = $data[42]; $this->videoproperties = $data[43]; $this->subtitletype = $data[44]; $this->year = $data[45]; $this->partnumber = $data[46]; $this->parttotal = $data[47]; $this->category_type = $data[48]; $this->recordedid = $data[49]; // Is this a previously-recorded program? if (!empty($this->filename)) { $this->url = video_url($this); // get download info } // Assign the program flags $this->has_commflag = $this->progflags & 0x1 ? true : false; // FL_COMMFLAG = 0x00000001 $this->has_cutlist = $this->progflags & 0x2 ? true : false; // FL_CUTLIST = 0x00000002 $this->auto_expire = $this->progflags & 0x4 ? true : false; // FL_AUTOEXP = 0x00000004 $this->is_editing = $this->progflags & 0x8 ? true : false; // FL_EDITING = 0x00000008 $this->bookmark = $this->progflags & 0x10 ? true : false; // FL_BOOKMARK = 0x00000010 $this->is_recording = $this->progflags & 0x100000 ? true : false; // FL_INUSERECORDING = 0x00100000 $this->is_playing = $this->progflags & 0x200000 ? true : false; // FL_INUSEPLAYING = 0x00200000 $this->is_transcoded = $this->progflags & 0x100 ? true : false; // FL_TRANSCODED = 0x00000100 $this->is_watched = $this->progflags & 0x200 ? true : false; // FL_WATCHED = 0x00000200 // Can be deleted? $this->can_delete = !$this->is_recording && !$this->is_playing || $this->recgroup != 'LiveTV'; // Add a generic "will record" variable, too $this->will_record = $this->rectype && $this->rectype != rectype_dontrec ? true : false; } else { if (in_array($data['airdate'], array('0000-00-00', '0000', '1900-01-01'))) { $this->airdate = $data['originalairdate']; } else { $this->airdate = $data['airdate']; } $this->category = _or($data['category'], t('Unknown')); $this->category_type = _or($data['category_type'], t('Unknown')); $this->chanid = $data['chanid']; $this->description = $data['description']; $this->endtime = $data['endtime_unix']; $this->previouslyshown = $data['previouslyshown']; $this->programid = $data['programid']; $this->rater = $data['rater']; $this->rating = $data['rating']; $this->seriesid = $data['seriesid']; $this->showtype = $data['showtype']; $this->stars = $data['stars']; $this->starttime = $data['starttime_unix']; $this->subtitle = $data['subtitle']; $this->subtitled = $data['subtitled']; $this->title = $data['title']; $this->partnumber = $data['partnumber']; $this->parttotal = $data['parttotal']; $this->colorcode = $data['colorcode']; $this->syndicatedepisodenumber = $data['syndicatedepisodenumber']; $this->title_pronounce = $data['title_pronounce']; $this->recstatus = $data['recstatus']; $this->recordedid = $data['recordedid']; // These db fields should really get renamed... $this->audioproperties = $data['stereo']; $this->videoproperties = $data['hdtv']; $this->subtitletype = $data['closecaptioned']; } // Assign shortcut names to the new audio/video/subtitle property flags $this->stereo = $this->audioproperties & 0x1; $this->mono = $this->audioproperties & 0x2; $this->surround = $this->audioproperties & 0x4; $this->dolby = $this->audioproperties & 0x8; $this->audiohardhear = $this->audioproperties & 0x10; $this->audiovisimpair = $this->audioproperties & 0x20; $this->hdtv = $this->videoproperties & 0x1; $this->widescreen = $this->videoproperties & 0x2; $this->avc = $this->videoproperties & 0x4; $this->hd_ready = $this->videoproperties & 0x8; $this->fullhd = $this->videoproperties & 0x10; $this->damaged = $this->videoproperties & 0x20; $this->closecaptioned = $this->subtitletype & 0x1; $this->has_subtitles = $this->subtitletype & 0x2; $this->subtitled = $this->subtitletype & 0x4; $this->deaf_signed = $this->subtitletype & 0x8; // Generate the star string, since mysql has issues with REPEAT() and // decimals, and the backend doesn't do it for us, anyway. $this->starstring = @str_repeat(star_character, intVal($this->stars * max_stars)); $frac = $this->stars * max_stars - intVal($this->stars * max_stars); if ($frac >= 0.75) { $this->starstring .= '¾'; } elseif ($frac >= 0.5) { $this->starstring .= '½'; } elseif ($frac >= 0.25) { $this->starstring .= '¼'; } // Get the name of the input if ($this->inputid) { $this->inputname = $db->query_col('SELECT displayname FROM capturecard WHERE cardid=?', $this->inputid); } else { $this->inputname = $db->query_col('SELECT inputname FROM recorded WHERE recordedid=?', $this->recordedid); } // Turn recstatus into a word if (isset($this->recstatus) && $GLOBALS['RecStatus_Types'][$this->recstatus]) { $this->recstatus_orig = $this->recstatus; $this->recstatus = $GLOBALS['RecStatus_Types'][$this->recstatus]; $this->conflicting = $this->recstatus == 'Conflict'; # conflicts with another scheduled recording? $this->recording = $this->recstatus == 'WillRecord'; # scheduled to record? } // No longer a null column, so check for blank entries if (in_array($this->airdate, array('0000-00-00', '0000', '1900-01-01'))) { $this->airdate = NULL; } // Do we have a chanid? Load some info about it if ($this->chanid && !isset($this->channel)) { $this->channel =& Channel::find($this->chanid); } // Calculate the duration if ($this->recendts) { $this->length = $this->recendts - $this->recstartts; } else { $this->length = $this->endtime - $this->starttime; } // A special recstatus for shows that this was manually set to record if ($this->rectype == rectype_override) { $this->recstatus = 'ForceRecord'; } // Find out which css category this program falls into if ($this->chanid != '') { $this->css_class = category_class($this); } // Create the fancy description $this->update_fancy_desc(); }
" ><img src="<?php echo $show->thumb_url(100, 0); ?> " width="100" height="<?php echo floor(100 / $show->getAspect()); ?> "></a> <?php } else { echo ' -noimg">'; } ?> <a class="x-download" href="<?php echo video_url($show, true); ?> " title="<?php echo t('ASX Stream'); ?> " ><img height="24" width="24" src="<?php echo skin_url; ?> /img/play_sm.png" alt="<?php echo t('ASX Stream'); ?> "></a> <a class="x-download" href="<?php echo $show->url;
function popvideo($d) { list($d, $t) = explode('§', $d); $p = video_providers($d); $url = video_url($d, $p, $t) . ' '; //$im=video_img($d,$p); if($im)$img=image($ret).br(); $open = lj('', 'popup_video___' . ajx($d) . '___autosize', pictxt('play', $t ? $t : $p)) . ' '; return $img . btn('popbt', $open . $url); }
<video controls preload="none" width="<?php echo $flv_w; ?> " height="<?php echo $flv_h; ?> " poster="<?php echo $program->thumb_url($flv_w, 0, 10); ?> "> <?php if ($program->title == 'QuadSplit') { ?> <source src="<?php echo video_url($program, 'mp4'); ?> "> <?php } else { ?> <source src="/h264xcode/<?php echo $program->chanid; ?> _<?php echo date('YmdHis', $program->recstartts - date('Z')); ?> .m4v"> <?php }
function popvideo($d) { list($d, $t) = explode('§', $d); $p = video_providers($d); list($w, $h) = explode('/', $t); if (is_numeric($w)) { return video_players($d, $p, $w, $h, ''); } $j = 'pagup_video___' . ajx($d) . '___autosize'; $url = video_url($d, $p, $t) . ' '; $im = video_img($d, $p); if ($im && !$t) { $bt = lj('', $j, image($im, '120', '90', '')); } $open = lj('', $j, pictxt('play', '')) . ' '; if ($bt) { return divc('', $bt . ' ' . btn('small', $url)); } else { return btn('popbt', $open . $url); } }
?> " class="cf" role="article" itemscope itemtype="http://schema.org/BlogPosting"> <header class="article-header"> <figure class="icon-play helper-image"> <a href="<?php the_permalink(); ?> "> <?php picturefill('dreams-640x400', 'dreams-640x400'); ?> </a> <a href="<?php video_url(); ?> " id="openVidOne" data-source="<?php extract_url('full'); ?> " class="autoplay"></a> </figure> </header> <?php // end article header ?> <aside class="excerpts"> <h2><?php the_title();