Click here to Skip to main content
15,887,434 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear,

i have a problem of sending video to IOS devices only as it doesn't show as a streaming videos.
it works fine on android.

the whole issue is as follows:

i have a web-service that retrieves videos from database as byte array.
these byte array is appended to context.Response.BinaryData

now this response is working fine on android devices but it is not working on IOS.

Any ideas???

What I have tried:

C#
context.Response.Clear();
context.Response.ContentType = "video/mp4";
context.Response.Cache.SetCacheability(HttpCacheability.Private);
context.Response.Expires = -1;
context.Response.Buffer = true;
context.Response.BinaryWrite(MyVideo);
context.Response.End();
Posted
Updated 28-Jul-16 20:48pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900