Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML and streaming video  (Read 2586 times)

0 Members and 1 Guest are viewing this topic.

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
SFML and streaming video
« on: February 21, 2012, 04:04:52 pm »
Hi

Supposing I have a socket connection to a video server. Can I use SFML to get the raw data from the stream and display video?

Same with audio :)

Thanks
Ed
SFML 2.1

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SFML and streaming video
« Reply #1 on: February 21, 2012, 04:15:32 pm »
Why not? You can send whatever you want on a socket.
Laurent Gomila - SFML developer

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
SFML and streaming video
« Reply #2 on: February 22, 2012, 05:13:25 pm »
What I mean is, is there an SFML function to take a pointer to a load of raw pixel data and display it?
SFML 2.1

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SFML and streaming video
« Reply #3 on: February 22, 2012, 07:00:37 pm »
Texture::Update(const Uint8*)
Laurent Gomila - SFML developer

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
SFML and streaming video
« Reply #4 on: February 22, 2012, 10:34:25 pm »
As always, you are a genius. Thanks :)
SFML 2.1

 

anything