Video file has Content-Type:text/html

Added by Buksa Noob over 6 years ago

i have problem with few sites where flv files has Content-Type:text/html; charset=utf-8

00:08:08.480: JS [DEBUG]:Video Playback: Reading http://s3.kinostok.tv/flv/849cf80b72879f52f4bf1c79178b68e0/uploaded_video/video/23/2394/239452/239452.mp4
00:08:09.031: HTTP [DEBUG]:Connected to s3.kinostok.tv:80 (id=27)
00:08:09.031: HTTP [DEBUG]:> GET /flv/849cf80b72879f52f4bf1c79178b68e0/uploaded_video/video/23/2394/239452/239452.mp4 HTTP/1.1
00:08:09.031: HTTP [DEBUG]:> Range: bytes=0-1
00:08:09.031: HTTP [DEBUG]:> User-Agent: Showtime Linux/i386 4.5.308.gad054
00:08:09.031: HTTP [DEBUG]:> Connection: keep-alive
00:08:09.032: HTTP [DEBUG]:> Accept: */*
00:08:09.032: HTTP [DEBUG]:> Accept-Encoding: identity
00:08:09.032: HTTP [DEBUG]:> Host: s3.kinostok.tv
00:08:09.032: HTTP [DEBUG]:http://s3.kinostok.tv/flv/849cf80b72879f52f4bf1c79178b68e0/uploaded_video/video/23/2394/239452/239452.mp4: Response:
00:08:09.253: HTTP [DEBUG]:< HTTP/1.1 206 Partial Content
00:08:09.253: HTTP [DEBUG]:< Server: nginx/1.2.8
00:08:09.253: HTTP [DEBUG]:< Date: Fri, 04 Apr 2014 13:18:09 GMT
00:08:09.253: HTTP [DEBUG]:< Content-Type: text/html; charset=utf-8
00:08:09.253: HTTP [DEBUG]:< Content-Length: 2
00:08:09.253: HTTP [DEBUG]:< Last-Modified: Thu, 03 Apr 2014 21:54:13 GMT
00:08:09.253: HTTP [DEBUG]:< Connection: keep-alive
00:08:09.253: HTTP [DEBUG]:< Set-Cookie: PHPSESSID=8d6d358f11e0d7eb92524856567cb05e; path=/; domain=kinostok.tv
00:08:09.253: HTTP [DEBUG]:Rejected cookie name=PHPSESSID path=/ domain=kinostok.tv value=8d6d358f11e0d7eb92524856567cb05e error=2
00:08:09.253: HTTP [DEBUG]:< Expires: Thu, 19 Nov 1981 08:52:00 GMT
00:08:09.253: HTTP [DEBUG]:< Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
00:08:09.253: HTTP [DEBUG]:< Set-Cookie: lang_code=ru; expires=Sat, 04-Apr-2015 13:18:09 GMT; path=/
00:08:09.253: HTTP [DEBUG]:Updating cookie name=lang_code path=/ domain=s3.kinostok.tv value=ru expires in 31536160 seconds
00:08:09.253: HTTP [DEBUG]:< Content-Range: bytes 0-1/451117096

i get error no player found for sources

how i can forced video type in st
found this in wiki [[https://showtimemediacenter.com/projects/showtime/wiki/JSAPI_play_video]]

property mimetype
Mimetype of video. If set it will make video start a tad faster as Showtime does not need to probe format
but no example how i can forced mimetype


Replies (2)

RE: Video file has Content-Type:text/html - Added by Andreas Smas over 6 years ago

I've pushed a change 4.5-310-g11f6bbb

Check if it helps. I can't test the URL as-is as it gives 403 Forbidden

RE: Video file has Content-Type:text/html - Added by Buksa Noob over 6 years ago

play fine after fix thx

(1-2/2)