Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Entity video problem - only audio is playing  (Read 7226 times)

0 Members and 1 Guest are viewing this topic.

AndyT

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 14
    • View Profile
Entity video problem - only audio is playing
« on: July 14, 2013, 10:53:42 AM »

Hi to all,

i have weird problem - i am trying to play video from the entity, f.e.

var Video = Scene.CreateEntity();
Video.X = 50;
Video.Y = 70;
Video.Scale = 50;
Video.PlayTheora("Videos\pokus.ogv");

The playback runs (somewhere), but only audio is playing, i can´t see the video anywhere  :(
I don´t understand it at all...
Could anyone guess what the problem can be?

The Game.PlayTheora works ok...

Thanks a lot...
Logged

eborr

  • Regular poster
  • ***
  • Karma: 4
  • Offline Offline
  • Posts: 196
    • View Profile
Re: Entity video problem - only audio is playing
« Reply #1 on: July 16, 2013, 12:48:01 AM »

One thing to check on, are you using the main layer when showing the video ?

Another way to test would be to attach the video to a scene entity rather than an entity created on the fly
Logged

AndyT

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 14
    • View Profile
Re: Entity video problem - only audio is playing
« Reply #2 on: July 16, 2013, 11:30:00 AM »

Yes, i have tried both, if i create sprite or region entity on the main layer, still the same result, i hear only audio, but no video... Drives me crazy...
Logged

Spellbreaker

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Gender: Male
  • Posts: 376
    • View Profile
    • Apeiron Studios
Re: Entity video problem - only audio is playing
« Reply #3 on: July 17, 2013, 08:10:47 PM »

Dude, I think I got the Solution for you.

Make sure that the resolution of the video is a multiple of 16. ( eg. if you need 120x120, make it 128x128 ( simply add some transparency )) . That personally solved all my troubles I had with theora entitys some time ago ;)

Greets,

Spellbreaker
Logged

AndyT

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 14
    • View Profile
Re: Entity video problem - only audio is playing
« Reply #4 on: July 19, 2013, 05:25:58 PM »

OK i´ve sorted it out, just to let you know guys how stupid i am, i had the previous scene faded out manually and i forgot to fade in the current scene  ;D

Sorry for wasting your time and thanks for all the advices...
Logged

Spellbreaker

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Gender: Male
  • Posts: 376
    • View Profile
    • Apeiron Studios
Re: Entity video problem - only audio is playing
« Reply #5 on: July 24, 2013, 05:55:28 PM »



;) Shit happens ;)
Logged
 

Page created in 0.05 seconds with 23 queries.