Network streaming video not play in mx-player. - MX Player

I try to implement mx-player with network streaming from android my own activity to mx player.
Its working when I pass network stream url from my activity to mx-player. Mx Player open and suddenly close without playing video.
Here is my code.
Uri uri = Uri.parse(appController.getVideoUrl());
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(uri, "application/*");
intent.setDataAndType(uri, "video/*");
intent.setPackage("com.mxtech.videoplayer.ad.ActivityScreen");
intent.putExtra("return_result", true);
startActivityForResult(intent, 1);

Related

[Q] working on rtsp from VLC for a week still stuck

I have been working on developing an a very simple app that plays a video rtsp stream from VLC And have been very stuck after a week I thought it might be time to call it quits but first thought I would post my problem:
I saw on the android dev site that it supports
RTSP (RTP, SDP)
HTTP progressive streaming
Video Encoding Recommendations
Video resolution 176 x 144 px
Video frame rate 12 fps
Video bitrate 56 Kbps
Audio codec AAC-LC
Audio channels 1 (mono)
Audio bitrate 24 Kbps
Click to expand...
Click to collapse
I set everything up in VLC
Stream link: (remove !'s if need for link)
ihop.!org.!edgesuite.!net/ihopkc/wls/tpr/IHOP-KC_TPR_WLS!.asx
Destonation:
RTSP -> Output: /ihop.mp4(also tried .dsp) port 5544 -> Active transcodeing checked -> video profile H.264+ACC(mp4) (and edited everything down to android's low Video Encoding Recommendations (like above))
TTL = 1
the rtsp stream works great when I open up anther VLC instance and stream the link rtsp://myip:5544/ihop.(mp4 or dsp)
but when I run it in my device (nook color w/ CM7.0.2) video viewer it says "sorry can not play this video"
sdk code:
Code:
VideoView videoView = (VideoView) findViewById(R.id.surface_view);
Uri video = Uri.parse("rtsp://192.168.1.88:5544/ihop.mp4");
videoView.setVideoURI(video);
videoView.start();
I am able to run audio stream from vlc to android and also ping my ip in terminal emulator so i know its not a connection error
Any ideas on what im doing wrong or on how to get this to work?
the only thing left that I haven't tried is Darwin streaming server on mac( tried it on windows 7) and would need to fix my hackintosh to do this.
Any Help is very appreciated
THANK YOU!!!

[Q] Convert String to Int

Hello All,
I want to record raw Streaming videos from URL encode it into H.264 and save it as .Mp4 format in sdcard .
So far I'am recording with the android MediaRecoder and streaming is done But i cant able to record Video .
one more query
how to convert url string into int ?convert below string url into int
Sting path = "resp://123.456.2.160:123/logo.sdp";
Has anybody explain with an easy example ...
Thanks in advance
Bhagavath Ram

MX player cannot load subtitles when streaming from cloudflare enabled sites.

If I disable cloudflare CDN option, MX player automatically load subtitle same name of video file.
ex) playing http://www.example.com/test.mp4 -> automatically load http://www.example.com/test.srt or test.smi
But with cloudflare enabled, MX player cannot load subtitles. What is the problem? Due to cloudflare's security?
ask the siteowner to whitelist mxplayer's UA.
or maybe cloudflare can do that.

MX Player hide File Path(url)

Hi
I am using mx player to play stream urls,
I was wondering if there is a way to hide the url path when my app open Mx player from intent (action.view)
If you go to properties on Mx player there can be found the stream url,
I have seen other apps that use Mx player to play streams urls but they hide the url you cannot see what url you’re playing.

Mx player window top location

Open Link in XMTV Player
var url = <?php echo base64_encode($stream);?> ;
window.top.location = "xmtv://"+url; - WORKS!!! (but mxplayer runs better)
How can I do the same in MX player?

Categories

Resources