Home > Archive (Community help, from old helpdesk) > Media Player can't play the network file

Media Player can't play the network file

Avatar image
Aug 23, 2015
Archive Agent wrote
MediaPlayer1.FilenamesOrURL.Add("http://192.168.1.2/20120522/test.avi");

DirectShow or FFMPEG mode all can't play.
and the link is normal. can use browser open and download the file.

qakmak on May 23, 2013 10:07 PM
Completed
0
Vote
Reply
41 Answers
Aug 23, 2015
Archive Agent agent wrote
qakmak

and the ReadFileInfo not work for the http file. It's terrible.

VisioForge.Controls.MediaInfo.MediaInfoNV info = new VisioForge.Controls.MediaInfo.MediaInfoNV();
info.Filename = ""http://192.168.1.2/20120522/test.avi";
info.ReadFileInfo();
MessageBox.Show(info.Audio_Streams_Count().ToString());//Display 0. but accurate result is 2

on May 23, 2013 22:10
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Media Player SDK .Net designed to play local files, not network streams.

Try Video Capture SDK .Net in IP Preview mode.

on May 24, 2013 00:54
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Mmm, maybe we'll add it to Media Player SDK too, please wait.

on May 24, 2013 00:57
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Will be available in next build.

on May 24, 2013 01:33
Aug 23, 2015
Archive Agent agent wrote
qakmak

Come on....tha's so bad. If media player can't play network file why your api name is: FilenamesOrURL.

I really can't understand why you Break them. if you want me use media capture sdk play network files, and use media play sdk play local file , It's so many problem here.

I hope you can add network file feature to media player sdk ......
I think my work gonna paused for this feature.

if use media player sdk and media capture sdk both, I can't make sure can handle two player in my product. so I think you berak them really bad Idia.

even windows media player can play network files.............

on May 24, 2013 06:42
Aug 23, 2015
Archive Agent agent wrote
qakmak

I hope you Serious think about this, play network files is media player sdk Basic functions. It does not matter with video capture, and I can't same time handle two player to playe network and local files

on May 24, 2013 07:12
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Please download updated SDK build.

on May 27, 2013 19:42
Aug 23, 2015
Archive Agent agent wrote
qakmak

Thanks , but there is a little problem. when I'm ReadFileInfo:

MediaInfo.Filename = Player.FilenamesOrURL[0];
MediaInfo.ReadFileInfo();

and when i'm get the audio stream when I'm need:
MediaInfo.Audio_Streams_Count() always return 1. actually it's 2.

on May 28, 2013 08:29
Aug 23, 2015
Archive Agent agent wrote
qakmak

and another problem. I found It is very expensive server throughput. some movie clips about 50M ,5minute.

but it's will be let the server(IIS 6.0) send 5M/s.

is there any way can Do not let it too occupied Network?

like:
1.let it does not affect the player and get data, when data is get finish. don't let server send anymore.
2.Reduce the size of each data retrieved, like 50m 5minute. it can receive 500k/s. (because media player sdk does not know the duration. so you can add some property let the user choice the data length of every second receive. like:
MediaPlayer1.ReceiveHttpDataLength = 500; //500k/s
MediaPlayer1.Play();

on May 28, 2013 10:21
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

1-2 - No, we using standard filters for this. As alternative stream using RTSP protocol.

About file info - IMediaDet doesn't worked normally for network streams. This interface is standard to get information in DirectShow. As alternative - use RTSP streaming.

on May 28, 2013 14:28
Aug 23, 2015
Archive Agent agent wrote
qakmak

Sorry, I don't understand what are you mean.
are you mean the two problem is can't be handled?

I don't know what is the protocol. but I think the protocol is really Wasted the server bandwidth.
you think 1 second 5M........just like a nightmare for the server.

and about the Media Info are you want me use RTSP? how? don't tell me It's Video Capture sdk. because you know. there is alot problem here, I can't use same sdk handle thoese media file.
Coupling is too high

on May 28, 2013 15:11
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

You've sent me HTTP streamed files sample, not RTSP.

on May 28, 2013 21:02
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Yes, Media Player SDK to not play RTSP but this protocol used in most of streaming services. Please read Wikipedia about this. HTTP not designed for video streaming.

on May 28, 2013 21:03
Aug 23, 2015
Archive Agent agent wrote
qakmak

ok. then Is there any solution I can handle it??
If RTSP can use avi files. I can changed my server IIS video files use RTSP .but you said Media Player SDK can't play.

and current way is a waste of bandwidth, and it not support Read file Info.

Is Media Player can use RTSP address?? or add this features. and I'm change my server. and test.

on May 28, 2013 22:04
Aug 23, 2015
Archive Agent agent wrote
qakmak

Ignorance use the HTTP protocol sample. Really give you a lot of trouble to fill ......

on May 28, 2013 22:07
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Yes, Media Player SDK do not play RTSP streams, only HTTP and MMS (WMV).

on May 28, 2013 23:11
Aug 23, 2015
Archive Agent agent wrote
qakmak

I'm just found RealPlayer and QuickTime support it. Can you add this feature for Media Player SDK? I think maybe your some customers need this someday. and this let media player powerful.

on May 29, 2013 06:37
Aug 23, 2015
Archive Agent agent wrote
qakmak

and my customers needs can read Media Info, and Low consumption of server bandwidth protocol too.

on May 29, 2013 07:32
Aug 23, 2015
Archive Agent agent wrote
qakmak

by the way , Is RTSP support encryption media file?

on May 29, 2013 09:18
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

RTSP available in Video Capture SDK. We are do not planning to add it to Media Player SDK.

Encrypted video?

on May 29, 2013 11:50
Aug 23, 2015
Archive Agent agent wrote
qakmak

I mean encryption video use Video Edit SDK.

come on... why don't add to media player? now the Media player play network video feature is suck. 5MB per second bandwidth, and can't read media info. and I also don't know it can play encrypted video or not(use video edit sdk encryption ).

on May 29, 2013 12:46
Aug 23, 2015
Archive Agent agent wrote
qakmak

It's really not about Money, Otherwise I would have bought Capture SDK even.
if Media Player not this feature there is a lot problem can't handle.

please....do something.
actually I really think video capture sdk is great. maybe someday buy it for another project. but now....I don't think use media player and video capture to handle play local and network media is a good idea.

on May 29, 2013 16:35
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Please download updated build, HTTP / RTSP streams support using FFMPEG added, like in Video Capture SDK. Source type must be HTTP_RTSP_FFMPEG. Main demo changed, new source type has been added.

Encryption new beta within several days, most of problems has been resolved now.

on May 29, 2013 17:40
Aug 23, 2015
Archive Agent agent wrote
qakmak

wait....but....if I'm use FFMPEG. you before said :FFMPEG not support encryption media file.
they will conflict again.

on May 29, 2013 18:02
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

RTSP can't be used for encrypted files too... At least now.

on May 29, 2013 18:35
Aug 23, 2015
Archive Agent agent wrote
qakmak

oh..........god............
Then I test use HTTP_RTSP_FFMPEG mode now. Can I wait for it support encrypted files?
Are you think can add this feature within 3 week ?

on May 29, 2013 19:06
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Maybe using DirectShow mode and HTTP protocol - yes for encrypted file. But no for RTSP.

on May 29, 2013 19:17
Aug 23, 2015
Archive Agent agent wrote
qakmak

Then Is there Any Way let the Media file only can use Media player Sdk play or something??

on May 29, 2013 20:29
Aug 23, 2015
Archive Agent agent wrote
qakmak

you know what.... I just download new version media player sdk . and use RealNetworks Helix Server on my server. and use it http server( not use IIS this time). and use FFMPEG mode(not HTTP_RTSP_FFMPEG). and play.

and the server send speed is : 100k/s. yeah!!!
if use IIS everytime 5MB/s before.

so. I think that's a good way . maybe I can use it + direcshow mode and encrypted media file.

and there is no HTTP_RTSP_FFMPEG : . only have MMS_WMV_DS mode. and I can't use it play network media. alert me unregister version.

the version I just download is :7.14.9

on May 29, 2013 20:59
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Must be 7.14.10 or 11. With updated main demo.

on May 29, 2013 21:08
Aug 23, 2015
Archive Agent agent wrote
qakmak

looks like RealNetworks Helix Server very expensive.
can you Recommended to me other server like that??

or you add Media Player like :"HTTP stream speed intelligent control feature" .

on May 29, 2013 21:47
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Wowza maybe. Some other free servers in Wikipedia. Or Adobe Media server.

on May 29, 2013 21:48
Aug 23, 2015
Archive Agent agent wrote
qakmak

ok. I test tommoro.

and I'm just test use DS_File Mode. looks like It's not support http media file like FFMPEG mode

on May 29, 2013 22:12
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Sometimes yes, sometimes no.

on May 29, 2013 23:37
Aug 23, 2015
Archive Agent agent wrote
qakmak

Is that a bug? I hope when you finish Media Player SDK directShow Mode play encryption xvid+mp3 problem. fix it together.

on May 30, 2013 06:24
Aug 23, 2015
Archive Agent agent wrote
qakmak

I used other server, all not good.

and I found another way, but can't use Internet. looks like that's a only way now.

LAN shared file mapping. it's just play LAN shared file.

and I just need enctyption and DrectShow Mode play multiple audio stream.

by the way ,some bug not fixed yet before I said. so don't forget .

and I really hope you can Optimization http file play api. It's really , I mean 5Mb/s I'm sure It's not IIS problem. because the source media file only 30M. and you want the server send 5MB/s . 1minute already send 300MB. looks like the Media player http mode eating the network.

So, now I'm use LAN play media files, And after you complete Internet issues, I then move it to the Internet server.

on May 30, 2013 09:17
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

For some files netwotk playback possible, for some not. Depends from used format splitter. So, not a bug.

High network usage for direct file playback using HTTP - not a bug.

Use RTSP or special media server.

on May 30, 2013 12:34
Aug 23, 2015
Archive Agent agent wrote
qakmak

you said before I can use encrytion media file + DirectShow mode on http

I just need that now. you just make sure I can play xvid enctyption file +multiple audio avi files use http. Others talk about it later

on May 30, 2013 13:41
Aug 23, 2015
Archive Agent agent wrote
qakmak

New version FFMPEG mode can change audio stream, but still can't use MediaInfo Read audio stream count.

also There is some problem very important, and not resolved yet.

http://support.visioforge.com/forums/172855-community-help/suggestions/3984709-media-player-is-crash-when-clear-audio-effect-and-

http://support.visioforge.com/forums/172855-community-help/suggestions/3992366-when-click-play-and-quickly-click-stop-will-let-t

on June 01, 2013 06:51
Aug 23, 2015
Archive Agent agent wrote
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Please stop mixing multiple ticket or I'll ignore all. Yes, network files playback is limited. Use RTSP protocol as alternative. Ticket is closed.

on June 04, 2013 19:10