How to stream mp4 vedio in android












-4















How to stream .mp4 video in android, video is from backed server. By implementing all the solution showing a message can't play this video










share|improve this question




















  • 2





    can you be more specific on your question?

    – Nivedh
    Nov 20 '18 at 6:46











  • i need play mp4 vedio in VedioView UI how can i do that

    – Aswin N Nair
    Nov 20 '18 at 6:53











  • Can you share the error shown in logcat too?

    – Nivedh
    Nov 20 '18 at 6:59











  • can't play this video means that video is in unsupported codec. Either use supported video codec, or implement your own video player, which will support your codec. Please note that mp4 is not a codec, it is just a container type.

    – Vladyslav Matviienko
    Nov 20 '18 at 7:35
















-4















How to stream .mp4 video in android, video is from backed server. By implementing all the solution showing a message can't play this video










share|improve this question




















  • 2





    can you be more specific on your question?

    – Nivedh
    Nov 20 '18 at 6:46











  • i need play mp4 vedio in VedioView UI how can i do that

    – Aswin N Nair
    Nov 20 '18 at 6:53











  • Can you share the error shown in logcat too?

    – Nivedh
    Nov 20 '18 at 6:59











  • can't play this video means that video is in unsupported codec. Either use supported video codec, or implement your own video player, which will support your codec. Please note that mp4 is not a codec, it is just a container type.

    – Vladyslav Matviienko
    Nov 20 '18 at 7:35














-4












-4








-4








How to stream .mp4 video in android, video is from backed server. By implementing all the solution showing a message can't play this video










share|improve this question
















How to stream .mp4 video in android, video is from backed server. By implementing all the solution showing a message can't play this video







android video-streaming






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 20 '18 at 7:16









Aniruddh Parihar

2,19911027




2,19911027










asked Nov 20 '18 at 6:42









Aswin N NairAswin N Nair

11




11








  • 2





    can you be more specific on your question?

    – Nivedh
    Nov 20 '18 at 6:46











  • i need play mp4 vedio in VedioView UI how can i do that

    – Aswin N Nair
    Nov 20 '18 at 6:53











  • Can you share the error shown in logcat too?

    – Nivedh
    Nov 20 '18 at 6:59











  • can't play this video means that video is in unsupported codec. Either use supported video codec, or implement your own video player, which will support your codec. Please note that mp4 is not a codec, it is just a container type.

    – Vladyslav Matviienko
    Nov 20 '18 at 7:35














  • 2





    can you be more specific on your question?

    – Nivedh
    Nov 20 '18 at 6:46











  • i need play mp4 vedio in VedioView UI how can i do that

    – Aswin N Nair
    Nov 20 '18 at 6:53











  • Can you share the error shown in logcat too?

    – Nivedh
    Nov 20 '18 at 6:59











  • can't play this video means that video is in unsupported codec. Either use supported video codec, or implement your own video player, which will support your codec. Please note that mp4 is not a codec, it is just a container type.

    – Vladyslav Matviienko
    Nov 20 '18 at 7:35








2




2





can you be more specific on your question?

– Nivedh
Nov 20 '18 at 6:46





can you be more specific on your question?

– Nivedh
Nov 20 '18 at 6:46













i need play mp4 vedio in VedioView UI how can i do that

– Aswin N Nair
Nov 20 '18 at 6:53





i need play mp4 vedio in VedioView UI how can i do that

– Aswin N Nair
Nov 20 '18 at 6:53













Can you share the error shown in logcat too?

– Nivedh
Nov 20 '18 at 6:59





Can you share the error shown in logcat too?

– Nivedh
Nov 20 '18 at 6:59













can't play this video means that video is in unsupported codec. Either use supported video codec, or implement your own video player, which will support your codec. Please note that mp4 is not a codec, it is just a container type.

– Vladyslav Matviienko
Nov 20 '18 at 7:35





can't play this video means that video is in unsupported codec. Either use supported video codec, or implement your own video player, which will support your codec. Please note that mp4 is not a codec, it is just a container type.

– Vladyslav Matviienko
Nov 20 '18 at 7:35












2 Answers
2






active

oldest

votes


















0














My suggestion is to use Exoplayer which is google's video default player.






share|improve this answer
























  • is there any sample codes or something

    – Aswin N Nair
    Nov 20 '18 at 6:51











  • android.jlelse.eu/android-exoplayer-starters-guide-6350433f256c please check if it helps you.

    – Nivedh
    Nov 20 '18 at 6:54



















0














here is a very basic, working example of exoplayer 2.8.4 to play livestream or .mp4 files.
https://github.com/ayalus/ExoPlayer-2-Example






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53387572%2fhow-to-stream-mp4-vedio-in-android%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    My suggestion is to use Exoplayer which is google's video default player.






    share|improve this answer
























    • is there any sample codes or something

      – Aswin N Nair
      Nov 20 '18 at 6:51











    • android.jlelse.eu/android-exoplayer-starters-guide-6350433f256c please check if it helps you.

      – Nivedh
      Nov 20 '18 at 6:54
















    0














    My suggestion is to use Exoplayer which is google's video default player.






    share|improve this answer
























    • is there any sample codes or something

      – Aswin N Nair
      Nov 20 '18 at 6:51











    • android.jlelse.eu/android-exoplayer-starters-guide-6350433f256c please check if it helps you.

      – Nivedh
      Nov 20 '18 at 6:54














    0












    0








    0







    My suggestion is to use Exoplayer which is google's video default player.






    share|improve this answer













    My suggestion is to use Exoplayer which is google's video default player.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Nov 20 '18 at 6:45









    NivedhNivedh

    738516




    738516













    • is there any sample codes or something

      – Aswin N Nair
      Nov 20 '18 at 6:51











    • android.jlelse.eu/android-exoplayer-starters-guide-6350433f256c please check if it helps you.

      – Nivedh
      Nov 20 '18 at 6:54



















    • is there any sample codes or something

      – Aswin N Nair
      Nov 20 '18 at 6:51











    • android.jlelse.eu/android-exoplayer-starters-guide-6350433f256c please check if it helps you.

      – Nivedh
      Nov 20 '18 at 6:54

















    is there any sample codes or something

    – Aswin N Nair
    Nov 20 '18 at 6:51





    is there any sample codes or something

    – Aswin N Nair
    Nov 20 '18 at 6:51













    android.jlelse.eu/android-exoplayer-starters-guide-6350433f256c please check if it helps you.

    – Nivedh
    Nov 20 '18 at 6:54





    android.jlelse.eu/android-exoplayer-starters-guide-6350433f256c please check if it helps you.

    – Nivedh
    Nov 20 '18 at 6:54













    0














    here is a very basic, working example of exoplayer 2.8.4 to play livestream or .mp4 files.
    https://github.com/ayalus/ExoPlayer-2-Example






    share|improve this answer




























      0














      here is a very basic, working example of exoplayer 2.8.4 to play livestream or .mp4 files.
      https://github.com/ayalus/ExoPlayer-2-Example






      share|improve this answer


























        0












        0








        0







        here is a very basic, working example of exoplayer 2.8.4 to play livestream or .mp4 files.
        https://github.com/ayalus/ExoPlayer-2-Example






        share|improve this answer













        here is a very basic, working example of exoplayer 2.8.4 to play livestream or .mp4 files.
        https://github.com/ayalus/ExoPlayer-2-Example







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 26 '18 at 16:12









        ayal fieldustayal fieldust

        215




        215






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53387572%2fhow-to-stream-mp4-vedio-in-android%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            這個網誌中的熱門文章

            Xamarin.form Move up view when keyboard appear

            Post-Redirect-Get with Spring WebFlux and Thymeleaf

            Anylogic : not able to use stopDelay()