Pro VOD And Drupal Intergration
We have just installed the Pro VOD Server We have the Public interface witch is good But we need more. We need to get just the shows foe a particular search criteria to show on a page and only show search with VOD.
What we are trying to do is VOD all government meeting and keep a archive. With the ability to click on a link and only show VOD files for that government.
Any help would be appreciated.
Nathan Rollins
ICTV
218-327-5866
www.watchictv.org
What we are trying to do is VOD all government meeting and keep a archive. With the ability to click on a link and only show VOD files for that government.
Any help would be appreciated.
Nathan Rollins
ICTV
218-327-5866
www.watchictv.org
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
The company marked this question as answered.
-
Inappropriate?A similar list has been asked for in the past. It would be nice to have a better search with the ability to use wildcards. I think this would be a solution to a lot of the custom lists people are looking for on the public site side.
-
Inappropriate?If there was a way to search the VOD database with wildcards, it would be a help. Currently, you can't 'List all' vod files on the web site, but it can be generated under Digital File Management in the Autopilot - but with close to 1000 vods online, we're hitting a wall in easily searching out content.
-
Inappropriate?The web service has an Advanced Show search function. This function has a switch you can set to only return VOD shows. Using this you could search among shows that are VOD with the Advanced Show Search function, or you could retrieve a list of all shows that are VOD and perform more complicated searches among the data set.
-ray -
Inappropriate?What I would like to See is a PHP file that can go and Grab the data we need. One for each government that we tape. A Static Search page where the End User would not have to input anything lust click on the hyper link for the government they want and all the shows for that government are listed
-
Inappropriate?Hey Nathan...
I just posted this code for another topic, but figured it would work for what you want as well. It requires the nusoap php library.
http://sourceforge.net/projects/nusoap/
Create a category for each specific government that you have and then embed that category number in the code where it says YOURCATEGORYID. Of course put your server in the top where it says YOURSERVERADDRESS
Then it will print a simple html table with all the VOD shows in that category with 'watch now' links.
Its pretty simple, but could be expanded on.
Let me know if you have any questions...
<?php require_once('nusoap.php'); //SOAP function library
$client = new nusoap_client("YOURSERVERADDRESS/CablecastWS/CablecastWS.asmx?WSDL", 'wsdl'); // Creates New SOAP client using WSDL file
$searchDate = date("Y-m-d")."T12:00:00";
// Search for all shows that have an event date less than now that are available for VOD
$result = $client?>call('AdvancedShowSearch', array(
'ChannelID' => 1,
'searchString' => '',
'eventDate' => $searchDate,
'dateComparator' => '<',
'restrictToCategoryID' => YOURCATEGORYID, //This would be the category ID
'restrictToProducerID' => 0,
'restrictToProjectID' => 0,
'displayStreamingShowsOnly' => 1,
'searchOtherSites' => 0,), '', '', false, true);
$resultNumber = count($result['AdvancedShowSearchResult']['SiteSearchResult']['Shows']['ShowInfo']); // of shows for loop
$count = 0; // Set count varaible
if($resultNumber == '0')
{
//There is probably something wrong if this shows up.
echo "There are now Shows currently available for on demand viewing.";
}
// Prints out a table with time and show title with link to show detial page
if($resultNumber >= '1')
{ echo "<table border="0" width="100%"><tr>\n
<th>Program Title</th><th>Link</th></tr>\n";
while ($count <= ($resultNumber -1))
{
echo "<tr><td>".$result['AdvancedShowSearchResult']['SiteSearchResult']['Shows']['ShowInfo'][$count]['Title']."</td><td><a href='".$result['AdvancedShowSearchResult']['SiteSearchResult']['Shows']['ShowInfo'][$count]['StreamingFileURL']."'>Watch Now</td></tr>\n";
$count++;
}
echo "</table>";
}
?>
-ray
1 person says
this answers the question
-
Ray
I have the the code up but it is not working. Did this post mess it up. url to the test page http://www.watchictv.net/searhvodtest.... could you email me the code @ nathan@pcrefreshonline.com or nrollins@watchictv.org -
Inappropriate?hey nathan,
I am on an iPhone, but following that link I just see the php code. Are you sure your server has php installed?
When I get back to the office I will investigate further and email you the code.
-ray -
Inappropriate?Ray
We have the php code up and working. This is what we needed and you deliverd. Thanks Ray
I’m Thankful
-
Inappropriate?Glad its working for you Nathan.
I'm trying to figure out where I'm going to post the PHP scripts I have so that everyone can use them, but once I do.. Check for any updates.
Let me know if you have any other issues / questions.
-ray -
Inappropriate?Ray
This script has been working great and stable. Is there a way to generate a XML Playlist from this. -
Inappropriate?XML playlist hmmm....
Are you trying to generate a play list for a embeddable flash player?
Anything is possible really.
-ray -
Inappropriate?I would like to use the playlist with JW Player. I currently have the script you made at http://www.watchictv.net/?q=node/951 but when you click on a video it opens media player in a new window. I would like to use JW wmv Player with pre mid and post role ads. I have the ad system working with other xml playlists butwould like to create a playlist from the vod server.
-
Inappropriate?@Ray & @Nathan,
I see Nathan has another topic going about this over here: http://gsfn.us/t/9tgg
Ray, if you have any suggestions, would you maybe want to post them over on that topic? I'd be curious to hear...
-John
Loading Profile...







CHAMP
EMPLOYEE