Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

loop in a DMP-4305

Hi  friends.

I´m working with a dmp-4305 i make a HTML file using the base of Tomas de leon but i can only see a white screen, see my doc.

<html>
<head>
<meta http--equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>..:: Playlist (local storage) ::.. </title>
<style>
body {
margin: 0px;
background--color: #FF6600;
}
#movie {
width: 1366px;
height: 768px;
border--width: px;
border--style: ridge;
border--color: #efb525;
}
</style>
<script language="JavaScript" src="file:///tivella/tvzilla/js/tivella.js"></script>
<script language="JavaScript">
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_PLAYING = 1;
const TRIES_LIMIT = 10;
var status = STATUS_IDLE;
var tries = 0;

// Put your movie URLs here.

var playlist = new Array(

file:///tmp/ftproot/usb_1/dmp/001.mpg
) ;
function init()
{
var el = document.getElementById("movie");
mediaPlayer = new tvMediaPlayer();
//Make white non-transparent background
mediaPlayer.osdSetAlpha(window, 0, 0, window.screen.width, window.screen.height, 255);
if (el)
mediaPlayer.setOutputElement(window, el, 0);
// Set the left and right volume levels
mediaPlayer.setRightVolume(10);
mediaPlayer.setLeftVolume(10);

movie() ;
}
function destroy()
{
mediaPlayer.stop() ;
mediaPlayer.setFullScreen();
}
function nextItem()
{
mediaPlayer.stop() ;
mediaPlayer.play(playlist[i]) ;
status = STATUS_PLAYING;
++i;
if (i >= playlist.length)
i = 0;
tries = 0;
}
function movie()
{
switch (status) {
case STATUS_IDLE:
nextItem();
break;
case STATUS_PLAYING:
//Position would now be in position.value
mediaPlayer.getPosition(position);
//Duration would now be in duration.value
mediaPlayer.getDuration(duration);
if ((duration.value > 0 && position.value > 0 && position.value == duration.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);
}
</script>
</head><body onload="init();" onunload="destroy();">
<div id="movie"></div>
</body>
</html>

This is the link that i put in the browser section file:///tmp/ftproot/usb_1/loop.html

It´s my firts DMP project and i dont´s have a DMM i would like play a video loop, another question where i have to paste de Index.HTML?? in the USB_1 carpet usin the Filezilla or not??

Thank for your help.

Everyone's tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: loop in a DMP-4305

Carlos,


I just tested the file attached on my DMP and

it works fine.


* You need to edit the file for your content and where it is stored

  on the DMP.


I created the following directories using an FTP client:


/usb1/html

/usb1/movies

/usb1/music

/usb1/videos



* I copied the local-mpg-file.html file into the ../html directory and then copied my

  content (Cisco-HN-DoctorVisit.mpg) into the ../videos directory



* I then added the following URL:


  file:///tmp/ftproot/usb_1/html/local-mpg-file.html


   in the "Startup URLs" section for the "Browser" field value.



* Saved DMP configuration


* Restarted DMP



Note:  I performed these task using the DMP-DM Web Admin and a FTP client.



The DMP restarted and played the local video repeatedly in a loop.



If this answers your question, Please take time to mark this

discussion answered & rate the response.


Thank You!


T.




2 REPLIES
Cisco Employee

Re: loop in a DMP-4305

Carlos,


I just tested the file attached on my DMP and

it works fine.


* You need to edit the file for your content and where it is stored

  on the DMP.


I created the following directories using an FTP client:


/usb1/html

/usb1/movies

/usb1/music

/usb1/videos



* I copied the local-mpg-file.html file into the ../html directory and then copied my

  content (Cisco-HN-DoctorVisit.mpg) into the ../videos directory



* I then added the following URL:


  file:///tmp/ftproot/usb_1/html/local-mpg-file.html


   in the "Startup URLs" section for the "Browser" field value.



* Saved DMP configuration


* Restarted DMP



Note:  I performed these task using the DMP-DM Web Admin and a FTP client.



The DMP restarted and played the local video repeatedly in a loop.



If this answers your question, Please take time to mark this

discussion answered & rate the response.


Thank You!


T.




New Member

Re: loop in a DMP-4305

It´s works it´s works!!!!!!!!!!!!!!!!!!! Thanks a lot Tomas now is playing the loop and i can change the video.

Thanks again and well it´s my first DMP installation.

898
Views
0
Helpful
2
Replies