![]() |
|
SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Video Widget Issue
I've encountered an issue that I am not sure why it's happening. I have a video widget and a button to play a local video through WatchLocalVideo(), but when I click play...I get two black horizontal bars on both sides and nothing in the center...however when have the button transition to another menu with the video widget, the video plays nicely with the video contents actually appearing and playing.
What do I have to do to play a video on a video widget in the same menu without transitioning to another menu widget? |
#2
|
||||
|
||||
Did you call Refresh() to get your Video widget re-evaluated? You may need a MediaPlayerFileLoadComplete hook to call Refresh() from.
Also make sure you have a conditional guarding your Video widget so that it doesn't show unless there's actually a video playing.
__________________
-- Greg |
#3
|
|||
|
|||
So I tried your suggestion, but I'm still getting the same problem with two vertical black bars on both sides and nothing showing in the middle.
And about the conditional guarding the video widget so it doesn't show until video is playing, when do I know exactly when a video is actually playing? Is it when the MediaPlayerFileLoadComplete hook is called? Cuz right now, that's what I'm doing and it doesn't seem to work. |
#4
|
|||
|
|||
Quote:
Code:
If HasMediaFile() true Video Widget Cheers Ben
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders |
#5
|
|||
|
|||
So I used the HasMediaFile() conditional, but I still have the same problem with the video widget.
Here's more detail on what I did: So I have a Panel Widget that contains the video widget which only appears based on the HasMediaFile conditional. And then I have another panel that contains the several buttons that when pressed would each play a different local video file. When pressed, I call the WatchLocalFile() method. I have two hooks. The MediaPlayerFileLoadComplete that calls Refresh() and the FilePlaybackFinished that called CloseAndWaitUntilClosed() method and then Refresh(). |
#6
|
|||
|
|||
You should simply be able to call the WatchLocalFile() with a Refresh() attached to it all under an item widget and it'll work. I've just tried it on my system purely because I've never used it before and it works ok.
Code:
Item Widget WatchLocalFile(OrtusBasePath + java_io_File_separator + "Ortus Video A.wmv") Refresh() If HasMediaFile() true Video Widget Cheers Ben
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders |
#7
|
|||
|
|||
I think I figured out the issue. It seems to have to do with the Animation field. In the panel I placed the Video Widget it, the Animation was in LayerForeground. Once I removed that field, the video plays ok.
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to use Video Widget | cracklepopflash | SageTV Studio | 5 | 08-21-2009 03:24 PM |
HD PVR Issue, Video Card, or Sage Issue? | MorfiusX | Hardware Support | 21 | 03-24-2009 05:34 PM |
Video issue | nettech_gt | Hardware Support | 9 | 11-09-2007 09:32 AM |
Scaling Text widget size within image widget area | Morgan111 | SageTV Studio | 2 | 12-04-2006 02:16 PM |
Sagetv 2.1 sound issue, small video issue sometimes | doox00 | SageTV Software | 2 | 11-06-2004 07:27 PM |