Document title should begin with play icon while video is playing #1780

Open
opened 2013-08-06 15:57:10 +00:00 by rlx · 2 comments
Owner

(includes /tv)

(includes /tv)
rlx added the
frontend
label 2013-08-06 15:57:10 +00:00
rlx self-assigned this 2013-08-06 15:57:10 +00:00
rlx added the
normal
enhancement
labels 2013-08-06 15:57:10 +00:00
Author
Owner

One can introduce pandora.isPlaying, which gets updated on player/editor/timeline paused event, and something like the utils method below ... the challenges are to keep the icon out of the history (updateDocumentTitle(false) before URL.push -- but the video may be playing while a dialog URL is active), and to set isPlaying to false when the video disappears in playing state.

pandora.updateDocumentTitle = function(isPlaying) {
    if (arguments.length == 0) {
        isPlaying = pandora.isPlaying;
    }
    var title = (isPlaying ? '▶ ' : '') + document.title.replace(/^▶ /, '');
    if (title != document.title) {
        document.title = title;
    }
};
One can introduce pandora.isPlaying, which gets updated on player/editor/timeline paused event, and something like the utils method below ... the challenges are to keep the icon out of the history (updateDocumentTitle(false) before URL.push -- but the video may be playing while a dialog URL is active), and to set isPlaying to false when the video disappears in playing state. ``` pandora.updateDocumentTitle = function(isPlaying) { if (arguments.length == 0) { isPlaying = pandora.isPlaying; } var title = (isPlaying ? '▶ ' : '') + document.title.replace(/^▶ /, ''); if (title != document.title) { document.title = title; } }; ```
Author
Owner

Just as we'd want to keep the icon out of the history, we don't want it in bookmarks either.

The main reason has this is to show which (out of many) tabs have a video playing -- that's probably not so much of an issue with pan.do/ra.

So maybe it's not worth the trouble...

Just as we'd want to keep the icon out of the history, we don't want it in bookmarks either. The main reason <YouTube> has this is to show which (out of many) tabs have a video playing -- that's probably not so much of an issue with pan.do/ra. So maybe it's not worth the trouble...
rlx added this to the 13.03 milestone 2014-02-10 05:23:13 +00:00
rlx modified the milestone from 13.03 to 14.02 2014-02-10 05:23:13 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: 0x2620/pandora#1780
No description provided.