×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Aug 2011
    Posts
    39

    Audio component and RTSP source

    I'm having a strange problem with using the QML Audio element and a rtsp source under Symbian.

    It works the first time, but if the stream errors or I stop the playback the element goes into an error state and won't go into playing state again.
    I've tried setting source to empty and back to the rtsp url if that might reset the internal state but it didn't help.

    Any ideas? Or are there some other ways to playback rtsp streams under symbian with qt/qml ?

  2. #2
    Nokia Developer Expert
    Join Date
    Oct 2007
    Posts
    441

    Re: Audio component and RTSP source

    Hi

    I have seen similar problem with streaming video . Can you try to re-create QML Audio dynamically? like that :
    Code:
    // --- MainPage.qml
    
    //…………………….
        function createVideo(){
            var component = Qt.createComponent("YourVideo.qml");
            component.createObject(null, {/*pass parameters here if you need */}); 
                                               //here ’null’ is for parent object
            //create the object and forget about it. will be self-destroyed in “onStopped” signal (see below)
           }
    //…………………….
    
    // --- YourVideo.qml
    import Qt 4.7
    import QtMultimediaKit 1.1
    Item{
        Id: myvideo
        // use that as container
    
        Video{
         //……………
         onStopped: myvideo.destroy();
        }
    }

  3. #3
    Registered User
    Join Date
    Aug 2011
    Posts
    39

    Re: Audio component and RTSP source

    Thanks for the hint, I'll try that.

  4. #4
    Registered User
    Join Date
    Aug 2011
    Posts
    39

    Re: Audio component and RTSP source

    Yes, this work. Creating the Audio element dynamically on play and destroying on stop/error makes it work. Thanks for the hint!

Similar Threads

  1. Replies: 3
    Last Post: 2012-05-14, 14:05
  2. Changing Audio source - unable to play audio with onStopped method
    By mind_freak in forum [Archived] Qt Quick
    Replies: 3
    Last Post: 2011-06-10, 06:57
  3. Audio/Video streaming using RTP and RTSP
    By awadbensaleh in forum Streaming and Video
    Replies: 0
    Last Post: 2008-12-21, 12:00
  4. Need pointer to audio source using rtsp and .rm.
    By Rohith in forum Streaming and Video
    Replies: 0
    Last Post: 2006-01-05, 13:49
  5. Any VB component or source code provided?
    By madthing in forum General Messaging
    Replies: 2
    Last Post: 2002-08-14, 19:54

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •