Tuesday, February 18, 2014
android MediaPlayer how to operate a network URL
Proportion of our URL http://f.youku.com/player/getFlvPath/sid/138440738058015808255_00/st/mp4/fileid/03002001005283AC10EF900109ACBFE4A98DDA-2034-D1B4-5B4B-BF4009688518?K like playing online network video (Youku) = 251ce7dfd57a1f0824119a88 & hd = 1 & myp = 0 & ts = 270 & ypp = 0
What does this mean? Can he resolved to android MediaPlayer can play a URL request?<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Accurate to say that there is no relationship between the analytical and the player, the player can play just to play the stream, you can parse out alone write. As you write this address, there are several parameters Youku verification, you can try, over time, this address is likely not be used.
Reply:
I played through the WebView video, but to get the video time, the number of process anomalies during playback pause there to play, I do not know how to get ah!
Reply:
I remember when there mediaplayer initialization method to directly receive url ah.
Reply:
There is ah, but that is the download URL address, there is this kind. Mp4 etc. URL resources for Youku, iQiyi This remote video server resources, how to play? I am here through WebView, the use of adobe flash player to play, but a long time how to get the video, pause times, played failures information?
Reply:
On android with adobe flash player is resource consuming too much, and often crashes flash player.
Direct use mediaplayer to play, surfaceview to draw pages, plugs directly address mediaplayer.setDataSource ("");
Reply:
But if you pass a URL when Youku error ah,
Uri is http://f.youku.com/player/getFlvPath/sid/138450097453715377865_00/st/mp4/fileid/03002001005281EB4044BD08565B266073BC33-874C-0DD4-8D32-0D5BF6602AE4?K=5514dcf0ef7fe51f24119ad6&hd=1&myp=0&ts = 671 & ypp = 0 & ymovie = 1
MediaPlayer error Couldn't open file on client side, trying server side.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment