mount("
http://cdn-fms.rbs.com.br", /* source. Use relative URL */
"/http", /* target */
"httpfs", /* filesystemtype */
0, /* mountflags */
""); /* data */
avformat_open_input(&s1,"/http/vod/hls_sample1_manifest.m3u8", NULL, NULL);
> email to native-client-discuss+unsub...@googlegroups.com.
Hi Sam,Very Kind of you to reply.I am posting the query on behalf of Hitesh.1 We have recompiled the naclport ffmpeg without --disable-network flag in the files ( naclports/src/ports/ffmpeg/build.sh and naclports/src/ports/libav/build.sh )2 Made changes in the manifest.json to include the permissions for socket TCP GET3 Also added the flags --allow-nacl-socket-api=localhost while running the crome.exe4 added "allow_cross_origin_requests:true allow_credentials:false" in mount command.Still not able to access the URL "http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8"Also can you please tell how to verify "see any activity in chrome's developer tools when you make the request?" is Developer Tool console you are referring ?
bin/naclports install ffmpeg
I have successfully built the ffmpeg naclport including the following networking flags in the build.sh file for the ffmpeg NaCl port.
--enable network --enable-protocols --enable-demuxer=rtsp --enable-demux=rtp --enable-demuxer=sdp --enable-decoder=h264
Furthermore, I have successfully coded and the linked the ffmpeg NaCl port in my own PNaCl module. I have included the following network permissions in the manifest.json file:
"permissions": [
{
"socket": [
"tcp-listen:*:*",
"tcp-connect:*:*",
"resolve-host:*:*",
"udp-bind:*:*",
"udp-send-to:*:*"
],
} AVFormatContext* formatContext = avformat_alloc_context();
av_register_all();
avformat_network_init();
const char * stream_path = "rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov";
int result = avformat_open_input(&formatContext, stream_path ,NULL,NULL);
if(result< 0){
PostMessage("input not opened, result: ");
PostMessage(result);
}else{
PostMessage(std::string("input successfully opened"));
}