vov-mobile

Check-in [9150567bce]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Use delay to make stream and Now Playing line up better
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:9150567bce7e48be146eb974840e2538b85a74d92f3b524fd38d8c6efcd079ab
User & Date: ajv-899-334-8894@vsta.org 2016-08-20 15:15:57
Context
2016-08-20
16:50
Move images to VoV web site. Pull banners dynamically. Implement URL click (window open) for banner entries. check-in: 0b51195174 user: ajv-899-334-8894@vsta.org tags: master, trunk
15:15
Use delay to make stream and Now Playing line up better check-in: 9150567bce user: ajv-899-334-8894@vsta.org tags: master, trunk
2016-07-29
19:19
Merge branch 'master' of https://github.com/vandys/vov-mobile Conflicts: index.html check-in: cc55f8d3e5 user: ajv-899-334-8894@vsta.org tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to nowplaying.js.

32
33
34
35
36
37
38


39

40

41
42
43
44
45
46
47
48
49
    if (idx == -1) {
	// alert("Malformed response");
	// Incomplete read; probably page reloading
	return false;
    }

    // Write current playing text into "nptext" area


    var elem = document.getElementById('nptext')

    elem.textContent = t.substr(idx+1)



    // <new-ver#> is used to wait for future change
    var ver = t.substr(0,idx)
    fetch_next(ver)
}

// Kick off initial content fetch
fetch_next("0");







>
>

>
|
>









32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
    if (idx == -1) {
	// alert("Malformed response");
	// Incomplete read; probably page reloading
	return false;
    }

    // Write current playing text into "nptext" area
    // (We hold off 12 seconds to better align the stream with the
    //  play change event back at the server.
    var elem = document.getElementById('nptext')
    setTimeout(function () {
	elem.textContent = t.substr(idx+1)
    }, 12000);


    // <new-ver#> is used to wait for future change
    var ver = t.substr(0,idx)
    fetch_next(ver)
}

// Kick off initial content fetch
fetch_next("0");