Quantcast
Jump to content


rolflehnert

Members
  • Posts

    1
  • Joined

  • Last visited

rolflehnert's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hello, I’m doing my first attempts at developing Tizen applications. Therfore I have created a simple example for streaming with the AVPlayer. But I have a problem there. As described in the tutorials, I created the player object like this: function createAVPlayer() { var objElem = document.createElement(‘object’); objElem.type = ‘application/avplayer’; objElem.style.left = ‘0px’; objElem.style.top = ‘0px’; objElem.style.width = ‘1920px’; objElem.style.height = ‘1080px’; document.body.appendChild(objElem); } Then I initialize the player as follows: var init = function () { createAVPlayer(); webapis.avplay.setListener(listener); webapis.avplay.open(url); webapis.avplay.prepareAsync(successCallback,errorCallback); }; In the console view, everything looks ok: adding listener Entered AVPlayManager.prepareAsync() Buffering start. Buffering progress data : 2 Buffering progress data : 3 Buffering progress data : 4 ... Buffering progress data : 98 Buffering complete. The media has finished preparing Current playtime: 17 Current playtime: 518 Current playtime: 1021 ... Current playtime: 16569 Current playtime: 16880 Stream Completed But unfortunately the screen remains black in the emulator. Could it be that I still have to put the AVPlayer object reference to the AVPlay API? I attaching my example project, maybe one of you can help me. Many greetings Rolf StreamPlayer.zip


×
×
  • Create New...