Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Video Play
Qt 6.11 is out! See what's new in the release blog

Video Play

Scheduled Pinned Locked Moved Mobile and Embedded
14 Posts 5 Posters 6.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hitesh
    wrote on last edited by
    #3

    i am creating a Mobile and embedded project.
    for Symbian device on Qt creator.
    in windows.
    and test it on Qt simulator.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      GentooXativa
      wrote on last edited by
      #4

      Videos doesnt work on simulator, to test videos use a mobile to deploy and test :)

      Jose Vicente Giner Sanchez - Senior Mobile Developer

      www.gigigo.com

      C/ Dr. Zamenhof 36bis, 1ºA 28027 Madrid
      T: +34 917431436

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hitesh
        wrote on last edited by
        #5

        thanks for reply

        now i have try following code
        @
        /********************************************/
        playlist = new QMediaPlaylist;
        QString filepath;
        filepath.clear();
        filepath.append("E:\data/abc.3gp");
        QMediaResource resource(QUrl::fromLocalFile(filepath));
        QMediaContent content(resource);
        playlist->addMedia(content);
        playlist->setCurrentIndex(1);

        player = new QMediaPlayer;
        connect(player, SIGNAL(positionChanged(qint64)), this, SLOT(positionChanged(qint64)));
        connect(player, SIGNAL(mediaStatusChanged(QMediaPlayer::MediaStatus)), this, SLOT(mediaStatusChanged(QMediaPlayer::MediaStatus)));
        connect(player, SIGNAL(error(QMediaPlayer::Error)), this, SLOT(error(QMediaPlayer::Error)));
        connect(player, SIGNAL(stateChanged(QMediaPlayer::State)), this, SLOT(stateChanged(QMediaPlayer::State)));
        player->setPlaylist(playlist);
        Qm_pQVideoWidget = new QVideoWidget(this);
        player->setVideoOutput(Qm_pQVideoWidget);
        Qm_pQVideoWidget->show();
        Qm_pQVideoWidget->activateWindow();
        Qm_pQVideoWidget->showFullScreen();
        /********************************************/
        @
        when i run this code on simulator only i can listen video,i can't see video

        and when i run on device it crash.....

        [Edit: Please wrap code in @ tags; mlong]

        1 Reply Last reply
        0
        • H Offline
          H Offline
          hitesh
          wrote on last edited by
          #6

          plz reply..............

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mlong
            wrote on last edited by
            #7

            [quote author="GentooXativa" date="1328171777"]Videos doesnt work on simulator, to test videos use a mobile to deploy and test :)[/quote]

            Where is it crashing? Have you run it under the debugger?

            Software Engineer
            My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

            1 Reply Last reply
            0
            • H Offline
              H Offline
              hitesh
              wrote on last edited by
              #8

              no i am not using debugger.
              it was crashing on Device.

              i create a new Form & past this code on new form.
              now it is not crashing , but video is not playing......
              i can see only blank form.....
              i want to play video......

              1 Reply Last reply
              0
              • H Offline
                H Offline
                hitesh
                wrote on last edited by
                #9

                plz reply....

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mlong
                  wrote on last edited by
                  #10

                  Please do not demand that people reply.

                  We are all volunteers here. If anyone has information that can help you, they will try to do so.

                  Be patient.

                  Software Engineer
                  My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

                  1 Reply Last reply
                  0
                  • H Offline
                    H Offline
                    hitesh
                    wrote on last edited by
                    #11

                    thanks "mlong"
                    i am waiting for reply......

                    1 Reply Last reply
                    0
                    • H Offline
                      H Offline
                      hitesh
                      wrote on last edited by
                      #12

                      plz reply.....

                      1 Reply Last reply
                      0
                      • G Offline
                        G Offline
                        goetz
                        wrote on last edited by
                        #13

                        [quote author="hitesh" date="1328591743"]thanks "mlong"
                        i am waiting for reply......
                        [/quote]

                        [quote author="hitesh" date="1329110767"]plz reply.....[/quote]

                        I see some discrepancy here.

                        http://www.catb.org/~esr/faqs/smart-questions.html

                        1 Reply Last reply
                        0
                        • G Offline
                          G Offline
                          GentooXativa
                          wrote on last edited by
                          #14

                          Sorry i only worked with video using the QML Video Element

                          Jose Vicente Giner Sanchez - Senior Mobile Developer

                          www.gigigo.com

                          C/ Dr. Zamenhof 36bis, 1ºA 28027 Madrid
                          T: +34 917431436

                          1 Reply Last reply
                          0

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved