I need help developing a new site (1 Viewer)

doskabouter

Development Group
  • Team MediaPortal
  • September 27, 2009
    4,566
    2,938
    Nuenen
    Home Country
    Netherlands Netherlands
    Ai, that's a tough one! Don't think that's possible right?
     

    Dj_Moren

    Portal Pro
    November 7, 2009
    171
    25
    Oh! :confused: In that case i will show HD video if available and if not SD. If this feature is implemented in a future i will update de script.
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    You can make the Video that has an HD and SD option like the Apple Trailers Site in this case. Instead of a trailers name you then have SD and HD in the options. I am unsure if this works, but is worth a try.
     

    Dj_Moren

    Portal Pro
    November 7, 2009
    171
    25
    That worked offbyone!!
    Now i Have 2 sites finished and i want to share them with the community:
    - Antena 3: this was done by ollienator, so all the credits go for him. I have just make a couple of changes to view all the programs, not only the firts page ones. I have created a "Antena3NuevoUtil.cs" for this project, but i think the best choice would be to overwrite the original name with this because i will share the source code and it could help people develop changes in the future when the site makes changes. In this case what do i have todo?
    - LaSexta: I've done this site to allow to watch complete programs shared in the site. I think it's well developed but i've put some Debug logs just for possible problems. How can i do this?

    As said before i want to share this code with the cummunity so i would like to upload this site utils to google code.
    Now i would try to do another sites. Thanks a lot for the support
     
    Last edited:

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    Send me a PM with your google code account email, I'll add it so you can commit to the OnlineVideos project :)

    I can assign the Antena 3 site to your email that you registered with OnlineVideos (via config dialog publish site), then you can overwrite it. If you want log from your site, simply use the Log class from Onlinevideos core instead of Debug.Write. That will write to the OnlineVideos.log file and users can upload it.
     

    Dj_Moren

    Portal Pro
    November 7, 2009
    171
    25
    So do i have to change the name of my Antena3NuevoUtil.cs to Antena3Util.cs when i upload the site, correct? I'm using Log class from Onlinevideos and always in debug level.
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    What project currently holds a Antena3Util.cs?
    You don't need to rename the c# class, a site can have any siteutil assigned, it's a simple attribute value in the xml. We simply need to overwrite the site's xml and keep the site's name.
     

    Dj_Moren

    Portal Pro
    November 7, 2009
    171
    25
    i've uploaded LaSexta site (with publish option) and it works OK.
    Antena3 is in ollienator's Site. What do i have to do to publish it? Because if i try to do it i receive a message that only the site creator or an admin can do that.

    EDIT: when i try to commit the source code to server i get the following errors: "Server sent unexpected return value (405 Method Not Allowed) in response to" and " MKACTIVITY request for '/svn/!svn/act/d23df0b7-b0be-7346-b9cb-fa5fd0b266bb'". I thought tortoise would ask me for authentication, but no autentication asked. What am i doing wrong? EDIT2: i just relocated the url from http:// to https:// and i can commit now, so the source code is online.
     
    Last edited:

    Dj_Moren

    Portal Pro
    November 7, 2009
    171
    25
    Hello, i'm having some trouble with some videos. When i play them sometimes they return an error and sometimes not. If you try to download it by any http downloader they work well, but when i ry to reproduce them i get sometimes an error and other times it plays well. The error is here:
    Code:
    [09-07 19:25:01,671] [OnlineVideos] [DEBUG] LaSexta: getting video choices info from video El Intermedio. Pedro Jota y Rajoy, una curiosa historia de amor
    [09-07 19:25:01,672] [OnlineVideos] [DEBUG] GetWebData-GET: 'http://www.lasexta.com/lasextaon/elintermedio/completos/el_intermedio__pedro_jota_y_rajoy__una_curiosa_historia_de_amor/655703/1'
    [09-07 19:25:02,120] [OnlineVideos] [DEBUG] LaSexta: getting clip info from video El Intermedio. Pedro Jota y Rajoy, una curiosa historia de amor
    [09-07 19:25:02,121] [OnlineVideos] [DEBUG] GetWebData-GET: 'http://www.lasexta.com/sextatv/playlist/655703'
    [09-07 19:25:03,465] [OnlineVideos] [DEBUG] LaSexta: getting multiple video URLs from video El Intermedio. Pedro Jota y Rajoy, una curiosa historia de amor with quality Calidad estándar
    [09-07 19:25:03,467] [OnlineVideos] [DEBUG] GetWebData-GET (cached): 'http://www.lasexta.com/sextatv/playlist/655703'
    [09-07 19:25:03,468] [OnlineVideos] [DEBUG] LaSexta: replacing final URL: http://lasextavod-f.akamaihd.net/z/elintermedio/sd/XPD0000264095101_EL_INTERMEDIO___EP_951_04_09_2012_21_25_22_Ipad.mp4/manifest.f4m
    [09-07 19:25:03,468] [OnlineVideos] [DEBUG] LaSexta: final URL replaced: http://descarga.lasexta.com/elintermedio/sd/XPD0000264095101_EL_INTERMEDIO___EP_951_04_09_2012_21_25_22_Ipad.mp4
    [09-07 19:25:03,469] [OnlineVideos] [DEBUG] LaSexta: replacing final URL: http://lasextavod-f.akamaihd.net/z/elintermedio/sd/XPD0000264095101_EL_INTERMEDIO___EP_951_04_09_2012_21_30_13_Ipad.mp4/manifest.f4m
    [09-07 19:25:03,469] [OnlineVideos] [DEBUG] LaSexta: final URL replaced: http://descarga.lasexta.com/elintermedio/sd/XPD0000264095101_EL_INTERMEDIO___EP_951_04_09_2012_21_30_13_Ipad.mp4
    [09-07 19:25:03,470] [OnlineVideos] [DEBUG] LaSexta: replacing final URL: http://lasextavod-f.akamaihd.net/z/elintermedio/sd/XPD0000264095101_EL_INTERMEDIO___EP_951_04_09_2012_22_06_48_Ipad.mp4/manifest.f4m
    [09-07 19:25:03,470] [OnlineVideos] [DEBUG] LaSexta: final URL replaced: http://descarga.lasexta.com/elintermedio/sd/XPD0000264095101_EL_INTERMEDIO___EP_951_04_09_2012_22_06_48_Ipad.mp4
    [09-07 19:25:03,527] [MPMain      ] [INFO ] Preparing graph for playback of 'http://descarga.lasexta.com/elintermedio/sd/XPD0000264095101_EL_INTERMEDIO___EP_951_04_09_2012_21_25_22_Ipad.mp4'
    [09-07 19:25:04,595] [OnlineVideos] [INFO ] Start prebuffering ...
    [09-07 19:25:07,157] [OnlineVideos] [DEBUG] Buffering: 175/15550 KB (1%)
    [09-07 19:25:07,307] [OnlineVideos] [DEBUG] Buffering: 15494/15550 KB (99%)
    [09-07 19:25:09,259] [OVGraph    ] [DEBUG] BufferFile : Rendering unconnected output pins of source filter ...
    [09-07 19:25:09,275] [OVGraph    ] [INFO ] found H264 video on output pin
    [09-07 19:25:09,323] [OVGraph    ] [DEBUG] BufferFile : Playback Ready.
    [09-07 19:25:09,358] [OnlineVideos] [INFO ] Prebuffering finished.
    [09-07 19:25:09,374] [MPMain      ] [INFO ] OnlineVideosPlayer: Play 'http://descarga.lasexta.com/elintermedio/sd/XPD0000264095101_EL_INTERMEDIO___EP_951_04_09_2012_21_25_22_Ipad.mp4'
    [09-07 19:25:09,478] [MPMain      ] [DEBUG] MediaPortal Url Source Splitter --> LAV Video Decoder --> Enhanced Video Renderer
    [09-07 19:25:09,628] [MPMain      ] [DEBUG] MediaPortal Url Source Splitter --> LAV Audio Decoder --> Default DirectSound Device
    [09-07 19:25:30,102] [MPMain      ] [WARN ] OnlineVideosPlayer: Unable to play with reason: IMediaControl.GetState after 20 seconds: 0x00040237 - 'La transición de estado no se completó.'
    I have been looking at Play method of OnlineVideosPlayer.cs where the exception is thrown but it's very difficult to me to guess where is the problem.
    I can see that the problem comes when the buffer loads a lot of data and not the typical 2%.
    The problem is with LaSexta util, and try to play the newest 3 videos of "El intermedio" in SD or HD.
    Can you give it an eye? Thank you!
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    The last log line states the problem: The graph is build, and Play was called, but the graph did not report back as playing after 20 seconds. The problem is I do not know why :( This check was introduced to avoid the GUI to freeze, because not checking this and giving fullscreen to the player means exactly that.
     

    Users who are viewing this thread

    Top Bottom