English > Development
Kroozbox - PVD to media theatre solution
rick.ca:
Nice documentation! And now I can see the search boxes from 10 feet. ;)
I think there are just two issues in the way of Kroozbox being usable (i.e., operated at a distance with a remote) when run in a browser...
First, there is no highlighting of links to indicate where the cursor/mouse is. If links would change the same way they do on mouse-hover, that would suffice. Then making the movie titles (i.e., as they appear under posters) links instead of plain text would make those visible when selected too. I don't know about the navigation icons and search boxes—is there a HTML code that changes images on selection/mouse-hover?
Second, when a media link is selected, it returns http://my.ip:8008/&media=moviepath/filename.avi, which causes the browser to "download" the file which in turn invokes a virus scanner. It seems to me, if it just returned moviepath/filename.avi, the movie would be launched in it's associated player.
In Firefox, a workaround for the first issue is to add something like the following to the Stylish extension. This is borrowed from MoreFocus style—so please don't ask me how it works :P. I was able to figure out that by changing the url-prefix variable in the second line from http to http://my ip address:8008, the style is applied only to Kroozbox (it may be too annoying for general use).
--- Code: ---@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document url-prefix(http), url-prefix(file) {
/* NormalLink - hover */
*:link:hover {
-moz-outline: 14px solid rgba(0,200,0,0.5) !important;
-moz-outline-offset: -14px !important;
/* -moz-outline-radius: 5px !important; */
}
/* FocusedElements & FocusedImages*/
:focus, :focus img {
-moz-outline: 12px solid rgba(255,255,0,0.5) !important;
-moz-outline-offset: -12px !important;
/* -moz-outline-radius: 5px !important; */
}
/* FocusedFormElements */
textarea:focus, input:focus, select:focus,button:focus, input[type="submit"]:focus
{
-moz-outline: 4px solid rgba(255,0,0,0.5) !important;
-moz-outline-offset: -2px !important;
/* -moz-outline-radius: 5px !important; */
}
/* HoveredFormElements */
textarea:hover:not(:focus), input:hover:not(:focus), select:hover:not(:focus),button:hover:not(:focus), input[type="submit"]:hover:not(:focus)
{
-moz-outline: 4px solid rgba(0,255,0,0.5) !important;
-moz-outline-offset: -2px !important;
/* -moz-outline-radius: 5px !important; */
}
/* Disables inner border in button */
*::-moz-focus-inner {border: 1px dotted transparent !important;}
}
--- End code ---
Nono:
--- Quote ---if it just returned moviepath/filename.avi, the movie would be launched in it's associated player
--- End quote ---
That wouldn't make any difference... and even... Kroozbox needs a way to know that the link is a media link and that it should get the movie from the original location and not under the template folder. The &media= tag is essential. The problem/solution is elsewhere.. Note that all is done properly in terms of the returned HTTP header (of the proper type). The media extender is working very well with it (skip forward, backward, seek, etc). Maybe another type or someting in the href link has to be specified... Can you find me a link (on the internet) pointing to a video that would launch your media player like you want? with it I would surely find the answer.
--- Quote ---First, there is no highlighting of links to indicate where the cursor/mouse is
--- End quote ---
Ok.. i'll see what I can do. Thanks for pointing out the Firfox trick.
rick.ca:
--- Quote ---Can you find me a link (on the internet) pointing to a video that would launch your media player like you want?
--- End quote ---
http://911myths.com/wtc7moresmoke.avi launches in my media player. This is not a link, just something found in my browser history. But I can make it a LINK, and that does the same thing. Remember, I'm near clueless about TCP/IP. All I'm saying is if I enter the complete pathname of a media file in my location bar (which seems to be the equivalent of File - Open), it will be launched in my media player. That may be unique to my configuration of Firefox and my system—I don't know. Perhaps what I should be asking for is the use of the local file URL scheme (i.e., file:\\\moviepath/filename.avi). And I'm not suggesting there's anything wrong with Froozbox—I imagine this would be a user-modification or (preferably) a configuration option for running it in a browser.
Nono:
This link also launch automatically with me but it is because of its small size (618k). It does get loaded completely before being given to the player (for me anyway).
Its funny because I use to have my browser streaming my video properly to the player and now it doesn't do it anymore (from all location - not only Kroozbox). Something has change in the last few months in my config and don't know what.. damn..
You will see that the links themselves works if you manually enter the media URL in the "open" option of VLC (or WMP)... so it is just a matter of browser/association/mimetype adjustment....
I have find another way to do it but it is somewhat of a patch. It involves wrapping the link into a .asx file descriptor that get sent to the browser. Works well under IE and Firefox /WMP/VLC but I'm reluctant to go that way until I have find the real reason for this behavior. I'll let you know.
If your movie files are all local (as your discussion seems to indicate), you could always change the link in the template to stream it with file:// instead of http.
Try this:
In the M-5.html file header you have this line:
--- Code: ---MEDIAHTTPLOCATIONSTART= <tr><td colspan="4" align="left" style="vertical-align:middle;" valign="middle"><a href="&media=
--- End code ---
Change it to:
--- Code: ---MEDIAHTTPLOCATIONSTART= <tr><td colspan="4" align="left" style="vertical-align:middle;" valign="middle"><a href="file:///
--- End code ---
Notice "&media=" changed to "file:///"
For series it is located in O-4.html
Change the line in the body that start with:
--- Code: ---<a href="&media=<!--MEDIAHTTPLOCATION-->" TVID="Play" name="nextlink" vod>....
--- End code ---
To
--- Code: ---<a href="file:///<!--MEDIAHTTPLOCATION-->" TVID="Play" name="nextlink" vod>....
--- End code ---
Notice the &media link replacement again.
Let me know.
Oh.. I have fix the "active" link behavior so you can now see much better what is your current link selection.
rick.ca:
What timing! When I got your post, I had M-5.html and O-4.html open for editing. And I would have thought your change would do it, but...
As displayed in my status bar, the link seems to be okay: e.g., file:///E:/Viewed/Barbarian Invasions (2003) 7.8.avi.
If I click on it, or copy link location, however, it does this: file:///E%3a%2fViewed%2fBarbarian%20Invasions%20%282003%29%207%2e8%2eavi, which, of course, doesn't work.
--- Quote ---You will see that the links themselves works if you manually enter the media URL in the "open" option...
--- End quote ---
So, yes, I now understand there's a difference between entering it "manually" and using the link. And that reminds me I have another issue to deal with—Firefox blocks links to local files. I've installed the Policy Manager add-on as a means to allow it for Froozbox.
--- Quote ---I have fix the "active" link behavior so you can now see much better what is your current link selection.
--- End quote ---
Great. I'm sure others will appreciate not having to implement my solution. :D
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version