Hi Karthik,

> *def output =
> Source.fromFile("C:\\Users\\karthik\\Downloads\\big_buck_bunny.mp4")(scala.io.Codec.ISO8859)*
>

Using Source here will be horribly inefficient.


>
>
> *def video = HttpResponse(entity =
> HttpEntity.Chunked(MediaTypes.`video/mp4`, Flow(output.map(_.toByte).map(a
> => ChunkStreamPart(ByteString(a))*
>

The above line will try to stream the data one-by-one bytes, you shouldn't
use streams of Byte but stream of ByteStrings instead containing larger
chunks (probably a few kilobytes).


> *)).toProducer(materializer)))*
>
>
> I would also like to know, how to pass parameters with urls(some thing like*
> "/video/:id*"  not as */video?id=1"*).
>

The routing DSL is still in progress, so this part is not implemented yet.


>
> and what is the internal http-server used by akk-http?(like spray-can or
> jetty ?)
>

It is a standalone module, it does not use Spray (since it is spray code
ported to Akka) or Jetty, only Akka IO

-Endre


>
>
>
>
> Thank you.
>
> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to