Digital Media Player Usage n00b

Unanswered Question
Jun 2nd, 2010
User Badges:

I just got my hands on a Cisco Digital Media Player (its a newer one, not sure the exact model) and I need to make it run off a feed URL and have it play a website in TVzilla.  It works, however it is running in .NET and the way I wrote it it runs VERY slowly because I did not realize how stripped down it was.  There is a ticker that is unacceptably choppy, video does not play correctly.  I know there are numerous "Documentations" but they are it bit confusing.  That is what I have working now, so I just have a few simple qurestions:

  • Is there any pre-made example TVzilla sites I can use as a base to play with
  • Should I even be using this method, I keep seeing stuff about a DMM...what is it, how do I get it/use it.

I have had a really hard time getting info on this via Google, so I thought I'd make a post here to at least get myself some search terms.


Thanks for any help in advance!

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Tomas De Leon Wed, 06/02/2010 - 22:44
User Badges:
  • Cisco Employee,

Tom,


Take a look at the following user guides:


These may help you understand better.


Cisco Digital Media Suite

http://www.cisco.com/web/solutions/dms/index.html


Cisco Digital Media Suite: Cisco Digital Media Manager 5.2

http://www.cisco.com/en/US/prod/collateral/video/ps9339/ps6681/data_sheet_c78-477948.html


User Guide for Cisco Digital Media Manager 5.2.x

http://www.cisco.com/en/US/docs/video/digital_media_systems/5_x/5_2/dmm/user/guide/dmm52x.pdf



Cisco Digital Media Suite: Cisco Digital Media Player 4400G

http://www.cisco.com/en/US/prod/collateral/video/ps9339/ps7220/data_sheet_c78-480272.html



User Guide for Cisco Digital Media Designer 5.2.x

http://www.cisco.com/en/US/docs/video/digital_media_systems/5_x/5_2/dmd/user/guide/dmdug.pdf



T.

Nitroware1 Mon, 08/09/2010 - 12:17
User Badges:

Thanks Tom (Good name by the way).  Since I posted that thread I have written some code for this device (the 4400 G).  I have everything working except one piece, the video.  I have tried Google, and these forums and have not come up with much to explain why it is not working.  This is the code I am using to try to get the videos working.  I dont recall what I googled to get it (and Iit was one heck of a manhunt), but if I am not suppost to post this code, please just let me know and I will remove it ASAP:






var mediaPlayer; // MediaPlayer object.
var position = new Object(); // Current movie position.
var duration = new Object(); // Movie duration.
var active = new Object(); // Playing is in progress.
var movieTimeout = 3000; // Movie checking interval in milliseconds.
var i = 0;


var timer = 0;
const STATUS_IDLE = 0;
const STATUS_STARTING = 1;
const STATUS_PLAYING = 2;
const TRIES_LIMIT = 10;
var status = STATUS_IDLE;
var tries = 0;
// Put your movie URLs here.
var playlist = new Array(
//"http://171.71.225.119/DMSBU-1.mpg",
//"http://171.71.225.119/DMSBU-Talks.mpg"
"http://mysite.com/test.mov",
"http://mysite.com/ts4sd.mov",
"http://mysite.com/wildlife00001.avi"
) ;


function killPage(){
    try{
        destroy();
        location.reload(true);
    }catch(e){
        //console.debug(e);
        window.setTimeout("location.reload(true);", 10000);
    }
}
function init()
{
var el = document.getElementById("movie");
mediaPlayer = new tvMediaPlayer();


mediaPlayer.osdSetAlpha(window, 0, 0, window.screen.width, window.screen.height, 255);
if (el)
mediaPlayer.setOutputElement(window, el, 0);
mediaPlayer.setRightVolume(10);
mediaPlayer.setLeftVolume(10);
window.setTimeout("killPage();", 200000);
movie() ;
}


function destroy()
{
mediaPlayer.stop() ;
mediaPlayer.setFullScreen();
}


function nextItem()
{
mediaPlayer.stop() ;


mediaPlayer.play(playlist[i]) ;
status = STATUS_STARTING;
++i;
if (i >= playlist.length)
i = 0;
tries = 0;
}


function movie()
{
switch (status) {
case STATUS_IDLE:
nextItem();
break;
case STATUS_STARTING:
mediaPlayer.getPosition(position);
mediaPlayer.getDuration(duration);
mediaPlayer.isPlaying(active);


if( active.value) {
status = STATUS_PLAYING;
tries = 0;
} else // The playback is not started yet.
if (++tries > TRIES_LIMIT)
status = STATUS_IDLE;
break;
case STATUS_PLAYING:
mediaPlayer.getPosition(position);
mediaPlayer.getDuration(duration);
mediaPlayer.isPlaying(active);


if ((! active.value && duration.value > 0 && position.value > 0 && position.value ==


duration.value) ||
(!active.value && duration.value == 0 && position.value == 0 && ++tries > TRIES_LIMIT)) {
status = STATUS_IDLE;
nextItem();
}
break;
}
if (timer)
window.clearTimeout(timer);
timer = window.setTimeout("movie();", movieTimeout);
}


body {
margin: 10px;
background-color: #FF6600;
}
#movie {
width: 480px;
height: 240px;
border-width: 2px;
border-style: ridge;
border-color: #efb525;
}








I have checked and re-checked that code and have found nothing that would make it break.  That is almost word-for-word how I got it so either something is wrong with the DMP or none of my videos dont work. Thomas, if you want I can PM you the actual URL of this page and the videos if you could check them.


Thanks for any replies!

Tomas De Leon Mon, 08/09/2010 - 14:20
User Badges:
  • Cisco Employee,

Take a look at this site:


http://developer.cisco.com/web/dms


You can get the API guides that you may need here.


also, I have included some docs that may help you


I am not a programmer so I may not be of any help with code but I think

you will find what you need.


NOTE: the ".mov" & ".avi" will not play on the DMP from a remote site or locally.


Take a look at the DMP-4400G Data sheet to see the supported Content formats and containers


Cheers!


T.

Nitroware1 Fri, 08/13/2010 - 11:17
User Badges:

Really?  It wont play avi or mov?  in the DMS_ContentCreationBestPratices.pdf file it says right on there it will read .mov .avi and .mpg. 


I am trying both mpg and mp4 files now.  Will let you know how it goes.

Actions

This Discussion