TIL/Media2 HLS(HTTP Live Streaming) - HTTP Streaming Architecture HTTP Streaming Architecture HTTP Live Streaming(HLS)은 일반적인 서버로 HTTP 기반 재생을 위해 오디오와 비디오를 전송할 수 있다. Live broadcast와 Prerecorded content(Video on demand)를 지원한다. Different bit rates로 Multiple alternate streams을 지원한다, 그리고 클라이언트 소프트웨어는 네트워크 Bandwidth에 따라 스트림을 지능적으로 변경(Switch)한다. 또한, HLS는 Publisher가 그들의 저작물을 보호할 수 있도록 HTTPS 에서 Media encryption과 User authentication을 제공한다. HLS는 3가지의 파트로 구성된다. - Server co.. 2016. 4. 8. [SDL] 오디오 볼륨 조절하기 SDL에서 오디오 볼륨 조절하기 아래의 SDL_MixAudioFormat() function을 사용하면 된다. 좀더 자세한 내용은 SDL Wiki를 참고한다. void SDL_MixAudioFormat(Uint8* dst, const Uint8* src, SDL_AudioFormat format, Uint32 len, int volume) 아래는 예제 코드라고 하기에는 좀 그렇고 SDL_MixAudioFormat () function을 사용한 코드다. #include "SDL_audio.h" // SDL_MIX_MAXVOLUME is 128. int audioVolume = (SDL_MIX_MAXVOLUME / (float) 100) * ; // SDL_MixAudioFormat() controls th.. 2015. 1. 14. 이전 1 다음